Closed
Bug 360796
Opened 19 years ago
Closed 14 years ago
missing XPTCStubBase symbols in libxpcom_core.so (IRIX/gcc-3.4.4)
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: nicolas.noirbent, Unassigned)
References
Details
(Keywords: helpwanted)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061102 BonEcho/2.0
Build Identifier: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0/source/firefox-2.0-source.tar.bz2
I ran into a bug similar to that of bug 79362 when I tried to build firefox-2.0 using gcc 3.4.4 on IRIX 6.5 (I wanted to reopen 79362 but it does not seem possible to do so). Here's what I get :
$ gcc --version
gcc (GCC) 3.4.4
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ./firefox
15703412:/tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/firefox-bin: rld: Error: unresolvable symbol in /tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/libxpcom_core.so: _ZN14nsXPTCStubBase7Stub123Ev
15703412:/tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/firefox-bin: rld: Error: unresolvable symbol in /tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/libxpcom_core.so: _ZN14nsXPTCStubBase5Stub8Ev
[etc ...]
15703412:/tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/firefox-bin: rld: Error: unresolvable symbol in /tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/libxpcom_core.so: _ZN14nsXPTCStubBase6Stub96Ev
15703412:/tmp/nn-compil-perso/compil/firefox-2.0/lib/firefox-2.0/firefox-bin: rld: Fatal Error: this executable has unresolvable symbols
Which is quite akin to what can be seen in bug 79362. The problem seems to stem from xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_irix.s, the following lines precisely :
$ sed -n 31,35p xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_irix.s
#ifdef __GNUC__
#define STUB_ENTRY(nn) MAKE_STUB(nn, Stub/**/nn/**/__14nsXPTCStubBase)
#else
#define STUB_ENTRY(nn) MAKE_STUB(nn, Stub/**/nn/**/__14nsXPTCStubBaseGv)
#endif
As you can see the names defined in the assembly file differ from those used in libxpcom_core.so, since those are from the vtbl generated by gcc. The C++ ABI used by gcc changed between versions 2.95 and 3.4.4, which explains the unresolved symbols.
Now, it seems like we could very well add another __GNUC__ type variable to separate between 2.95 and 3.4.4, but 3.4.4 use a bit more complex naming scheme if you look at the vtbl generated symbols. Take these three :
_ZN14nsXPTCStubBase5Stub8Ev
_ZN14nsXPTCStubBase6Stub96Ev
_ZN14nsXPTCStubBase7Stub123Ev
The stub number is at the end (8, 96, 123) but there is another number varying here : 5, 6, or 7, depending on the number of digits of the stub number (still with me ? :)) : 5 for one digit, 6 for two digits, 7 for three digits (there are 247 such stubs, numbered from 3 to 249 all in all if I'm not mistaken).
My knowledge of either assembly language or CPP directives is unfortunately too light for me to suggest a fix, but maybe someone here will have an idea. I hope I provided enough data here for somebody to come up with a fix, and I'd be glad to provide additional information as needed. Thanks in advance !
Reproducible: Always
| Reporter | ||
Updated•19 years ago
|
OS: Other → IRIX
Hardware: Other → SGI
new bugs are better. please don't reopen bugs that have had fixes go into cvs unless at the time they were committed the fix really didn't work.
Updated•19 years ago
|
Comment 3•14 years ago
|
||
IRIX build support got removed with bug 680792
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•