Good morning,
I installed the gpc with gcc binary on a Linux machine (file gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz), executed install-gpc-binary, updated ~/.bashrc with GPC_EXEC_PREFIX, but when I try to execute gpc, I get the following error:
gpc: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by gpc)
So I put the library libc-2.3.3.so in the directory /home/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 and updated the library path, putting in ~/.bashrc the following line:
LIBRARY_PATH=$LIBRARY_PATH:/clx/userunivts/utsts007/silvio/src.dev3.old/old/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2
but the error does not go away. On another machine, it goes like a breeze. Does anybody have a solution?
Thanks in advance, best regards
Silvio a Beccara Trieste - Italy
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Solo su Occhialeria.it una vastissima scelta a prezzi insuperabili!
* Per te le migliori marche e un incredibile assortimento.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=880&d=5-7
Silvio a Beccara wrote:
Good morning,
I installed the gpc with gcc binary on a Linux machine (file gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz), executed install-gpc-binary, updated ~/.bashrc with GPC_EXEC_PREFIX, but when I try to execute gpc, I get the following error:
gpc: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by gpc)
So I put the library libc-2.3.3.so in the directory /home/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 and updated the library path, putting in ~/.bashrc the following line:
LIBRARY_PATH=$LIBRARY_PATH:/clx/userunivts/utsts007/silvio/src.dev3.old/old/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2
but the error does not go away. On another machine, it goes like a breeze. Does anybody have a solution?
Typical shared library version problem, unfortunately still seems to be common with Linux glibc. The best solution is usually to compile GPC yourself.
Frank
But isn't it possible to specify a path for GPC too look for the right library? Since I do have it, it seems to me too much work to compile GPC. Besides, I don't know where to download the stable source, since the link is not available in the GPC site.
Thanks, regards
Silvio a Beccara
Typical shared library version problem, unfortunately still seems to be common with Linux glibc. The best solution is usually to compile GPC yourself.
Frank
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Giornata faticosa? Rilassati con il Cuscino per Massaggi che vibra!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2742&d=6-7
True, I was looking for it on the www.gnu-pascal.de website and I couldn't find anything but gpc-20050331. I have some older versions archived, i.e. from 2003, but I think they did not compile on top of gcc-3.3 or later ... However, one of your lines gave the impression you are using 2.95.2 as the back-end.
(This may also be the problem if you've put required shared lib in <path>/2.95.2 and precompiled gpc is using a different backend than 2.95.2. Of course, you can check this with gpc --version. LD_LIBRARY_PATH setting didn't always fix that problem automatically AIR. BTW, it isn't clear to me whether you set the LIBRARY_PATH or the LD_LIBRARY_PATH variable ...)
Regards, Mirsad
On Wed, 6 Jul 2005, Silvio a Beccara wrote:
But isn't it possible to specify a path for GPC too look for the right library? Since I do have it, it seems to me too much work to compile GPC. Besides, I don't know where to download the stable source, since the link is not available in the GPC site.
Thanks, regards
Silvio a Beccara
Typical shared library version problem, unfortunately still seems to be common with Linux glibc. The best solution is usually to compile GPC yourself.
Frank
On Tue, Jul 05, 2005 at 10:53:40AM +0200, Silvio a Beccara wrote:
Good morning,
I installed the gpc with gcc binary on a Linux machine (file gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz), executed install-gpc-binary, updated ~/.bashrc with GPC_EXEC_PREFIX, but when I try to execute gpc, I get the following error:
gpc: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by gpc)
So I put the library libc-2.3.3.so in the directory /home/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 and updated the library path, putting in ~/.bashrc the following line:
LIBRARY_PATH=$LIBRARY_PATH:/clx/userunivts/utsts007/silvio/src.dev3.old/old/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2
but the error does not go away. On another machine, it goes like a breeze. Does anybody have a solution?
Thanks in advance, best regards
Silvio a Beccara Trieste - Italy
As Mirsad pointed out, the dynamic linker looks at LD_LIBRARY_PATH, not LIBRARY_PATH. There are, however, more things which can go wrong:
- The gpc binary is not likely to be linked to the specific version "libc-2.3.3.so", more probably it is "libc.so.6". You can find the expected name of the library with "ldd `which gpc`", and then set up the corresponding symlink in /home/usr/..../2.95.2/
- When you do that, it is no longer advisable to export LD_LIBRARY_PATH from .bashrc, as other programs would also get linked to the new version of the library. You need a wrapper script for gpc.
- libc needs various files at run time (e.g., locale and termcap database). If you just copy libc-2.3.3.so from another system, there is no guarantee that it will be able to use correctly the files supplied with the original system libc.
IMHO it is safer to compile gpc yourself than dealing with this mess.
Emil Jerabek