I installed gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz under my previous Linux (Red Hat 8.) and it worked without any problems.
I did the same under Red Hat 9. When I tried to compile a program 'gpc' complained:
gpc: installation problem, cannot exec `gpcpp': No such file or directory
I put then in /usr/local/bin a symbolic link:
gpcpp ->/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/gpcpp
Now I got the message:
gpc: installation problem, cannot exec `gpc1': No such file or directory
I added the link:
gpc1 -> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/gpc1
Now I got a series of messages from the linker; some of them:
--------------------------------------------- /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgpc.a(rts.o)(.text+0x5d6): In function `_p_LocaleUpCase': /home/frank/gpc/gcc-2.95.3/gcc/p/rts/rts.c:838: undefined reference to `__ctype_toupper' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgpc.a(rts.o)(.text+0x5ea): In function `_p_LocaleLoCase': /home/frank/gpc/gcc-2.95.3/gcc/p/rts/rts.c:846: undefined reference to `__ctype_tolower' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgpc.a(rts.o)(.text+0x5fe): In function `_p_IsUpCase': /home/frank/gpc/gcc-2.95.3/gcc/p/rts/rts.c:851: undefined reference to `__ctype_b' (... more deleted ...) -----------------------------------------------
Any idea what the problem is? I am not a Linux expert and would appreciate simple advice :-). Please send a copy of the answer to my address because I am not a subscriber to this list.
Thanks!
-- Tomasz Kowaltowski
Tomasz Kowaltowski wrote:
I installed gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz under my previous Linux (Red Hat 8.) and it worked without any problems.
I did the same under Red Hat 9. When I tried to compile a program 'gpc' complained:
gpc: installation problem, cannot exec `gpcpp': No such file or directory
I put then in /usr/local/bin a symbolic link:
I think this binary was broken. I've uplaoded a new one. Sorry for the inconvenience.
Frank
Frank Heckenbach wrote:
Tomasz Kowaltowski wrote:
I installed gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz under my
previous
Linux (Red Hat 8.) and it worked without any problems.
I did the same under Red Hat 9. When I tried to compile a program
'gpc'
complained:
gpc: installation problem, cannot exec `gpcpp': No such file or
directory
I put then in /usr/local/bin a symbolic link:
I think this binary was broken. I've uplaoded a new one. Sorry for the inconvenience.
Frank
I tried again with:
gpc-20030507-with-gcc.i686-pc-linux-gnu.tar.gz
and
gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
With both I get output like:
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x465): In function `_p_UpCase': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:871: undefined reference to `__ctype_toupper' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x485): In function `_p_LoCase':
[ ... snip ...]
Am I using a wrong version?
-- Tomasz
Tomasz Kowaltowski wrote:
I tried again with:
gpc-20030507-with-gcc.i686-pc-linux-gnu.tar.gz
and
gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
With both I get output like:
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x465): In function `_p_UpCase': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:871: undefined reference to `__ctype_toupper' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x485): In function `_p_LoCase':
Looks like a glibc version conflict (I thought these days were over) ...
Unless someone has an idea how to build a binary as independent of glibc versions as possible, I guess you might have to compile GPC yourself (which is usually not difficult under Linux).
Frank