[MacPorts] #58586: perl5.28 @5.28.2+universal build error due to erroneous inclusion of -lnsl (was: perl @5.28.2+universal build error due to erroneous inclusion of -lnsl)
MacPorts
noreply at macports.org
Wed Jun 12 16:24:22 UTC 2019
#58586: perl5.28 @5.28.2+universal build error due to erroneous inclusion of -lnsl
-----------------------+----------------------
Reporter: i3roly | Owner: mojca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: perl5.28 |
-----------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* cc: mojca (removed)
* owner: (none) => mojca
* keywords: perl =>
* port: perl => perl5.28
Comment:
It built fine on our automated build system, so something must be
different about your system.
Looking at your log and comparing it to mine, I note some differences. I
see your tarball was extracted using /bin/tar. This is unexpected, because
no such program exists on a stock macOS system. (On macOS, it's installed
at /usr/bin/tar.) So what is /bin/tar and how did it get there, and what
else has been installed into system directories that shouldn't be there?
As you noted, your build decided to use the library nsl; it also decided
to use the library crypt. My build doesn't try to use either library.
Neither library is part of macOS nor MacPorts. I'm not certain why your
build did this, and it doesn't look like perl's Configure script creates a
log so we can't inspect that either. But I added `set -x` near the
beginning of the Configure script to see the commands it was running, and
it looks like among other places it looks in /usr/local/lib for libraries.
Do you perhaps have libcrypt and libnsl installed there? If so, please
remove them (see wiki:FAQ#usrlocal). The Configure script also looks in
/usr/lib, and although these libraries are not part of macOS and should
not be there, we already know you have at least one file installed in a
system directory that should not be there, so maybe there are others, so
check /usr/lib for these libraries too. If you can find these libraries
and remove them, clean perl5.28 and try again.
--
Ticket URL: <https://trac.macports.org/ticket/58586#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list