When I was try to install firefox and thunderbird their dependencies nss doesn't compile because libnspr.so.4 doesn't linked with libpthread: [ . . . ] x86_64-gentoo-freebsd8.2-gcc -o FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/baddbdir -O -fPIC -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT -DNSS_ENABLE_ECC -DUSE_UTIL_DIRECTLY -I/usr/X11R6/include -I/usr/include/nspr -I../../../dist/FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss -I/usr/include/nspr -I../../../dist/FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/include/dbm -I../../../dist/public/seccmd -I../../../dist/public/dbm -w -O2 -march=native -pipe FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/baddbdir.o \ -Wl,-O1 -Wl,--as-needed -Wl,--allow-multiple-definition ../../../dist/FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/lib/libsectool.a -L../../../dist/FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/lib -lssl3 -lsmime3 -lnss3 -L../../../dist/FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/lib -lnssutil3 -L/usr/lib64 -lplc4 -lplds4 -lnspr4 -pthread /usr/lib64/libnspr4.so: undefined reference to `pthread_create' /usr/lib64/libnspr4.so: undefined reference to `pthread_condattr_init' /usr/lib64/libnspr4.so: undefined reference to `pthread_setschedparam' /usr/lib64/libnspr4.so: undefined reference to `pthread_getschedparam' collect2: ld returned 1 exit status gmake[2]: *** [FreeBSD8.2_x86_64-gentoo-freebsd8.2-gcc_64_OPT.OBJ/baddbdir] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.13.1/work/nss-3.13.1/mozilla/security/nss/cmd/tests' gmake[1]: *** [libs] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/dev-libs/nss-3.13.1/work/nss-3.13.1/mozilla/security/nss/cmd' gmake: *** [libs] Error 2 emake failed [ . . . ] After I manualy add "-lpthread" to link command line the nss compile without error.
"libnspr4.so.8" the right library name what from missing libpthread
Created attachment 292715 [details, diff] nspr-4.8.9.ebuild.patch Patch for nspr-4.8.9.ebuild to link nspr shared libraries with libpthread.
Please test if posibble and apply on portage tree.
I can't reproduce the error... $ ldd /usr/lib/libnspr4.so.8 /usr/lib/libnspr4.so.8: libthr.so.3 => /lib/libthr.so.3 (0x281dc000) libc.so.7 => /lib/libc.so.7 (0x28090000) # emerge -pv nspr nss [ebuild R ] dev-libs/nspr-4.8.9 USE="-debug" 0 kB [ebuild R ] dev-libs/nss-3.13.1 USE="-utils" 0 kB
I have just added 4.9 to the tree, give it a spin, I have reworked pkg-config so you should get proper linking now.
Cannot reproduce. Reopen if you still have an error.