Issue 111896 - moz on Linux x86 cannot find -lnssutil3
Summary: moz on Linux x86 cannot find -lnssutil3
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: DEV300m79
Hardware: All All
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 07:14 UTC by pavel
Modified: 2010-07-05 16:49 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2010-05-28 07:14:55 UTC
Hi ause,

I have finished x86_64 build, but on x86:

ccache /usr/bin/g++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-
arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -
Wno-long-long -pedantic -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -
Wl,-z,defs -Wl,-h,libpipnss.so -o libpipnss.so  md4.o nsClientAuthRemember.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       ../../../../dist/lib/libunicharutil_s.a -L../../../../dist/bin -lxpcom -
lxpcom_core  -L../../../../dist/bin -L../../../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -
L../../../../dist/bin -lmozjs -L-L../../../../dist/bin -L../../../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3 -
lnssutil3 -lsoftokn3  -Wl,-rpath,\$ORIGIN:\$ORIGIN/../ure-link/lib -Wl,-
rpath,\$ORIGIN/..:\$ORIGIN/../../ure-link/lib -Wl,--version-script -Wl,../../../../../build/unix/gnu-
ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm    
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find -lnssutil3
collect2: ld returned 1 exit status
gmake[4]: *** [libpipnss.so] Error 1
gmake[4]: Leaving directory 
`/home/oo/BuildDir/ooo_DEV300_m79_src/moz/unxlngi6.pro/misc/build/mozilla/I_objdir/security/m
anager/ssl/src'

adding -L ~/BuildDir/ooo_DEV300_m79_src/solver/300/unxlngi6.pro/lib/ to the command line helped.

Do you have an idea why?

moz was ok in m78 on all platforms.
Comment 1 hjs 2010-06-01 10:44:46 UTC
linking a nss library that doesn't exist in the seamonkey version of nss but in
the nss modules supplied (thus on solver).
moz/patches/linux_libc2.5.patch contains the change that triggers this but i
have no idea why it was introduced. imho, it should build fine without.

@vg: why did you introduce that patch?
Comment 2 vg 2010-06-01 10:50:10 UTC
@hjs: I needed it for the new baseline, othewise I got unresolved symbols, and
google told me, that these symbols are to find in this library
Comment 3 hjs 2010-06-01 15:31:57 UTC
moz builds fine on different machines (including baseline vm) without this patch.
Comment 4 hjs 2010-07-05 16:49:07 UTC
masterfixed in DEV300_m81
Comment 5 hjs 2010-07-05 16:49:29 UTC
.