This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: /lib/libstdc++.so.5: no version information available
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "Misra, Aveek" <amisra at netegrity dot com>
- Cc: "'Dan Kegel'" <dank at kegel dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 11 Sep 2003 18:22:06 +0200
- Subject: Re: /lib/libstdc++.so.5: no version information available
- References: <BB183C583D38084A8B78F7D012424604588831@maex04>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Sep 11, 2003 at 02:15:49PM -0400, Misra, Aveek wrote:
> Dan,
> I compiled the application on the same platform RHAS 2.1. So we are
> building the application using gcc 3.2.1 on a RHAS 2.1 machine and shipping
> the gcc runtime libs along with the product. In fact we are building our own
> gcc using the source. However when I gave the option --enable-symvers=gnu to
> the configure script and subsequently gave the make command, I encountered
> the following error
>
> O1 -Wl,--version-script=linker.map -Wl,-soname -Wl,libstdc++.so.5 -o
> .libs/libstdc++.so.5.0.1
> /usr/bin/ld:linker.map:31: ignoring invalid character `[' in script
> /usr/bin/ld:linker.map:31: parse error in VERSION script
> collect2: ld returned 1 exit status
> make: *** [libstdc++.la] Error 1
>
> The line no 31 in version script
> gcc-3.2.1/i686-pc-linux-gnu/libstdc++-v3/src/linker.map is
>
> GLIBCPP_3.2 {
>
> global:
>
> # Names inside the 'extern' block are demangled names.
> # All but the last are terminated with a semicolon.
> extern "C++"
> {
> std::[A-Za]*; <=============================== Line 31
>
>
> What do I do now?
For that you need binutils >= 2002-02-14, ie. 2.12 or later.
RHAS 2.1 binutils are 2.11.90.0.*-ish.
Jakub