Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208212 - dev-libs/nss-3.12_beta1-r1 new patchset breaks mozilla-firefox/thunderbird/sunbird with -Wl,--as-needed
Summary: dev-libs/nss-3.12_beta1-r1 new patchset breaks mozilla-firefox/thunderbird/su...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-01-30 20:34 UTC by Walter Meinl
Modified: 2008-02-08 12:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (ei.txt,4.12 KB, text/plain)
2008-02-01 19:12 UTC, Walter Meinl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Meinl 2008-01-30 20:34:38 UTC
after update of the patchset for mozilla-firefox and other mozilla-apps (TB,SB) they fail to compile  on amd with LDFLAGS='-Wl,--as-needed'
Here's some start of the error output:
rm -f libpipnss.so
x86_64-pc-linux-gnu-g++ -DGENTOO_NSPLUGINS_DIR=\"/usr/lib64/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib64/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon64 -pipe -fPIC -Wno-return-type -w -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2 -fPIC -shared -Wl,-z,defs -Wl,-rpath,'$ORIGIN:$ORIGIN/..' -Wl,-h,libpipnss.so -o libpipnss.so  md4.o nsPSMBackgroundThread.o nsSSLThread.o nsCertVerificationThread.o nsCipherInfo.o nsNSSCallbacks.o nsNSSComponent.o nsNSSIOLayer.o nsNSSModule.o nsSSLSocketProvider.o nsTLSSocketProvider.o nsSDR.o nsPK11TokenDB.o nsNSSCertificate.o nsPKCS12Blob.o nsNSSASN1Object.o nsKeygenHandler.o nsCrypto.o nsPKCS11Slot.o nsKeygenThread.o nsCMSSecureMessage.o nsCMS.o nsCertPicker.o nsCRLInfo.o nsNSSCertCache.o nsNSSCertHelper.o nsNSSCertificateDB.o nsNSSCertTrust.o nsNSSCertValidity.o nsOCSPResponder.o nsUsageArrayHelper.o nsCRLManager.o nsNSSShutDown.o nsNTLMAuthModule.o nsNSSEvent.o nsSmartCardMonitor.o nsSmartCardEvent.o nsStreamCipher.o nsKeyModule.o nsCertTree.o    -Wl,-O1 -Wl,--sort-common -Wl,--as-needed  -Wl,-rpath,'$ORIGIN:$ORIGIN/..'  ../../../../dist/lib/libunicharutil_s.a -L../../../../dist/bin -lxpcom -lxpcom_core  -L../../../../dist/bin -Wl,-R/usr/lib64/nspr -L/usr/lib64/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L../../../../dist/bin -lmozjs -Wl,-R/usr/lib64/nss -L/usr/lib64/nss -lssl3 -lsmime3 -lnss3 -lnssutil3 -lcrmf  -Wl,--version-script -Wl,../../../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm    
/usr/lib64/nss/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertReqMessages':
(.text+0x29): undefined reference to `SEC_ASN1Encode_Util'
/usr/lib64/nss/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertRequest':
(.text+0x5f): undefined reference to `SEC_ASN1Encode_Util'
/usr/lib64/nss/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertReqMsg':
(.text+0x8f): undefined reference to `SEC_ASN1Encode_Util'
/usr/lib64/nss/libcrmf.a(crmftmpl.o):(.data.rel.ro+0x170): undefined reference to `SEC_NullTemplate_Util'
/usr/lib64/nss/libcrmf.a(crmftmpl.o):(.data.rel.ro+0x1b0): undefined reference to `SEC_BitStringTemplate_Util'
/usr/lib64/nss/libcrmf.a(crmftmpl.o):(.data.rel.ro+0x1f0): undefined reference to `SEC_IntegerTemplate_Util'
/...... screen cluttered with undefined references
unsetting this LDFLAG let it compile
I have installed dev-libs/nss-3.12_beta1-r1, the patch I suspect to cause this is 015_firefox-nss-3.12.patch.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-02-01 17:40:09 UTC
Hrm...you using nss-3.12_beta1 or nss-3.11.7?
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2008-02-01 18:54:48 UTC
D'oh, sorry, you already said it...
Comment 3 Walter Meinl 2008-02-01 19:12:31 UTC
Created attachment 142424 [details]
emerge --info

Yep, I use nss-3.12_{alpha/beta} since several weeks (having a home-made minefield ebuild). I had no problems to build ff-2.0.0.11 against it (could be however, that the last time before you added the patch to the patchset, I built it against nss-3.12_alpha2)
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2008-02-01 19:41:02 UTC
No, i can reproduce it...
Comment 5 Walter Meinl 2008-02-07 07:07:56 UTC
After including the nss-as-needed patch it works again, thanks.Tested with mozilla-firefox, mozilla-thunderbird, sunbird, seamonkey and xulrunner (all Gecko 1.8.x)
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-02-08 12:43:57 UTC
Hrm...i think i posted to this bug when i fixed it :/

Well, thanks, closing.