hi all,
i tried the gpc binary (20040516 with gcc backend, i686 pc linux) on my debian woody box, and it ran smooth. i then tried to get that same package running on a suse linux box (running 9.1, i believe), and this is what it gives me when i try to compile the very same pascal program that worked on my debian box:
--- output starts ---
uhle@linux:~> gpc kreis3.p /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 5e3): In function `_p_UpCase': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:899: undefined reference to `__ctype_toupper' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 603): In function `_p_LoCase': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:906: undefined reference to `__ctype_tolower' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 622): In function `_p_IsUpCase': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:911: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 642): In function `_p_IsLoCase': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:916: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 662): In function `_p_IsAlpha': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:921: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 6a2): In function `_p_IsAlphaNum': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:926: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 712): In function `_p_IsSpace': /home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:936: undefined reference to `__ctype_b' /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgpc.a(rts.o)(.text+0x 732):/home/frank/gpc/gcc-3.3.3/gcc/p/rts/rts.c:941: more undefined references to `__ctype_b' follow collect2: ld returned 1 exit status
--- output ends ---
i'm slightly lost here: this seems to be a linking problem, but AFAIK the gcc 3.3.3 backend is included with the GPC package. anyone know why this happens? (or better yet: why does it happen on the suse box, but not on the debian box?).
oh, btw, the version of GPC is: gpc 20040516, based on gcc-3.3.3
thanks for your help in advance!
matthias schweinoch
Matthias Schweinoch wrote:
i tried the gpc binary (20040516 with gcc backend, i686 pc linux) on my debian woody box, and it ran smooth. i then tried to get that same package running on a suse linux box (running 9.1, i believe), and this is what it gives me when i try to compile the very same pascal program that worked on my debian box:
i'm slightly lost here: this seems to be a linking problem, but AFAIK the gcc 3.3.3 backend is included with the GPC package. anyone know why this happens? (or better yet: why does it happen on the suse box, but not on the debian box?).
Probably a system library incompatibility. Unfortunately, these are apparently still there between distributions. The binaries were in fact built on Debian.
You might want to try the Fedora binary (not sure if it will work on SuSE, at least both use RPM packages if that means anything). Otherwise, you can build GPC yourself from sources (usually easy under Linux).
Frank
On Mon, 12 Jul 2004, Frank Heckenbach wrote:
Matthias Schweinoch wrote:
i tried the gpc binary (20040516 with gcc backend, i686 pc linux) on my debian woody box, and it ran smooth. i then tried to get that same package running on a suse linux box (running 9.1, i believe), and this is what it gives me when i try to compile the very same pascal program that worked on my debian box:
i'm slightly lost here: this seems to be a linking problem, but AFAIK the gcc 3.3.3 backend is included with the GPC package. anyone know why this happens? (or better yet: why does it happen on the suse box, but not on the debian box?).
Probably a system library incompatibility. Unfortunately, these are apparently still there between distributions. The binaries were in fact built on Debian.
You might want to try the Fedora binary (not sure if it will work on SuSE, at least both use RPM packages if that means anything). Otherwise, you can build GPC yourself from sources (usually easy under Linux).
.. you may use the install.gpc script which simplifies GPC-installation. Download it from:
http://www.desy.de/~bohnen/gpc/tools/install.gpc
GCC and GPC default versions can be overwritten from file ~/.install.gpc.rc. For help type 'install.gpc -h' and 'install.gpc -m' for some more info. Finally simply type 'install.gpc -i' for automatic GPC installation (works fine on my SuSE 8.x and 9.x boxes).
Frank: Somehow I lost the access to the contrib directory. Maybe I forgot my password or my account disappeared. Can we reanimate that?
Ernst-Ludwig
On Mon, Jul 12, 2004 at 01:03:38AM +0200, Matthias Schweinoch wrote:
hi all,
i tried the gpc binary (20040516 with gcc backend, i686 pc linux) on my debian woody box, and it ran smooth. i then tried to get that same package running on a suse linux box (running 9.1, i believe), and this is what it gives me when i try to compile the very same pascal program that worked on my debian box:
[...]
i'm slightly lost here: this seems to be a linking problem, but AFAIK the gcc 3.3.3 backend is included with the GPC package. anyone know why this happens? (or better yet: why does it happen on the suse box, but not on the debian box?).
oh, btw, the version of GPC is: gpc 20040516, based on gcc-3.3.3
thanks for your help in advance!
matthias schweinoch
As Frank already pointed out, try the Fedora binary. It was compiled on a FC1 box, but it should work on any glibc 2.3.x based system (in theory, at least; I don't have access to a SuSE box, but I've tested it on Debian).
The issue is due to an incompatible change between glibc 2.2 and 2.3. I didn't find a good explanation of the problem, but some hints are in the discussion on http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=86465 (especially the comments by Jakub Jelinek). I don't know why it doesn't show up on Debian systems, maybe they patched their libc to maintain backwards compatibility.
Emil Jerabek