#56328 closed defect (fixed)
ntp does not build
Reported by: | janstary (Jan Starý) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.3 |
Keywords: | Cc: | ||
Port: | ntp |
Description
The build of sysutils/ntp eventually fails with
:info:build CCLD sntp :info:build Undefined symbols for architecture x86_64: :info:build "_EVP_MD_CTX_free", referenced from: :info:build _compute_mac in libsntp.a(crypto.o) :info:build _make_mac in libntp.a(a_md5encrypt.o) :info:build _addr2refid in libntp.a(a_md5encrypt.o) :info:build "_EVP_MD_CTX_new", referenced from: :info:build _compute_mac in libsntp.a(crypto.o) :info:build _make_mac in libntp.a(a_md5encrypt.o) :info:build _addr2refid in libntp.a(a_md5encrypt.o) :info:build "_OpenSSL_version_num", referenced from: :info:build _ssl_check_version in libntp.a(ssl_init.o)
I suspect the linking with libcrypto. The Portfile describes its dependency as "lib:libcrypto:openssl"; no other port does that.
I changed it to "path:lib/libcrypto.dylib:openssl" like other ports do, but it fails the same
Change History (4)
comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 7 years ago by janstary (Jan Starý)
Yes; it's probably similar to what's referenced there: https://trac.macports.org/ticket/53017 Indeed, there is no EVP_MD_CTX_free and no EVP_MD_CTX_new in my "nm /usr/lib/libcrypto.* /opt/local/lib/libcrypto.* | grep EVP" https://www.openssl.org/docs/man1.1.0/crypto/EVP_MD_CTX_new.html Which means it's neither in the newer LibreSSL I have, nor in the older OpenSSL I have (in /usr/lib/).
comment:3 Changed 7 years ago by danielluke (Daniel J. Luke)
Resolution: | → fixed |
---|---|
Status: | new → closed |
That change was made for #50406. I've changed it back to port:openssl until upstream (or someone here) fixes it to build with libressl again.
comment:4 Changed 7 years ago by janstary (Jan Starý)
ntp builds fine woth LibreSSL 2.7.2 https://github.com/macports/macports-ports/pull/1626
It builds for me. Are you using libressl? If so, see #53087.