This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
driver/9843: -static still leaves the linker looking for shared library code
- From: matt dot bonner at hp dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: steven dot elbinger at hp dot com, jim dot yamamoto at hp dot com
- Date: 24 Feb 2003 23:19:52 -0000
- Subject: driver/9843: -static still leaves the linker looking for shared library code
- Reply-to: matt dot bonner at hp dot com
>Number: 9843
>Category: driver
>Synopsis: -static still leaves the linker looking for shared library code
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 24 23:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Matt Bonner
>Release: GCC 3.2.1
>Organization:
>Environment:
HP-UX B.11.11 U 9000/785
>Description:
The -static option to g++ results in the following error message from the linker:
/usr/ccs/bin/ld: Unsatisfied symbols:
shl_load (code)
shl_unload (code)
shl_findsym (code)
For at least any file including <iostream>
>How-To-Repeat:
g++ -static -o hola hola.cpp
>Fix:
Wish I knew... I can't figure out why the HP-UX loader thinks it needs those functions. I don't see any sign of any shared libraries being loaded, but then I haven't found an option that outputs each library linked. We can't release software until we can resolve this. I don't know what your severity or priority criteria are, so please adjust them as needed--I guessed based on what a "can't continue" defect from one of my users would be.
Only other signal I can report is that a main with just
int a=5;
and without including iostream links okay.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="hola.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="hola.cpp"
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewog
IHN0ZDo6Y291dCA8PCAiaG9sYSwgbW9uXG4iOwoKICByZXR1cm4gMDsKfQo=