Re: installation of GCC3.3.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Qinghai  Zhang" <qz27@xxxxxxxxxxx> writes:

>     I installed gcc3.3.6 in Fedora core 5 in order to make some legacy c++
> programs to work. The commands of 'configure' and 'make strap' went
> smoothly except there are lots of warnings about types. My legacy
> program also worked after I 'make install' and prepended the paths of
> gcc3.3.6 to PATH and LD_LIBRARY_PATH.
> 
>     However, every time I use 'man' for some command, the following error
> occured:
> ------------------------------------------------------------
> /usr/bin/gtbl: /usr/local/samPacks/gcc-3.3.6/lib/libgcc_s.so.1: version
> `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
> ------------------------------------------------------------

Your change to LD_LIBRARY_PATH is causing the gcc 3.3.6 libgcc_s.so to
be picked up before the system libgcc_s.so.  That is causing the above
error.

libgcc_s is backward compatible, so it is quite likely that it would
work if you simply deleted the gcc 3.3.6 libgcc_s.so, so that both gcc
3.3.6 binaries and current binaries picked up the new libgcc_s.so.

>      I am very confused because if I switch to GCC4.1.0 that comes with
> Fedora Core 5, there are no such errors. Also, the current version is
> GCC4.1.1, where does this `GCC_4.2.0' come from?

I would guess that it is because the Fedora Core 5 gcc includes some
patches which are part of gcc 4.2 rather than gcc 4.1.1.  I'm just
guessing, though.  If you run "gcc --version" I expect it will say
that it includes some Red Hat patches.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux