Closed
Bug 550509
Opened 16 years ago
Closed 15 years ago
export all symbols from seamonkey-bin on hppa/hp-ux
Categories
(SeaMonkey :: Build Config, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: bugzilla-mozilla, Unassigned)
Details
Attachments
(2 obsolete files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc11 Firefox/3.5.8
Build Identifier: Mozilla/5.0 (X11; U; HP-UX 9000/800; en-US; rv:1.9.1.8) Gecko/20100305 SeaMonkey/2.0.3
Building seamonkey-2.0.3 on hppa-hp-hpux with --enable-static fails to launch because of undefined symbols. (the symbols are in seamonkey-bin, but not exported).
Reproducible: Always
Steps to Reproduce:
1. Build seamonkey on hppa*hpux with aCC and --enable-static
2. launch it
3.
Actual Results:
Fails to launch with:
aCC runtime: Error 215 from shl_findsym(/opt/build/tww-seamonkey-2.0.3/comm-1.9.1/mozilla/dist/bin/components/libxpinstall.sl,_shlInit)
/usr/lib/dld.sl: Unresolved symbol: typeid__XT7nsINode_ (data) from /opt/build/tww-seamonkey-2.0.3/comm-1.9.1/mozilla/dist/bin/components/libxpinstall.sl
/usr/lib/dld.sl: Unresolved symbol: DeleteAllProperties__15nsPropertyTableFv (code) from /opt/build/tww-seamonkey-2.0.3/comm-1.9.1/mozilla/dist/bin/components/libxpinstall.sl
/usr/lib/dld.sl: Unresolved symbol: IsEditableInternal__7nsINodeCFv (code) from /opt/build/tww-seamonkey-2.0.3/comm-1.9.1/mozilla/dist/bin/components/libxpinstall.sl
/opt/build/tww-seamonkey-2.0.3/comm-1.9.1/mozilla/dist/bin/run-mozilla.sh[13]: 25570 Abort(coredump)
Expected Results:
It runs.
In order to export all symbols from the executable, the executable should be linked with -Wl,-E.
| Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Comment on attachment 430665 [details] [diff] [review]
Export symbols from seamonkey-bin
I'll need to take a look at this and see if Firefox and possible Thunderbird are doing the same.
Attachment #430665 -
Flags: review?(kairo)
Updated•16 years ago
|
OS: Other → HP-UX
Version: unspecified → SeaMonkey 2.0 Branch
Updated•16 years ago
|
Attachment #430665 -
Flags: review?(kairo) → review?(ted.mielczarek)
Comment 3•16 years ago
|
||
Comment on attachment 430665 [details] [diff] [review]
Export symbols from seamonkey-bin
I'm not sure this is the right thing to do anywhere. And if so, we should do the same for Firefox and Thunderbird as well at least.
Forwarding the review to Ted to find out if that's any way for us to go at all, though.
| Reporter | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
>
> Forwarding the review to Ted to find out if that's any way for us to go at all,
> though.
Well, for firefox with libxul, it is not necessary, libxul has all symbols that are required for thunderbird, it probably will be required, we haven't built thunderbird yet to confirm.
Note that the patch only affects hppa*-hp-hpux*, so it shouldn't be a major concern.
From hp ld's man page:
-E Mark all symbols defined by a program for export
to shared libraries. In a 32-bit link or +compat
mode 64-bit link, ld marks only those symbols that
are actually referenced by a shared library seen
at link time. In a 64-bit +std link, all symbols
are exported by default, so -E is not necessary to
make symbols visible. However, it has an
additional side effect of identifying all exported
symbols as necessary, so that they will not be
removed when using dead code elimination
(+Oprocelim).
So, by default on ia64 all symbols are exported from the executable, on hppa, only those that are referenced by a shared library seen at static link time will be exported, symbols only required by libraries that are dlopen()ed (or, in this case, shl_load()ed) will not be exported unless -E is passed to the linker.
Comment 5•16 years ago
|
||
Comment on attachment 430665 [details] [diff] [review]
Export symbols from seamonkey-bin
I can't say I really care what you do on HP-UX. Is this only a problem with static builds? If so, you probably want to put this in config/static-config.mk instead.
Attachment #430665 -
Flags: review?(ted.mielczarek) → review+
Updated•16 years ago
|
Updated•16 years ago
|
Flags: in-testsuite-
Whiteboard: [c-n: waiting for answer to comment 5 suggestion]
Version: SeaMonkey 2.0 Branch → Trunk
| Reporter | ||
Comment 6•16 years ago
|
||
Correct way to do this is indeed in config/static-config.mk. Thanks!
Attachment #430665 -
Attachment is obsolete: true
Updated•16 years ago
|
Whiteboard: [c-n: waiting for answer to comment 5 suggestion] → [c-n: Hg patch wanted, not cvs]
Comment 7•16 years ago
|
||
Removing checkin-needed for now since there is no patch ready for checkin (yes, I checked the history and saw that the other patch was r+'d but the changed file exists both in comm-central and mozilla-central and I won't start guessing here).
@TWW: If you're actively working on this, please consider assigning this bug to yourself and changing the status to ASSIGNED. Thanks.
Keywords: checkin-needed
Comment 8•15 years ago
|
||
Now that we are all on libxul this bug is obsolete. Closing.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Updated•14 years ago
|
Whiteboard: [c-n: Hg patch wanted, not cvs]
Updated•14 years ago
|
Attachment #435664 -
Attachment description: Add -Wl,-E to config/static-config.mk → Add -Wl,-E to config/static-config.mk
[Obsolete cvs patch]
Attachment #435664 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•