[Bug 229017] mail/libesmtp: Configure fails with OpenSSL 1.1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 9 16:27:40 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229017

Tobias Kortkamp <tobik at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           Keywords|                            |needs-patch

--- Comment #5 from Tobias Kortkamp <tobik at freebsd.org> ---
I do not think that this is a correct or complete patch.

client-ntlm.c:126:7: warning: this function declaration is not a prototype
[-Wstrict-prototypes]
ntlmdes.c:58:3: warning: implicit declaration of function 'des_set_odd_parity'
is invalid in C99 [-Wimplicit-function-declaration]
  des_set_odd_parity (&key);
  ^
ntlmdes.c:58:3: warning: this function declaration is not a prototype
[-Wstrict-prototypes]
ntlmdes.c:59:3: warning: implicit declaration of function 'des_set_key' is
invalid in C99 [-Wimplicit-function-declaration]
  des_set_key (&key, ks);
  ^
ntlmdes.c:59:3: warning: this function declaration is not a prototype
[-Wstrict-prototypes]
ntlmdes.c:60:3: warning: implicit declaration of function 'des_ecb_encrypt' is
invalid in C99 [-Wimplicit-function-declaration]
  des_ecb_encrypt (iv, result, ks, DES_ENCRYPT);
  ^
ntlmdes.c:60:3: warning: this function declaration is not a prototype
[-Wstrict-prototypes]
ntlmdes.c:59:22: warning: variable 'ks' is uninitialized when used here
[-Wuninitialized]
  des_set_key (&key, ks);
                     ^~
ntlmdes.c:36:3: note: variable 'ks' is declared here
  DES_key_schedule ks;

It also fails when using LDFLAGS+=-Wl,--no-undefined

 /usr/bin/ld: error: undefined symbol: des_set_odd_parity
 >>> referenced by ntlmdes.c
 >>>               .libs/ntlmdes.o:(lm_deshash)

 /usr/bin/ld: error: undefined symbol: des_set_key
 >>> referenced by ntlmdes.c
 >>>               .libs/ntlmdes.o:(lm_deshash)

 /usr/bin/ld: error: undefined symbol: des_ecb_encrypt
 >>> referenced by ntlmdes.c
 >>>               .libs/ntlmdes.o:(lm_deshash)
 cc: error: linker command failed with exit code 1 (use -v to see invocation)

For example, OpenSSL 1.1.1 no longer has des_set_key().  It's named
DES_set_key() there AFAICT.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list