Hiekkalinna Tero wrote:
Hi,
I have problem with GPC under Redhat 9 (x86), I have installed GPC (version: gpc-20030507-with-gcc.i686-pc-linux-gnu.tar.gz) according to install instructions. And after that I run install-gpc-binary shell script (in /usr/local dir.) which told GPC install was OK, and told to add GPC_EXEC_PREFIX variable to enviroment. here is more info
GPC version:
% gpc -v Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/specs Configured with: ../gcc-3.2.2/configure --enable-languages=pascal --prefix=/usr/local Thread model: posix gpc version 20030507, based on gcc-3.2.2
GPC variable:
% echo $GPC_EXEC_PREFIX /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/
If I just compile example hello.pas, not link it:
% gpc hello.pas -o hello
It's fine and object file is created.
BUT if I want to link it as well to binary I get lot's of errors:
% gpc hello.pas -o hello /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x4 65): 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+0x4 85): In function `_p_LoCase': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:879: undefined reference to `__ctype_tolower' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x4 a4): In function `_p_IsUpCase': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:884: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x4 c4): In function `_p_IsLoCase': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:889: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x4 e4): In function `_p_IsAlpha': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:894: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x5 24): In function `_p_IsAlphaNum': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:899: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x5 94): In function `_p_IsSpace': /home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:909: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libgpc.a(rts.o)(.text+0x5 b4):/home/frank/gpc/gcc-3.2.2/gcc/p/rts/rts.c:914: more undefined references to `__ctype_b' follow collect2: ld returned 1 exit status %
Have I missed something from installation or is there something I need to fix? THANKS FOR HELP!!
Best Regards, Tero Hiekkalinna
Terve Tero,
Well, you are not to only one. I changed permission, followed instuctions from manual but nothing helped. Strange thing is that any other distro does not look like have that kind of problems, I think. So I compiled from the source and it works fine. That's my advice, I hope it helps...
Juha
jmakor at nada dot kth dot se