[MacPorts] #63415: p5.28-net-ssleay failed to compile under Monterey (21A5304g)
MacPorts
noreply at macports.org
Thu Oct 28 14:18:01 UTC 2021
#63415: p5.28-net-ssleay failed to compile under Monterey (21A5304g)
----------------------------+--------------------------
Reporter: ilTofa | Owner: markmentovai
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: monterey
Port: p5-net-ssleay |
----------------------------+--------------------------
Comment (by markmentovai):
[comment:32 @ryandesign comment:32]:
The relevant snippet from your log is:
{{{
:debug:configure system: cd
"/opt/bblocal/var/macports/build/_opt_bblocal_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-net-ssleay/p5.28-net-ssleay/work/Net-SSLeay-1.90" &&
/opt/bblocal/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor
CC="/usr/bin/clang" LD="/usr/bin/clang"
:info:configure Do you want to run external tests?
:info:configure These tests *will* *fail* if you do not have network
connectivity. [n] n
:info:configure *** Found LibreSSL-2.8.3 installed in /usr
:info:configure *** Be sure to use the same compiler and options to
compile your OpenSSL, perl,
:info:configure and Net::SSLeay. Mixing and matching compilers is not
supported.
:info:configure Checking if your kit is complete...
:info:configure Looks good
:info:configure WARNING: /opt/bblocal/bin/perl5.28 is loading libcrypto in
an unsafe way
:info:configure sh: line 1: 81247 Abort trap: 6
/opt/bblocal/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor
CC="/usr/bin/clang" LD="/usr/bin/clang"
:info:configure Command failed: cd
"/opt/bblocal/var/macports/build/_opt_bblocal_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-net-ssleay/p5.28-net-ssleay/work/Net-SSLeay-1.90" &&
/opt/bblocal/bin/perl5.28 Makefile.PL INSTALLDIRS=vendor
CC="/usr/bin/clang" LD="/usr/bin/clang"
:info:configure Exit code: 134
:error:configure Failed to configure p5.28-net-ssleay: configure failure:
command execution failed
}}}
That `Makefile.PL` found `LibreSSL-2.8.3 installed in /usr` means that it
discovered `/usr/bin/openssl` (this is `openssl version` output).
Assuming you’re at [https://github.com/macports/macports-
ports/commit/66569d9c7a6d3aa5fc1da1d2a1f0dcfa410bcc33 95af71cb7ba4] or
later and actually do have MacPorts OpenSSL installed, this happened
because you don’t have `/opt/local/bin/openssl` (which Net::SSLeay looks
for) and fell back to `/usr/bin/openssl`. And you don’t have
`/opt/local/bin/openssl` because I can see from your build log that your
MacPorts installation is `/opt/bblocal`. See [https://github.com/radiator-
software/p5-net-
ssleay/blob/2e60b0b87b61776d8c7c01acd3fe01db59956906/Makefile.PL#L300
Makefile.PL:300].
With an OpenSSL (actually LibreSSL) installation detected at /usr, even
with [https://github.com/macports/macports-
ports/commit/911ba56d1268af44c9d2a731443443f7f3d4d8e5 911ba56d1268] in
place to avoid the attempted load of `/usr/libcrypto.dylib`, you would
have attempted to load `/usr/lib/libcrypto.dylib` by exact absolute path,
and that is, of course the poisoned dylib that we’re trying to avoid. And
it’s also a dylib that we don’t intend to link against or load at all,
since we do have our own libcrypto from our own OpenSSL installation that
we’d like to use. So even if this wasn’t a build break in the past, it
seems that it may not have been doing what was intended for MacPorts
installations in locations other than `/opt/local` until
[https://github.com/macports/macports-
ports/commit/cbbf887681f24dfd859d1466fcf3245239969382 cbbf887681f2], and
then [https://github.com/macports/macports-
ports/commit/66569d9c7a6d3aa5fc1da1d2a1f0dcfa410bcc33 66569d9c7a6d] broke
it again.
The right way to force Makefile.PL to find the intended OpenSSL
installation is to set `OPENSSL_PREFIX`, but this was unfortunately
removed in [https://github.com/macports/macports-
ports/commit/66569d9c7a6d3aa5fc1da1d2a1f0dcfa410bcc33 66569d9c7a6d]. That
part of the change should be reverted.
--
Ticket URL: <https://trac.macports.org/ticket/63415#comment:37>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list