Status

JSS
Library
--
enhancement
RESOLVED FIXED
16 years ago
16 years ago

People

(Reporter: Sonja Mirtitsch, Assigned: Jamie Nicolson)

Tracking

3.1.1
x86
Windows NT

Details

Attachments

(2 attachments)

(Reporter)

Description

16 years ago
I'm filing unauthorized bugs again, hope I don't make a new enemy...
I wanted to file this against the JSS build, but that was not a choice here.

When checking out coreconf with the static tag "NSS_3_3_RTM" the builds pass,
when using the current coreconf, which I need for the NT build to pass it fails
with and ld error:
gmake[1]: Entering directory
`/tmp_mnt/share/builds/mccrel/jss/jsstip/builds/20010925.1/booboo_Solaris8/mozilla/security/jss/lib'
grep -v ';+' jss.def | grep -v ';-' | \
 sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,-exported_symbol ,' >
OSF1V4.0D_DBG.OBJ/jssmap.osf
rm -f OSF1V4.0D_DBG.OBJ/libjss3.so
ld -shared -expect_unresolved "*" -soname libjss3.so -B symbolic -hidden -input
OSF1V4.0D_DBG.OBJ/jssmap.osf -o OSF1V4.0D_DBG.OBJ/libjss3.so 
../org/mozilla/jss/crypto/OSF1V4.0D_DBG.OBJ/Algorithm.o
../org/mozilla/jss/crypto/OSF1V4.0D_DBG.OBJ/PQGParams.o
../org/mozilla/jss/manage/OSF1V4.0D_DBG.OBJ/CryptoManager.o
../org/mozilla/jss/manage/OSF1V4.0D_DBG.OBJ/PK11Finder.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11Cert.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11Cipher.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11KeyGenerator.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11KeyPairGenerator.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11KeyWrapper.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11MessageDigest.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11Module.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11PrivKey.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11PubKey.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11Signature.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11SecureRandom.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11Store.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11SymKey.o
../org/mozilla/jss/pkcs11/OSF1V4.0D_DBG.OBJ/PK11Token.o
../org/mozilla/jss/ssl/OSF1V4.0D_DBG.OBJ/SSLSocket.o
../org/mozilla/jss/ssl/OSF1V4.0D_DBG.OBJ/callbacks.o
../org/mozilla/jss/ssl/OSF1V4.0D_DBG.OBJ/SSLServerSocket.o
../org/mozilla/jss/ssl/OSF1V4.0D_DBG.OBJ/common.o
../org/mozilla/jss/ssl/OSF1V4.0D_DBG.OBJ/javasock.o
../org/mozilla/jss/util/OSF1V4.0D_DBG.OBJ/jssutil.o
../org/mozilla/jss/util/OSF1V4.0D_DBG.OBJ/jssver.o
../org/mozilla/jss/util/OSF1V4.0D_DBG.OBJ/errstrings.o -taso  
-L../../../dist/OSF1V4.0D_DBG.OBJ/lib -lnss3 -lsmime3 -lssl3 -lplc4 -lplds4
-lnspr4 -L/share/builds/components/jdk/1.2.2/OSF1/jre/lib/alpha/native_threads
-lhpi -L/share/builds/components/jdk/1.2.2/OSF1/jre/lib/alpha/classic -ljvm
-L/share/builds/components/jdk/1.2.2/OSF1/jre/lib/alpha -ljava 
-L/share/builds/components/jdk/1.2.2/OSF1/jre/lib/alpha.no 
ld:
Badly formed hex number: symbolic
ld: Usage: ld [options] file [...]
gmake[1]: *** [OSF1V4.0D_DBG.OBJ/libjss3.so] Error 1
gmake[1]: Leaving directory
`/tmp_mnt/share/builds/mccrel/jss/jsstip/builds/20010925.1/booboo_Solaris8/mozilla/security/jss/lib'
gmake: *** [libs] Error 2
Elapsed Time = 00:01:37
Tue 25 Sep 2001 12:07:29
(Reporter)

Comment 1

16 years ago
Created attachment 50760 [details]
JSS 3.1 DBG built with new coreconf (failed)
(Reporter)

Comment 2

16 years ago
Created attachment 50761 [details]
JSS 3.1 DBG built with NSS_3_3_RTM coreconf (passed)
(Reporter)

Updated

16 years ago
Severity: normal → enhancement
Target Milestone: --- → 3.1.1
(Assignee)

Comment 3

16 years ago
Sonja,

Can you please do a "which ld"?

The ld man page does indicate that the -B argument is supposed to take a number,
not the word "symbolic". But it works for me. Possibly it depends which version
and supplier of ld we are using.
(Reporter)

Comment 4

16 years ago
in a regular svbld login shell which ld gives 
/bin/ld
version 3.11
I am not completely convinced that that is the ld that is being used in the
build, since I am not so familiar with the buildsystem - maybe the linker is
being changed - you could ask Anthony. 
With the coreconf that is tagged NSS_3_3_RTM it builds fine.

(Assignee)

Comment 5

16 years ago
I removed the "-B symbolic" flag in mozilla/security/jss/config/config.mk on the
JSS_3_1_BRANCH. This should fix this specific problem.

I created a bug to deal with the general problem:
http://bugzilla.mozilla.org/show_bug.cgi?id=102922 (get rid of -B symbolic
linker option).
Status: NEW → ASSIGNED
(Reporter)

Comment 6

16 years ago
works now on the 3.1 branch, could you please remember to check the fix in at
the tip as well?.
Thanks
Status: ASSIGNED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
(Reporter)

Comment 7

16 years ago
Please fix on the tip as well. Thanks
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 8

16 years ago
Fixed on the trunk.

/cvsroot/mozilla/security/jss/config/config.mk,v  <--  config.mk
new revision: 1.5; previous revision: 1.4
Status: REOPENED → RESOLVED
Last Resolved: 16 years ago16 years ago
QA Contact: somni → sonja.mirtitsch
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.