Closed
Bug 418548
Opened 17 years ago
Closed 7 years ago
build fails on libsoftokn3.so (for undefined symbol in libsqlite3.so)
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: matt, Unassigned)
Details
(Whiteboard: reviewed)
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1.9) Gecko/20071119 Firefox/2.0.0.9
Build Identifier: firefox-3.0b3
Platform: SunOS 5.11 snv_79a i86pc i386 i86pc
Compiler: gcc version 3.4.3 (csl-sol210-3_4-20050802)
Mozconfig:
ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build
ac_add_options --enable-debug --enable-optimize
ac_add_options --enable-shared --disable-static
I modified the top configure.in line 976, replace '-rpath-link' with '-R'
Compilation seems successful (almost everything compiles), until...
-------------------------------------------------------------
gmake[6]: Entering directory `/export/home/local/mozilla/security/nss/lib/softoken'
rm -f /export/home/local/mozilla/firefox-build/nss/softokn/libsoftokn3.so
gcc -shared -h libsoftokn3.so -z combreloc -z defs -z ignore -Wl,-M,/export/home/local/mozilla/firefox-build/nss/softokn/softokn.def -R '$ORIGIN' -o /export/home/local/mozilla/firefox-build/nss/softokn/libsoftokn3.so /export/home/local/mozilla/firefox-build/nss/softokn/ecdecode.o /export/home/local/mozilla/firefox-build/nss/softokn/fipsaudt.o /export/home/local/mozilla/firefox-build/nss/softokn/fipstest.o /export/home/local/mozilla/firefox-build/nss/softokn/fipstokn.o /export/home/local/mozilla/firefox-build/nss/softokn/lgglue.o /export/home/local/mozilla/firefox-build/nss/softokn/lowkey.o /export/home/local/mozilla/firefox-build/nss/softokn/lowpbe.o /export/home/local/mozilla/firefox-build/nss/softokn/padbuf.o /export/home/local/mozilla/firefox-build/nss/softokn/pkcs11.o /export/home/local/mozilla/firefox-build/nss/softokn/pkcs11c.o /export/home/local/mozilla/firefox-build/nss/softokn/pkcs11u.o /export/home/local/mozilla/firefox-build/nss/softokn/rsawrapr.o /export/home/local/mozilla/firefox-build/nss/softokn/sdb.o /export/home/local/mozilla/firefox-build/nss/softokn/sftkdb.o /export/home/local/mozilla/firefox-build/nss/softokn/sftkmod.o /export/home/local/mozilla/firefox-build/nss/softokn/sftkpars.o /export/home/local/mozilla/firefox-build/nss/softokn/sftkpwd.o /export/home/local/mozilla/firefox-build/nss/softokn/softkver.o /export/home/local/mozilla/firefox-build/nss/softokn/tlsprf.o /export/home/local/mozilla/firefox-build/dist/lib/libfreebl.a -L/export/home/local/mozilla/firefox-build/dist/lib -lnssutil3 -lsqlite3 -L/export/home/local/mozilla/firefox-build/dist/lib -lplc4 -lplds4 -lnspr4 -lthread -lnsl -lsocket -lposix4 -ldl -lc -lbsm
Undefined first referenced
symbol in file
main /export/home/local/mozilla/firefox-build/dist/lib/libsqlite3.so
ld: fatal: Symbol referencing errors. No output written to /export/home/local/mozilla/firefox-build/nss/softokn/libsoftokn3.so
---------------------------------------------------------------
Note that the compiler has produced a static library (the content of
/export/home/local/mozilla/firefox-build/nss/softtokn is
----------------------------------------------------
ecdecode.o libsoftokn.a pkcs11c.o sftkmod.o tlsprf.o
fipsaudt.o lowkey.o pkcs11u.o sftkpars.o
fipstest.o lowpbe.o rsawrapr.o sftkpwd.o
fipstokn.o padbuf.o sdb.o softkver.o
lgglue.o pkcs11.o sftkdb.o softokn.def
----------------------------------------------------
Note also that I compiled a small test executable and linked
succesfully w/ libsqlite3.so
Any suggestion?
Reproducible: Always
Steps to Reproduce:
1. Untar, create .mozconfig (see details)
2. Modify configure.in line 976 (see details)
3. Build, get a cup of coffee, admire the immense work...
Actual Results:
Undefined first referenced
symbol in file
main /export/home/local/mozilla/firefox-build/dist/lib/libsqlite3.so
ld: fatal: Symbol referencing errors. No output written to /export/home/local/mozilla/firefox-build/nss/softokn/libsoftokn3.so
Expected Results:
Succesful build
| Reporter | ||
Comment 1•17 years ago
|
||
The problem is fixed (and firefox compiles entirely) when I replace all occurences of '-G' by '-shared' in configure.
man gcc:
[...]
-G Create a shared object. It is recommended that
-symbolic or -shared be used instead.
I don't know what are all the consequences of replacing -G with -shared, but it fixes the compilation problemq
Updated•17 years ago
|
Whiteboard: reviewed
Updated•14 years ago
|
Version: unspecified → 3.0 Branch
Comment 8•7 years ago
|
||
triaging, old bug, not applicable to current development, closing.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
| Assignee | ||
Updated•7 years ago
|
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•