This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12595] link problems with static libstdc++
- From: "marek dot rouchal at infineon dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Nov 2003 11:22:39 -0000
- Subject: [Bug libstdc++/12595] link problems with static libstdc++
- References: <20031013102235.12595.marek.rouchal@infineon.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From marek dot rouchal at infineon dot com 2003-11-19 11:22 -------
Ok, now I had more time to look into this. We got gcc-3.2.3, and compiled
the libstdc++ with --with-pic. Now the issue looks slightly different:
On Sparc/Solaris-7, there is no problem at all (sparc-sun-solaris2.7).
But on Linux (i686-pc-linux-gnu) the problem remains: I keep getting the error:
/opt/gcc_3.2.3/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-
gnu/bin/ld: ../blib/arch/auto/Verilog/Preproc/Preproc.so: undefined versioned
symbol name std::time_put_w@@GLIBCPP_3.2
/opt/gcc_3.2.3/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-
gnu/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
Few observations I made, hope that this helps:
$ nm /opt/gcc_3.2.3/lib/libstdc++.so | grep time_put_w
000ae294 b _ZN9__gnu_cxx10time_put_wE
000ae294 B _ZSt10time_put_w@@GLIBCPP_3.2
$ nm /opt/gcc_3.2.3/lib/libstdc++.a | grep time_put_w
000004b4 B _ZN9__gnu_cxx10time_put_wE
000004b4 B _ZSt10time_put_w@@GLIBCPP_3.2
U _ZN9__gnu_cxx10time_put_wE
On Solaris, there is no symbol containing "time_put_w" at all, and there are no
symbols with GLIBCPP_3.2 either.
Is there any option which has to be set?
Please let me know if you need any further information/files/...
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
GCC target triplet| |i686-pc-linux-gnu
Resolution|INVALID |
Version|3.3 |3.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12595