Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2020 13:27:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 246676] security/nss: fails to cross-build for armv7 using native-xtools
Message-ID:  <bug-246676-21738-2ELYIoqI8y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246676-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246676-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gecko mailing =
list
<gecko@FreeBSD.org> for maintainer-feedback:
Bug 246676: security/nss: fails to cross-build for armv7 using native-xtools
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246676



--- Description ---
When using native-xtools, cross-building the port fails for libraries not
found:

ld: error: unable to find library -lplc4
ld: error: unable to find library -lplds4
ld: error: unable to find library -lnspr4

full log:
http://home.palmen-it.de/testbuilder/data/13xarm7-default/2020-05-22_17h47m=
36s/
logs/errors/nss-3.52.1.log

The port sets LIBRARY_PATH, and the linker seems to look there for libraries
automatically, but the one from native-xtools doesn't. Thanks to RhodiumToad
@#freebsd-ports for helping to analyze this!

The fix is to replace this with NSPR_LIB_DIR, which causes the build system=
 to
add an explicit -L flag, see attached patch.

A few test builds with the change applied:

11.3/i386:
http://home.palmen-it.de/testbuilder/data/113i-default/2020-05-23_12h05m07s=
/log
s/nss-3.52.1.log
13/amd64:
http://home.palmen-it.de/testbuilder/data/13a-default/2020-05-23_12h01m03s/=
logs
/nss-3.52.1.log
13/armv7-cross:
http://home.palmen-it.de/testbuilder/data/13xarm7-default/2020-05-23_15h11m=
50s/
logs/nss-3.52.1.log



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246676-21738-2ELYIoqI8y>