installed nss-3.14 not found when building firefox/libxul/etc.

Jan Beich jbeich at tormail.org
Sun Dec 30 17:56:47 UTC 2012


Robert Huff <roberthuff at rcn.com> writes:

>        While trying to build firefox, thunderbird, seamonkey, and
> libxul under:
>
> FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012 amd64
>
> 	none of these believe nss is installed.
> 	However:
>
> huff at jerusalem>> pkg info nss
> nss-3.14                       Libraries to support development of security-enabled applications
> huff at jerusalem>> find /usr/local/ -name "*libnss*"
> /usr/local/lib/nss/libnss3.so.1
> /usr/local/lib/nss/libnssckbi.so.1
> /usr/local/lib/nss/libnssdbm3.so.1
> /usr/local/lib/nss/libnssutil3.so.1
> /usr/local/lib/nss/libnss3.so
> /usr/local/lib/nss/libnssckbi.so
> /usr/local/lib/nss/libnssdbm3.so
> /usr/local/lib/nss/libnssutil3.so
>
>
> 	Any idea what might be wrong?

Check wether ldconfig hints have -lnss3? If not, re-gen them.

  $ cat /usr/local/libdata/ldconfig/nss
  /usr/local/lib/nss

  $ ldconfig -r | GREP_COLOR=3 grep --color -wE -e -lnss3
        397:-lnss3.1 => /usr/local/lib/nss/libnss3.so.1

  $ service ldconfig restart
  ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/alsa-lib /usr/local/lib/event2 /usr/local/lib/nss
  32-bit compatibility ldconfig path: /usr/lib32

Here's the code that decides whether a library is found (from bsd.port.mk):

	${ECHO_MSG} -n "===>   ${PKGNAME} depends on shared library: $$lib"; \
	if ${LDCONFIG} ${_LDCONFIG_FLAGS} -r | ${GREP} -vwF -e "${PKGCOMPATDIR}" | ${GREP} -qwE -e "-l$$pattern"; then \
		${ECHO_MSG} " - found"; \
		if [ ${_DEPEND_ALWAYS} = 1 ]; then \
			${ECHO_MSG} "       (but building it anyway)"; \
			notfound=1; \
		else \
			notfound=0; \
		fi; \
	else \
		${ECHO_MSG} " - not found"; \
		notfound=1; \
	fi; \

--
My guess, either you manually ran ldconfig without -m option or tried to
install/update a port that runs ldconfig outside of USE_LDCONFIG.


More information about the freebsd-gecko mailing list