Closed
Bug 93479
Opened 23 years ago
Closed 23 years ago
link errors after fastload landing
Categories
(Core :: XPCOM, defect, P1)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla0.9.4
People
(Reporter: dbaron, Assigned: brendan)
References
Details
Attachments
(2 files)
1.49 KB,
patch
|
Details | Diff | Splinter Review | |
2.38 KB,
patch
|
Details | Diff | Splinter Review |
A bunch of seemingly related linker errors started after the fastload landing. On the HP 10.20 tinderbox, a runtime error in the dynamic linker: /usr/lib/dld.sl: Unresolved symbol: static_dummy (data) from /builds/tinderbox/SeaMonkey/HP-UX_B.10.20_Clobber/mozilla/dist/bin/libxpcom.sl On gcc on some versions of RedHat 7.0, mostly with older compiler versions (see n.p.m.builds post by glazman@netscape.com), a compile-time link error: ../../../dist/bin/libxpcom.so: undefined reference to `dummy.977' From gcc on Mac OS X (the most helpful), another compile-time link error: [14:20:40] <pink_osx> ld: common symbols not allowed with MH_DYLIB output format [14:20:42] <pink_osx> nsFastLoadFile.o definition of common __Q320nsFastLoadFileReader16nsFastLoadFooter54GetID__CQ220nsFastLoadFileReader16nsFastLoadFooterUi.0.dummy (size 16) [14:20:45] <pink_osx> nsFastLoadFile.o definition of common __Q320nsFastLoadFileReader16nsFastLoadFooter68GetSharpObjectEntry__CQ220nsFastLoadFileReader16nsFastLoadFooterUi.0.dummy (size 16)
Reporter | ||
Comment 1•23 years ago
|
||
[14:25:27] <Pike> dbaron: nsFastLoadFile.h: static nsID dummy;
Comment 2•23 years ago
|
||
this blocks mach-o osx development, upping severity.
Blocks: 75653
Severity: normal → blocker
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
Please try that patch and report back with r= love. /be
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.4
Comment 5•23 years ago
|
||
the new error, with the above patch applied is: ld: Undefined symbols: __Q220nsFastLoadFileReader16nsFastLoadFooter.gDummyID __Q220nsFastLoadFileReader16nsFastLoadFooter.gDummySharpObje ctEntry /usr/bin/libtool: internal link edit command failed
Comment 6•23 years ago
|
||
don't you need to define the storage for those static vars outside the class decl? that's how it's usually done with static members in c++.
Comment 7•23 years ago
|
||
Comment 8•23 years ago
|
||
the 2nd patch allows xpcom to link on osx. what say you?
Assignee | ||
Comment 9•23 years ago
|
||
Sorry, I didn't attach the (hacked, cuz I have other changes) patch for nsFastLoadFile.cpp. pink did it right -- sr=brendan@mozilla.org, get this in to unblock. /be
Reporter | ||
Comment 10•23 years ago
|
||
Probably those static members should be private (unless Brendan disagrees), but otherwise r=dbaron. Function-scope statics in inline functions seem odd anyway. What are they supposed to do? Should we add a comment to the C++ portability guidelines?
Reporter | ||
Comment 11•23 years ago
|
||
Doh! I didn't look at Brendan's original patch. But maybe they should be private anyway?
Reporter | ||
Comment 12•23 years ago
|
||
r=dbaron
Assignee | ||
Comment 13•23 years ago
|
||
These are struct members, the struct is nested in a protected: section of a class, so I am comfortable with the degree of nudity. /be
Comment 14•23 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•