openssl: openssl@3 fails to build (80-test_cmp_http.t) on macOS Mojave 10.14.3
Hello, I’m trying to build openssl@3 via Homebrew on a fresh macOS Mojave 10.14.3 install.
caveat: There is no option for me to upgrade either hardware or OS for genuine reasons beyond this scope.
Regardless whether I try to install/upgrade openssl@3 directly or as a dependency, the post-build test repeatedly fails at 80-test_cmp_http.t as follows:
==> Installing curl dependency: openssl@3
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@3/3.1.3 --openssldir=/usr/local/etc/openssl@3 --libdir=/usr/local/Cellar/openssl@3/3.1.3/lib no-ssl3 no-ssl3-method no-zli
==> make
==> make install MANDIR=/usr/local/Cellar/openssl@3/3.1.3/share/man MANSUFFIX=ssl
==> make test
Last 15 lines from /Users/paco/Library/Logs/Homebrew/openssl@3/04.make:
99-test_fuzz_conf.t ................ ok
99-test_fuzz_crl.t ................. ok
99-test_fuzz_ct.t .................. ok
99-test_fuzz_server.t .............. ok
99-test_fuzz_x509.t ................ ok
Test Summary Report
-------------------
80-test_cmp_http.t (Wstat: 256 Tests: 6 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=252, Tests=3326, 471 wallclock secs ( 8.26 usr 0.96 sys + 336.77 cusr 95.55 csys = 441.54 CPU)
Result: FAIL
make[1]: *** [run_tests] Error 1
make: *** [tests] Error 2
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!
Error: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
A failing test lets Homebrew exit at that point, no hints are given to proceed anyway.
I had this before on this machine with my prior macOS 10.14.3 system, which had Homebrew and MacPorts installed and running for various active toolchains, and could get it to work with the workaround given here. This doesn’t work on a fresh macOS 10.14.3 installation—a manually downloaded openssl@3 compiles but, the tests fail by the same error (tests). Though linked and verified correct with Homebrew (as per above workaround), any attempt to install something via Homebrew having openssl@3 as a dependency, ultimately fails—because Homebrew attempts to build openssl@3 anew and fails again.
Command Line Tools are installed, Xcode is not (it could be installed, if really needed, tho). cc -v output is:
$ cc -v
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
FWIW, this is the output of brew doctor:
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libFB360-PluginShell-ambiX.dylib
/usr/local/lib/libcrypto.3.dylib
/usr/local/lib/libssl.3.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/openssl/aes.h
/usr/local/include/openssl/asn1.h
/usr/local/include/openssl/asn1_mac.h
/usr/local/include/openssl/asn1err.h
/usr/local/include/openssl/asn1t.h
/usr/local/include/openssl/async.h
/usr/local/include/openssl/asyncerr.h
/usr/local/include/openssl/bio.h
/usr/local/include/openssl/bioerr.h
/usr/local/include/openssl/blowfish.h
/usr/local/include/openssl/bn.h
/usr/local/include/openssl/bnerr.h
/usr/local/include/openssl/buffer.h
/usr/local/include/openssl/buffererr.h
/usr/local/include/openssl/camellia.h
/usr/local/include/openssl/cast.h
/usr/local/include/openssl/cmac.h
/usr/local/include/openssl/cmp.h
/usr/local/include/openssl/cmp_util.h
/usr/local/include/openssl/cmperr.h
/usr/local/include/openssl/cms.h
/usr/local/include/openssl/cmserr.h
/usr/local/include/openssl/comp.h
/usr/local/include/openssl/comperr.h
/usr/local/include/openssl/conf.h
/usr/local/include/openssl/conf_api.h
/usr/local/include/openssl/conferr.h
/usr/local/include/openssl/configuration.h
/usr/local/include/openssl/conftypes.h
/usr/local/include/openssl/core.h
/usr/local/include/openssl/core_dispatch.h
/usr/local/include/openssl/core_names.h
/usr/local/include/openssl/core_object.h
/usr/local/include/openssl/crmf.h
/usr/local/include/openssl/crmferr.h
/usr/local/include/openssl/crypto.h
/usr/local/include/openssl/cryptoerr.h
/usr/local/include/openssl/cryptoerr_legacy.h
/usr/local/include/openssl/ct.h
/usr/local/include/openssl/cterr.h
/usr/local/include/openssl/decoder.h
/usr/local/include/openssl/decodererr.h
/usr/local/include/openssl/des.h
/usr/local/include/openssl/dh.h
/usr/local/include/openssl/dherr.h
/usr/local/include/openssl/dsa.h
/usr/local/include/openssl/dsaerr.h
/usr/local/include/openssl/dtls1.h
/usr/local/include/openssl/e_os2.h
/usr/local/include/openssl/ebcdic.h
/usr/local/include/openssl/ec.h
/usr/local/include/openssl/ecdh.h
/usr/local/include/openssl/ecdsa.h
/usr/local/include/openssl/ecerr.h
/usr/local/include/openssl/encoder.h
/usr/local/include/openssl/encodererr.h
/usr/local/include/openssl/engine.h
/usr/local/include/openssl/engineerr.h
/usr/local/include/openssl/err.h
/usr/local/include/openssl/ess.h
/usr/local/include/openssl/esserr.h
/usr/local/include/openssl/evp.h
/usr/local/include/openssl/evperr.h
/usr/local/include/openssl/fips_names.h
/usr/local/include/openssl/fipskey.h
/usr/local/include/openssl/hmac.h
/usr/local/include/openssl/http.h
/usr/local/include/openssl/httperr.h
/usr/local/include/openssl/idea.h
/usr/local/include/openssl/kdf.h
/usr/local/include/openssl/kdferr.h
/usr/local/include/openssl/lhash.h
/usr/local/include/openssl/macros.h
/usr/local/include/openssl/md2.h
/usr/local/include/openssl/md4.h
/usr/local/include/openssl/md5.h
/usr/local/include/openssl/mdc2.h
/usr/local/include/openssl/modes.h
/usr/local/include/openssl/obj_mac.h
/usr/local/include/openssl/objects.h
/usr/local/include/openssl/objectserr.h
/usr/local/include/openssl/ocsp.h
/usr/local/include/openssl/ocsperr.h
/usr/local/include/openssl/opensslconf.h
/usr/local/include/openssl/opensslv.h
/usr/local/include/openssl/ossl_typ.h
/usr/local/include/openssl/param_build.h
/usr/local/include/openssl/params.h
/usr/local/include/openssl/pem.h
/usr/local/include/openssl/pem2.h
/usr/local/include/openssl/pemerr.h
/usr/local/include/openssl/pkcs12.h
/usr/local/include/openssl/pkcs12err.h
/usr/local/include/openssl/pkcs7.h
/usr/local/include/openssl/pkcs7err.h
/usr/local/include/openssl/prov_ssl.h
/usr/local/include/openssl/proverr.h
/usr/local/include/openssl/provider.h
/usr/local/include/openssl/rand.h
/usr/local/include/openssl/randerr.h
/usr/local/include/openssl/rc2.h
/usr/local/include/openssl/rc4.h
/usr/local/include/openssl/rc5.h
/usr/local/include/openssl/ripemd.h
/usr/local/include/openssl/rsa.h
/usr/local/include/openssl/rsaerr.h
/usr/local/include/openssl/safestack.h
/usr/local/include/openssl/seed.h
/usr/local/include/openssl/self_test.h
/usr/local/include/openssl/sha.h
/usr/local/include/openssl/srp.h
/usr/local/include/openssl/srtp.h
/usr/local/include/openssl/ssl.h
/usr/local/include/openssl/ssl2.h
/usr/local/include/openssl/ssl3.h
/usr/local/include/openssl/sslerr.h
/usr/local/include/openssl/sslerr_legacy.h
/usr/local/include/openssl/stack.h
/usr/local/include/openssl/store.h
/usr/local/include/openssl/storeerr.h
/usr/local/include/openssl/symhacks.h
/usr/local/include/openssl/tls1.h
/usr/local/include/openssl/trace.h
/usr/local/include/openssl/ts.h
/usr/local/include/openssl/tserr.h
/usr/local/include/openssl/txt_db.h
/usr/local/include/openssl/types.h
/usr/local/include/openssl/ui.h
/usr/local/include/openssl/uierr.h
/usr/local/include/openssl/whrlpool.h
/usr/local/include/openssl/x509.h
/usr/local/include/openssl/x509_vfy.h
/usr/local/include/openssl/x509err.h
/usr/local/include/openssl/x509v3.h
/usr/local/include/openssl/x509v3err.h
Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected '.pc' files:
/usr/local/lib/pkgconfig/libcrypto.pc
/usr/local/lib/pkgconfig/libssl.pc
/usr/local/lib/pkgconfig/openssl.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libcrypto.a
/usr/local/lib/libssl.a
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
Any help appreciated! 🙂
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 48 (22 by maintainers)
Commits related to this issue
- 80-test_cmp_http_data/test_connection.csv: disable tests using 'localhost' or '::1' This is a trivial 'backport' of commit 1ef3032eacab60f2ed5dcfc93caeee0134351d2d fixing #22467 — committed to siemens/openssl by DDvO 2 years ago
- 80-test_cmp_http_data/test_connection.csv: disable tests using 'localhost' or '::1' This is a trivial 'backport' of commit 1ef3032eacab60f2ed5dcfc93caeee0134351d2d fixing #22467 Reviewed-by: Neil Ho... — committed to openssl/openssl by DDvO 2 years ago
- 80-test_cmp_http_data/test_connection.csv: disable tests using 'localhost' or '::1' This is a trivial 'backport' of commit 1ef3032eacab60f2ed5dcfc93caeee0134351d2d fixing #22467 Reviewed-by: Neil Ho... — committed to openssl/openssl by DDvO 2 years ago
If you use “brew edit openssl@3” then your editor should show you the path to where the file is on your system.
For the record, this does not fix the issue. It simply bypasses the failing test.
The
make testexecution can be amended to saymake test TESTS='-test_cmp_http'. But how to do that in Homebrew that is a question for elsewhere.Sorry that I did not notice this issue before.
The problem is that the HTTP client respects the HTTP proxy environment variables and so far the HTTP-based tests assume that no proxy has been set, but when one is set and
no_proxydoes not as usual include 127.0.0.1 (localhost), the local HTTP connections go wrong.I’m going to make the tests more robust.
TL;DR
For me it worked after I unset my corporate proxy environment variables (http_proxy, https_proxy)
What I’ve done
After being unable to upgrade many packages because of that failing test I had a closer look today. It looks like that specific test is having issues with corporate proxy environment variables set. I executed the build steps manually
and received a bunch of error messages like this
Having unset my env vars
http_proxyandhttps_proxythe tests were succeeding and also thebrew upgrade openssl@3command.Sorry to resurrect this, but running into this issue again upgrading to 3.4.0, even with
::1added tono_proxy, which previously fixed this issue for me.Per #25508, I should unset
http_proxyandhttps_proxy. But if I do that I cannot download frombrew. So not sure what my options are.I have a few more failures than previously now:
Previously on
80-test_cmp_http.tfailed. Any suggestions?@DDvO @t8m thank you. I’m in a bit of a bind as
brewis also attempting to upgrade to 3.3.2, rendering https://github.com/openssl/openssl/issues/22467#issuecomment-1870367428 as not used apparently.I cant uninstall
openssleither as its used by many apps; likewise. cant pin to current version aspythondetects this and refuses to install.I presume my scenario is not common…I’ll see if I can come up with anything.
EDIT: solved by re-reading discussion and updating
no_proxywith [::1] instead of ::1. Sorry for the noise.@DDvO issue fixed - thank you! Pulled your latest changes and this time the tests were running successful with proxy env vars set. Tried authenticating NTLM proxy and non authenticating through cntlm.
@oyo thank you. This helped me spotting a further fix needed. Moreover, unfortunately something went wrong when I pushed my changes to #25010 two days ago. Now everything is pushed, including my today’s new fix. I ask you to try again with the latest changes.
I see. Interesting feature of that system setup making local servers listen by default via IPv6.
@scopey tanks,This method is indeed useful
@scopey tanks.This works for me.
Thank you so much, @scopey, your instructions finally made my Homebrew install a working openssl@3. It brings back a solid piece of hardware to good use again. I hope this will help others, too, as I could not find applicable instructions elsewhere, which did not require further insights …
And yeah, this test failure probably is not anything critical.
Yes, see https://github.com/openssl/openssl/issues/22467#issuecomment-1870367428 above.
This will be hopefully fixed with next releases as they will include the fix.
@t8m thank you for this! I changed the command in the openssl@3.rb file and can confirm it allowed Homebrew to install openssl@3 on Mac Catalina.