This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

driver/9843: -static still leaves the linker looking for shared library code


>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=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]