On Wed, Oct 22, 2008 at 12:10 AM, <[EMAIL PROTECTED]> wrote: > > I keep getting reports from gentoo > users (64 and 32 bit) they when they use the Firefox version from > emerge (apparently it is now in testing, but not the main tree) my > component library Perspectives.so fails to load. In the log it looks > like this: > > -1210775856[8058c90]: nsNativeModuleLoader::LoadModule("/home/ > dan/.mozilla/firefox/re9q6sk5.default/extensions/[EMAIL PROTECTED]/ > platform/Linux_x86-gcc3/components/Perspectives.so") - load FAILED, > rv: 80004005, error: > /home/dan/.mozilla/firefox/re9q6sk5.default/extensions/ > [EMAIL PROTECTED]/platform/Linux_x86-gcc3/components/ > Perspectives.so: undefined symbol: > SECKEY_DecodeDERSubjectPublicKeyInfo
SECKEY_DecodeDERSubjectPublicKeyInfo is in NSS 3.4 or later, so all recent NSS releases have this symbol. > The extension has several thousand users and pretty much the only > error reports I get is from gentoo users. I've had them make sure that > the NSS libraries are installed. One helpful user even ran pmap on > the running Firefox process, which seems to indicate that the libnss > libraries were successfully loaded. > > $ pmap $(pgrep firefox) | grep libnss > b27a2000 272K r-x-- /usr/lib/nss/libnssckbi.so.12 > b27e6000 28K r---- /usr/lib/nss/libnssckbi.so.12 > b27ed000 16K rw--- /usr/lib/nss/libnssckbi.so.12 > b2831000 124K r-x-- /usr/lib/nss/libnssdbm3.so.12 > b2850000 4K r---- /usr/lib/nss/libnssdbm3.so.12 > b2851000 4K rw--- /usr/lib/nss/libnssdbm3.so.12 > b4a25000 16K r-x-- /lib/libnss_dns-2.6.1.so > b4a29000 4K r---- /lib/libnss_dns-2.6.1.so > b4a2a000 4K rw--- /lib/libnss_dns-2.6.1.so > b5b1a000 76K r-x-- /usr/lib/nss/libnssutil3.so.12 > b5b2d000 12K r---- /usr/lib/nss/libnssutil3.so.12 > b5b30000 4K rw--- /usr/lib/nss/libnssutil3.so.12 > b5b31000 1084K r-x-- /usr/lib/nss/libnss3.so.12 > b5c40000 16K r---- /usr/lib/nss/libnss3.so.12 > b5c44000 4K rw--- /usr/lib/nss/libnss3.so.12 The presence of libnssdbm3.so shows that this user is using NSS 3.12 or newer. > I am compiling the library on Ubuntu with flags (excluding unnecessary > lines): > > GECKO_LDFLAGS = -L$(GECKO_SDK_PATH)/lib -L$(GECKO_SDK_PATH)/bin -Wl,- > rpath-link,$(GECKO_SDK_PATH)/bin -lxpcomglue_s -lxpcom -lxul -lnss - > lnssutil > > $(CXX) -Wall -Os -o $(TARGET) $(GECKO_CONFIG_INCLUDE) $ > (GECKO_DEFINES) $(GECKO_INCLUDES) -shared $(CXXFLAGS) $(FILES) $ > (GECKO_LDFLAGS) With an official NSS 3.12.x release, you should link with -lnss3 -lnssutil3. I don't know what changes Gentoo made to its NSS package. Wan-Teh _______________________________________________ dev-security mailing list dev-security@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-security