[MacPorts] #67960: compile errors with emacs-mac-app 29.1

MacPorts noreply at macports.org
Mon Aug 14 14:14:22 UTC 2023


#67960: compile errors with emacs-mac-app 29.1
--------------------------+--------------------------
 Reporter:  squarepegsys  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:  x86_64        |       Port:  emac-mac-app
--------------------------+--------------------------
 I have tried to install the latest emacs-mac-app port via:

 >   sudo port install emacs-mac-app +imagemagick +treesitter +nativecomp
 +rsvg


 And I get the following compile errors:

 :info:build In file included from fns.c:5526:
 :info:build /opt/local/include/sha1.h:48:3: error: unknown type name
 'ulonglong'
 :info:build   ulonglong  Length;            /* Message length in bits
 */
 :info:build   ^
 :info:build /opt/local/include/sha1.h:52:3: error: unknown type name
 'int16'
 :info:build   int16 Message_Block_Index;    /* Index into message block
 array   */
 :info:build   ^
 :info:build /opt/local/include/sha1.h:60:1: error: unknown type name
 'C_MODE_START'
 :info:build C_MODE_START
 :info:build ^
 :info:build /opt/local/include/sha1.h:66:1: error: unknown type name
 'C_MODE_END'
 :info:build C_MODE_END
 :info:build ^
 :info:build fns.c:5775:21: error: use of undeclared identifier
 'SHA1_DIGEST_SIZE'; did you mean 'SHA512_DIGEST_SIZE'?
 :info:build       digest_size = SHA1_DIGEST_SIZE;
 :info:build                     ^~~~~~~~~~~~~~~~
 :info:build                     SHA512_DIGEST_SIZE
 :info:build ../lib/sha512.h:36:8: note: 'SHA512_DIGEST_SIZE' declared here
 :info:build enum { SHA512_DIGEST_SIZE = 512 / 8 };
 :info:build        ^
 :info:build fns.c:5776:21: error: use of undeclared identifier
 'sha1_buffer'; did you mean 'sha512_buffer'?
 :info:build       hash_func   = sha1_buffer;
 :info:build                     ^~~~~~~~~~~
 :info:build                     sha512_buffer
 :info:build ../lib/sha512.h:96:14: note: 'sha512_buffer' declared here
 :info:build extern void *sha512_buffer (const char *buffer, size_t len,
 :info:build              ^
 :info:build fns.c:5893:19: error: variable has incomplete type 'struct
 sha1_ctx'
 :info:build   struct sha1_ctx ctx;
 :info:build                   ^
 :info:build fns.c:5893:10: note: forward declaration of 'struct sha1_ctx'
 :info:build   struct sha1_ctx ctx;
 :info:build          ^
 :info:build fns.c:5903:3: error: call to undeclared function
 'sha1_init_ctx'; ISO C99 and later do not support implicit function
 declarations [-Wimplicit-function-declaration]

-- 
Ticket URL: <https://trac.macports.org/ticket/67960>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list