security/nss poudriere amd64->aarch64 cross-build failure: could not find libraries -lplc4 -lplds4 -lnspr4

Mark Millard marklmi at yahoo.com
Tue Apr 28 02:31:20 UTC 2020


This was an amd64->aarch64 poudriere-devel based cross build,
using nxb-bin. Ports head -r533162 .

It looks like it expects the (nxb-bin based) cc to automatically
look in /usr/local/lib/ (or wherever) for finding some matches to
-lNAME but things were not set up for that to happen. It may need
to be explicit.


=======================<phase: lib-depends    >============================
===>   nss-3.51.1_1 depends on shared library: libnspr4.so - not found
===>   Installing existing package /packages/All/nspr-4.25.txz
[FBSDamd64TR] Installing nspr-4.25...
[FBSDamd64TR] Extracting nspr-4.25: .......... done
===>   nss-3.51.1_1 depends on shared library: libnspr4.so - found (/usr/local/lib/libnspr4.so)
. . .
rm -f FreeBSD13.0_OPT.OBJ/libnssutil3.so
/nxb-bin/usr/bin/cc -Wl,-Bsymbolic -shared -Wl,-soname -Wl,libnssutil3.so -pthread -Wl,--version-script,FreeBSD13.0_OPT.OBJ/nssutil.def -o FreeBSD13.0_OPT.OBJ/libnssutil3.so FreeBSD13.0_OPT.OBJ/quickder.o FreeBSD13.0_OPT.OBJ/secdig.o FreeBSD13.0_OPT.OBJ/derdec.o FreeBSD13.0_OPT.OBJ/derenc.o FreeBSD13.0_OPT.OBJ/dersubr.o FreeBSD13.0_OPT.OBJ/dertime.o FreeBSD13.0_OPT.OBJ/errstrs.o FreeBSD13.0_OPT.OBJ/nssb64d.o FreeBSD13.0_OPT.OBJ/nssb64e.o FreeBSD13.0_OPT.OBJ/nssrwlk.o FreeBSD13.0_OPT.OBJ/nssilock.o FreeBSD13.0_OPT.OBJ/oidstring.o FreeBSD13.0_OPT.OBJ/pkcs1sig.o FreeBSD13.0_OPT.OBJ/portreg.o FreeBSD13.0_OPT.OBJ/secalgid.o FreeBSD13.0_OPT.OBJ/secasn1d.o FreeBSD13.0_OPT.OBJ/secasn1e.o FreeBSD13.0_OPT.OBJ/secasn1u.o FreeBSD13.0_OPT.OBJ/secitem.o FreeBSD13.0_OPT.OBJ/secload.o FreeBSD13.0_OPT.OBJ/secoid.o FreeBSD13.0_OPT.OBJ/sectime.o FreeBSD13.0_OPT.OBJ/secport.o FreeBSD13.0_OPT.OBJ/templates.o FreeBSD13.0_OPT.OBJ/utf8.o FreeBSD13.0_OPT.OBJ/utilmod.o FreeBSD13.0_OPT.OBJ/utilpars.o FreeBSD13.0_OPT.OBJ/pkcs11uri.o    -L../../../dist/FreeBSD13.0_OPT.OBJ/lib -L../../../dist/FreeBSD13.0_OPT.OBJ/lib -lplc4 -lplds4 -lnspr4  -pthread
ld: error: unable to find library -lplc4
ld: error: unable to find library -lplds4
ld: error: unable to find library -lnspr4
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [../../coreconf/rules.mk:291: FreeBSD13.0_OPT.OBJ/libnssutil3.so] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.51.1/nss/lib/util'
gmake[2]: *** [../coreconf/rules.mk:101: libs] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.51.1/nss/lib'
gmake[1]: *** [coreconf/rules.mk:101: libs] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.51.1/nss'
*** Error code 1


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list