[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/1021] linking in mozilla fails
From: |
andyjstormont at googlemail dot com |
Subject: |
[Bug ld/1021] linking in mozilla fails |
Date: |
Thu, 15 Sep 2011 21:28:27 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=1021
Andrew Stormont <andyjstormont at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andyjstormont at googlemail
| |dot com
--- Comment #15 from Andrew Stormont <andyjstormont at googlemail dot com>
2011-09-15 21:28:27 UTC ---
There are two issues here.
The original problem (see comment 1)
mozilla/dist/bin/libnspr4.so: undefined reference to address@hidden'
mozilla/dist/bin/libnspr4.so: undefined reference to address@hidden'
mozilla/dist/bin/libnspr4.so: undefined reference to address@hidden'
mozilla/dist/bin/libnspr4.so: undefined reference to address@hidden'
mozilla/dist/bin/libnspr4.so: undefined reference to address@hidden'
mozilla/dist/bin/libnspr4.so: undefined reference to
address@hidden
Was due to the fact that bfd ignored versions on all absolute symbols. This is
fixed.
The second problem (see comment 12)
/opkg/bin/gcc -shared -Wl,-h,libplds4.so,-z,combreloc,-z,defs -o libplds4.so
-Wl
,--version-script,./pldsmap.sun ./plarena.o ./plhash.o ./plvrsion.o
-L/u/projec
ts/tmp/opkg/mozilla/dist/lib -lnspr4 -lc
/opkg/bin/ld: /u/projects/tmp/opkg/mozilla/dist/lib/libnspr4.so: open64:
invalid
version 23 (max 7)
/u/projects/tmp/opkg/mozilla/dist/lib/libnspr4.so: could not read symbols: Bad
v
alue
This is due the the fact that bfd gets confused and writes a duff open64 symbol
to libnspr4.so which causes then next part of the build to fail. I've tried to
build with and without mapfile and it makes no difference. And this is with
the lastest binutils from git.
Here is the output from readelf:
# readelf -s ./mozilla/nsprpub/dist/bin/libnspr4.so | grep open64
536: 00000000 240 FUNC GLOBAL DEFAULT ABS open64@@NSPR_4.8.9
1352: 00000000 240 FUNC GLOBAL DEFAULT ABS open64@@SUNW_1.1
This is what it looks like on Linux:
# readelf -s /usr/lib/libnspr4.so | grep open64
84: 0000000000000000 0 FUNC GLOBAL DEFAULT UND address@hidden
(3)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/1021] linking in mozilla fails,
andyjstormont at googlemail dot com <=