This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.4.0: libstdc++.so has undef references to prior gcc versions
- From: Ian Lance Taylor <iant at google dot com>
- To: ad_101 at yahoo dot com
- Cc: GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 29 Jun 2009 14:46:22 -0700
- Subject: Re: gcc 4.4.0: libstdc++.so has undef references to prior gcc versions
- References: <42368.33911.qm@web32602.mail.mud.yahoo.com>
Amitava Dutta <ad_101@yahoo.com> writes:
> The libstdc++.so that was built has many UNDEF references
> to symbols corresponding to prior versions of GCC.
>
> Why is that so and how do I correct that?
This is expected behaviour which should not be corrected.
> I'm trying to build GhostScript 8.64 using this compiler
> and encountered this error:
>
> /usr/local/gcc-4.4.0/lib/gcc/sparc-sun-solaris2.10/4.4.0/../../../libstdc++.so: undefined reference to `_Unwind_GetIPInfo@GCC_4.2.0'
This means that libstdc++.so is expecting a newer version of libgcc than
the one that it found. You may need to use LD_LIBRARY_PATH, or link
with -static-libgcc.
Ian