Opened 5 years ago
Closed 22 months ago
#59638 closed defect (fixed)
emacs: error: use of undeclared identifier 'MD5_DIGEST_SIZE'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | drkp (Dan Ports) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | emacs |
Description
emacs doesn't build:
fns.c:4987:21: error: use of undeclared identifier 'MD5_DIGEST_SIZE' digest_size = MD5_DIGEST_SIZE; ^ fns.c:4988:21: error: use of undeclared identifier 'md5_buffer' hash_func = md5_buffer; ^ fns.c:4992:21: error: use of undeclared identifier 'SHA1_DIGEST_SIZE' digest_size = SHA1_DIGEST_SIZE; ^ fns.c:4993:21: error: use of undeclared identifier 'sha1_buffer' hash_func = sha1_buffer; ^ fns.c:4997:21: error: use of undeclared identifier 'SHA224_DIGEST_SIZE' digest_size = SHA224_DIGEST_SIZE; ^ fns.c:4998:21: error: use of undeclared identifier 'sha224_buffer' hash_func = sha224_buffer; ^ fns.c:5002:21: error: use of undeclared identifier 'SHA256_DIGEST_SIZE' digest_size = SHA256_DIGEST_SIZE; ^ fns.c:5003:21: error: use of undeclared identifier 'sha256_buffer' hash_func = sha256_buffer; ^ fns.c:5007:21: error: use of undeclared identifier 'SHA384_DIGEST_SIZE' digest_size = SHA384_DIGEST_SIZE; ^ fns.c:5008:21: error: use of undeclared identifier 'sha384_buffer' hash_func = sha384_buffer; ^ fns.c:5012:21: error: use of undeclared identifier 'SHA512_DIGEST_SIZE' digest_size = SHA512_DIGEST_SIZE; ^ fns.c:5013:21: error: use of undeclared identifier 'sha512_buffer' hash_func = sha512_buffer; ^ fns.c:5089:19: error: variable has incomplete type 'struct sha1_ctx' struct sha1_ctx ctx; ^ fns.c:5089:10: note: forward declaration of 'struct sha1_ctx' struct sha1_ctx ctx; ^ fns.c:5099:3: warning: implicit declaration of function 'sha1_init_ctx' is invalid in C99 [-Wimplicit-function-declaration] sha1_init_ctx (&ctx); ^ fns.c:5102:3: warning: implicit declaration of function 'sha1_process_bytes' is invalid in C99 [-Wimplicit-function-declaration] sha1_process_bytes (BUF_BEG_ADDR (b), ^ fns.c:5113:44: error: use of undeclared identifier 'SHA1_DIGEST_SIZE' Lisp_Object digest = make_uninit_string (SHA1_DIGEST_SIZE * 2); ^ fns.c:5114:3: warning: implicit declaration of function 'sha1_finish_ctx' is invalid in C99 [-Wimplicit-function-declaration] sha1_finish_ctx (&ctx, SSDATA (digest)); ^ fns.c:5115:38: error: use of undeclared identifier 'SHA1_DIGEST_SIZE' return make_digest_string (digest, SHA1_DIGEST_SIZE); ^ 3 warnings and 15 errors generated.
Attachments (1)
Change History (4)
Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 3 years ago by cooljeanius (Eric Gallager)
comment:2 Changed 3 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:3 Changed 22 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
libmd's headers have been moved to a subdirectory which should fix this problem.
Note: See
TracTickets for help on using
tickets.
in #62643 I discovered (via the use of trace mode) that this is due to having libmd active, as the build picks up its headers. A
conflicts_build
entry should be added against it, or the libmd port should be modified to put its headers somewhere else.(This also affects emacs-app and emacs-mac-app, too, btw)