uhttpmock fails to build with: //lib/libcrypto.so.7: warning: warning: EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup //lib/libcrypto.so.7: warning: warning: EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup //lib/libcrypto.so.7: warning: warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup //lib/libcrypto.so.7: warning: warning: EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup //lib/libcrypto.so.7: warning: warning: EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup //lib/libcrypto.so.7: warning: warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup cc: error: linker command failed with exit code 1 (use -v to see invocation)
Added the maintainer of libressl to the CC list.
Maybe, the error is here: The file work/uhttpmock-0.5.1/libuhttpmock/tests/server_logging_trace_failure_unexpected-request is empty: ls -al /usr/ports/net/uhttpmock/work/uhttpmock-0.5.1/libuhttpmock/tests/server_logging_trace_failure_unexpected-request -rw-r--r-- 1 root wheel 0 4 Aug 2013 /ram/usr/ports/net/uhttpmock/work/uhttpmock-0.5.1/libuhttpmock/tests/server_logging_trace_failure_unexpected-request
I could compile it with LDFLAGS+="-Wl,-no-fatal-warnings".
Issue is not with LibreSSL but with linking SSL in general. Upstream should fix this, configure does not have a --with-ssl= parameter. The fix you've proposed will break things as it hides the problem during build but should result in runtime failures. The only fix currently would be to try and force the order of the -I includes at compile and the -L dirs at link time.
This may just work when you add the following to the Makefile (untested) > USES+= ssl > CFLAGS= -I${OPENSSLINC} > LDFLAGS= -L${OPENSSLLIB} since it links SSL libraries, it should get the USES+= ssl added in any case. these changes should put the include and linker directories for /usr/local at the beginning of the commands which should force it to find the correct headers and shlibs first.
Created attachment 190947 [details] svn-diff-uhttpmock-Werror Found it: Has nothing to do with ssl. Werror was enabled.
Committed, thanks!
A commit references this bug: Author: pi Date: Sun Feb 25 17:33:04 UTC 2018 New revision: 462968 URL: https://svnweb.freebsd.org/changeset/ports/462968 Log: net/uhttpmock: Disable -Werror (Fails to build due to warnings) PR: 224381 Submitted by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> Approved by: koobs Changes: head/net/uhttpmock/Makefile