[MacPorts] #62643: emacs[[-mac]-app] @27.2 (and 8.2): error: use of undeclared identifier 'MD5_DIGEST_SIZE'

MacPorts noreply at macports.org
Tue Apr 6 14:09:15 UTC 2021


#62643: emacs[[-mac]-app] @27.2 (and 8.2): error: use of undeclared identifier
'MD5_DIGEST_SIZE'
-------------------------+-------------------------------------------
 Reporter:  cooljeanius  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.6.4
 Keywords:               |       Port:  emacs emacs-app emacs-mac-app
-------------------------+-------------------------------------------
 emacs, emacs-app, and emacs-mac-app all fail to upgrade for me with
 similar errors about undeclared identifiers. This is the output for emacs-
 mac-app, but it looks similar for the other two, as well:
 {{{
 fns.c:5336:21: error: use of undeclared identifier 'MD5_DIGEST_SIZE'
       digest_size = MD5_DIGEST_SIZE;
                     ^
 fns.c:5337:21: error: use of undeclared identifier 'md5_buffer'
       hash_func   = md5_buffer;
                     ^
   CC       callproc.o
 fns.c:5341:21: error: use of undeclared identifier 'SHA1_DIGEST_SIZE'
       digest_size = SHA1_DIGEST_SIZE;
                     ^
 fns.c:5342:21: error: use of undeclared identifier 'sha1_buffer'
       hash_func   = sha1_buffer;
                     ^
   CC       region-cache.o
 fns.c:5346:21: error: use of undeclared identifier 'SHA224_DIGEST_SIZE'
       digest_size = SHA224_DIGEST_SIZE;
                     ^
 fns.c:5347:21: error: use of undeclared identifier 'sha224_buffer'
       hash_func   = sha224_buffer;
                     ^
 fns.c:5351:21: error: use of undeclared identifier 'SHA256_DIGEST_SIZE'
       digest_size = SHA256_DIGEST_SIZE;
                     ^
 fns.c:5352:21: error: use of undeclared identifier 'sha256_buffer'
       hash_func   = sha256_buffer;
                     ^
 fns.c:5356:21: error: use of undeclared identifier 'SHA384_DIGEST_SIZE'
       digest_size = SHA384_DIGEST_SIZE;
                     ^
 fns.c:5357:21: error: use of undeclared identifier 'sha384_buffer'
       hash_func   = sha384_buffer;
                     ^
 fns.c:5361:21: error: use of undeclared identifier 'SHA512_DIGEST_SIZE'
       digest_size = SHA512_DIGEST_SIZE;
                     ^
 fns.c:5362:21: error: use of undeclared identifier 'sha512_buffer'
       hash_func   = sha512_buffer;
                     ^
 fns.c:5457:19: error: variable has incomplete type 'struct sha1_ctx'
   struct sha1_ctx ctx;
                   ^
 fns.c:5457:10: note: forward declaration of 'struct sha1_ctx'
   struct sha1_ctx ctx;
          ^
 fns.c:5467:3: error: implicit declaration of function 'sha1_init_ctx' is
 invalid in C99 [-Werror,-Wimplicit-function-declaration]
   sha1_init_ctx (&ctx);
   ^
 fns.c:5470:3: error: implicit declaration of function 'sha1_process_bytes'
 is invalid in C99 [-Werror,-Wimplicit-function-declaration]
   sha1_process_bytes (BUF_BEG_ADDR (b),
   ^
   CC       sound.o
 fns.c:5481:44: error: use of undeclared identifier 'SHA1_DIGEST_SIZE'
   Lisp_Object digest = make_uninit_string (SHA1_DIGEST_SIZE * 2);
                                            ^
 fns.c:5482:3: error: implicit declaration of function 'sha1_finish_ctx' is
 invalid in C99 [-Werror,-Wimplicit-function-declaration]
   sha1_finish_ctx (&ctx, SSDATA (digest));
   ^
 fns.c:5482:3: note: did you mean 'sha1_init_ctx'?
 fns.c:5467:3: note: 'sha1_init_ctx' declared here
   sha1_init_ctx (&ctx);
   ^
 fns.c:5483:38: error: use of undeclared identifier 'SHA1_DIGEST_SIZE'
   return make_digest_string (digest, SHA1_DIGEST_SIZE);
                                      ^
 18 errors generated.
 1 warning generated.
 make[1]: *** [fns.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_aqua_emacs-mac-app/emacs-mac-app/work
 /mituharu-emacs-mac-a124e5d0ccb8/doc/emacs'
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_aqua_emacs-mac-app/emacs-mac-app/work
 /mituharu-emacs-mac-a124e5d0ccb8/src'
 make: *** [src] Error 2
 make: *** Waiting for unfinished jobs....
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_aqua_emacs-mac-app/emacs-mac-app/work
 /mituharu-emacs-mac-a124e5d0ccb8/doc/lispref'
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_aqua_emacs-mac-app/emacs-mac-app/work
 /mituharu-emacs-mac-a124e5d0ccb8'
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_aqua_emacs-mac-app/emacs-mac-app/work
 /mituharu-emacs-mac-a124e5d0ccb8'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_aqua_emacs-mac-app/emacs-mac-
 app/work/emacs-27.2-mac-8.2" && /usr/bin/make -j16 -w all
 Exit code: 2
 Error: Failed to build emacs-mac-app: command execution failed
 DEBUG: Error code: CHILDSTATUS 36110 2
 }}}
 I am on Big Sur using Xcode 12.4, for reference.

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


More information about the macports-tickets mailing list