public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: dalle@iar.se To: gcc-gnats@gcc.gnu.org Subject: libstdc++/4236: Unresolved symbols problem (sparc solaris differs from hppa hp-ux) Date: Wed, 05 Sep 2001 04:06:00 -0000 [thread overview] Message-ID: <20010905105944.28424.qmail@sourceware.cygnus.com> (raw) >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:
next reply other threads:[~2001-09-05 4:06 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-05 4:06 dalle [this message] 2001-09-09 13:55 aoliva
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010905105944.28424.qmail@sourceware.cygnus.com \ --to=dalle@iar.se \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).