public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4236: Unresolved symbols problem (sparc solaris differs from hppa hp-ux)
@ 2001-09-09 13:55 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-09-09 13:55 UTC (permalink / raw)
  To: dalle, gcc-bugs, gcc-prs, nobody

Synopsis: Unresolved symbols problem (sparc solaris differs from hppa hp-ux)

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Sep  9 13:55:22 2001
State-Changed-Why:
    Note that the linker is crashing.  This generally indicates a linker bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4236&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libstdc++/4236: Unresolved symbols problem (sparc solaris differs from hppa hp-ux)
@ 2001-09-05  4:06 dalle
  0 siblings, 0 replies; 2+ messages in thread
From: dalle @ 2001-09-05  4:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4236
>Category:       libstdc++
>Synopsis:       Unresolved symbols problem (sparc solaris differs from hppa hp-ux)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 05 04:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jan-Erik Dahlin
>Release:        gcc-3.0.1
>Organization:
>Environment:
hppa hp-ux 10.20
sparc solaris8 
>Description:
#include <strstream>
class inherit_from_ostrstream  : public std::ostrstream { };
main()
{
  inherit_from_ostrstream junk;
}

When the program above compiles fine on both platforms, but
it will only link under solaris. On the hp I get:

blakkur:~/iar/GCC3 >g++ bug.c
collect2: ld terminated with signal 10 [Bus error]
/usr/ccs/bin/ld: Unsatisfied symbols:
   virtual thunk to std::ostrstream::~ostrstream()(data)
   virtual thunk to std::ostrstream::~ostrstream()(data)

And it turns out the thunk in the library is static:

blakkur:~/iar/GCC3 >nm /usr/local/lib/libstdc++.a | grep _ZTv0_n12_NSt10ostrstreamD0Ev
_ZTv0_n12_NSt10ostrstreamD0Ev|         0|static|entry  |$CODE$

But on solaris the symbol has weak linkage:

kveikur:~/iar/GCC3 >nm /usr/local/lib/libstdc++.a | grep _ZTv0_n12_NSt10ostrstreamD0Ev
[254]   |         0|      32|FUNC |WEAK |0    |63     |_ZTv0_n12_NSt10ostrstreamD0Ev
>How-To-Repeat:
Compile included program.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-09 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-09 13:55 libstdc++/4236: Unresolved symbols problem (sparc solaris differs from hppa hp-ux) aoliva
  -- strict thread matches above, loose matches on Subject: below --
2001-09-05  4:06 dalle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).