Compiling C-ISAM 7.2 using Ubuntu 8.04 using gcc 4.2.3
Posted in 2008
Topics: Internationalization & Character Sets
Hi, Trying to do the about gives me the errors: /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ libisam.a(osctype.o): In function `ldctypearr': osctype.c:(.text+0x129): undefined reference to `__ctype_b' osctype.c:(.text+0x1c3): undefined reference to `__ctype_tolower' osctype.c:(.text+0x1ea): undefined reference to `__ctype_toupper' /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ libisam.a(glsutill.o): In function `_gl_skip_whitespace': glsutils.c:(.text+0xe0c): undefined reference to `__ctype_b' /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ libisam.a(glsutill.o): In function `_gl_get_int': glsutils.c:(.text+0xf0c): undefined reference to `__ctype_b' glsutils.c:(.text+0xf71): undefined reference to `__ctype_b' glsutils.c:(.text+0xfcc): undefined reference to `__ctype_b' /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ libisam.a(glsutill.o): In function `_gl_get_dbl': glsutils.c:(.text+0x103f): undefined reference to `__ctype_b' /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ libisam.a(glsutill.o):glsutils.c:(.text+0x10a9): more undefined references to `__ctype_b' follow collect2: ld returned 1 exit status Can anyone give me some guidance for how to get around this? Thanks Q
On May 2, 1:59 pm, openplus <caka...@gmail.com> wrote: > Hi, > > Trying to do the about gives me the errors: > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(osctype.o): In function `ldctypearr': > osctype.c:(.text+0x129): undefined reference to `__ctype_b' > osctype.c:(.text+0x1c3): undefined reference to `__ctype_tolower' > osctype.c:(.text+0x1ea): undefined reference to `__ctype_toupper' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_skip_whitespace': > glsutils.c:(.text+0xe0c): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_get_int': > glsutils.c:(.text+0xf0c): undefined reference to `__ctype_b' > glsutils.c:(.text+0xf71): undefined reference to `__ctype_b' > glsutils.c:(.text+0xfcc): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_get_dbl': > glsutils.c:(.text+0x103f): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o):glsutils.c:(.text+0x10a9): more undefined > references to `__ctype_b' follow > collect2: ld returned 1 exit status > > Can anyone give me some guidance for how to get around this? > > Thanks > > Q hehe - installed the wrong C-ISAM libraries :oops:
openplus wrote: > Hi, > > Trying to do the about gives me the errors: > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(osctype.o): In function `ldctypearr': > osctype.c:(.text+0x129): undefined reference to `__ctype_b' > osctype.c:(.text+0x1c3): undefined reference to `__ctype_tolower' > osctype.c:(.text+0x1ea): undefined reference to `__ctype_toupper' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_skip_whitespace': > glsutils.c:(.text+0xe0c): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_get_int': > glsutils.c:(.text+0xf0c): undefined reference to `__ctype_b' > glsutils.c:(.text+0xf71): undefined reference to `__ctype_b' > glsutils.c:(.text+0xfcc): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_get_dbl': > glsutils.c:(.text+0x103f): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o):glsutils.c:(.text+0x10a9): more undefined > references to `__ctype_b' follow > collect2: ld returned 1 exit status > > Can anyone give me some guidance for how to get around this? Exactly which version of C-ISAM do you have? Which version of Linux was it built on/for? Or, more especially, which version of the GNU C Library? And which version of the GNU C Library are you using? The build information should be in the release notes. My suspicion is that the C-ISAM was built using a very old version of the GNU C Library and therefore won't link with your much more modern version. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2008.0229 -- http://dbi.perl.org/ publictimestamp.org/ptb/PTB-3142 ripemd320 2008-05-02 06:00:07 08BD19464F2193F2B58DA328F3ACDBE18F892D472427C230D6967342CF5379E65D1EC1 C82E05D74
openplus wrote: Looks like the CISAM library that you are using was compiled for GCC 3.x and some of the internal functions (ie __ctype_to lower, etc.) have changed names. you can locate a GCC v3 installation and install and use that for the CISAM compiles or get an updated CISAM version from IBM. Art S. Kagel Oninit > Hi, > > Trying to do the about gives me the errors: > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(osctype.o): In function `ldctypearr': > osctype.c:(.text+0x129): undefined reference to `__ctype_b' > osctype.c:(.text+0x1c3): undefined reference to `__ctype_tolower' > osctype.c:(.text+0x1ea): undefined reference to `__ctype_toupper' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_skip_whitespace': > glsutils.c:(.text+0xe0c): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_get_int': > glsutils.c:(.text+0xf0c): undefined reference to `__ctype_b' > glsutils.c:(.text+0xf71): undefined reference to `__ctype_b' > glsutils.c:(.text+0xfcc): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o): In function `_gl_get_dbl': > glsutils.c:(.text+0x103f): undefined reference to `__ctype_b' > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > libisam.a(glsutill.o):glsutils.c:(.text+0x10a9): more undefined > references to `__ctype_b' follow > collect2: ld returned 1 exit status > > Can anyone give me some guidance for how to get around this? > > Thanks > > Q > _______________________________________________ > Informix-list mailing list > Informix-list@iiug.org > http://www.iiug.org/mailman/listinfo/informix-list > > -- Art S. Kagel Oninit (www.oninit.com) IIUG Board of Directors (art@iiug.org)
On May 3, 3:32 am, "Art S. Kagel (Oninit)" <a...@oninit.com> wrote: > openplus wrote: > > Looks like the CISAM library that you are using was compiled for GCC 3.x > and some of the internal functions (ie __ctype_to lower, etc.) have > changed names. > > you can locate a GCC v3 installation and install and use that for the > CISAM compiles or get an updated CISAM version from IBM. > > Art S. Kagel > Oninit > > > > > Hi, > > > Trying to do the about gives me the errors: > > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > > libisam.a(osctype.o): In function `ldctypearr': > > osctype.c:(.text+0x129): undefined reference to `__ctype_b' > > osctype.c:(.text+0x1c3): undefined reference to `__ctype_tolower' > > osctype.c:(.text+0x1ea): undefined reference to `__ctype_toupper' > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > > libisam.a(glsutill.o): In function `_gl_skip_whitespace': > > glsutils.c:(.text+0xe0c): undefined reference to `__ctype_b' > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > > libisam.a(glsutill.o): In function `_gl_get_int': > > glsutils.c:(.text+0xf0c): undefined reference to `__ctype_b' > > glsutils.c:(.text+0xf71): undefined reference to `__ctype_b' > > glsutils.c:(.text+0xfcc): undefined reference to `__ctype_b' > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > > libisam.a(glsutill.o): In function `_gl_get_dbl': > > glsutils.c:(.text+0x103f): undefined reference to `__ctype_b' > > /usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/ > > libisam.a(glsutill.o):glsutils.c:(.text+0x10a9): more undefined > > references to `__ctype_b' follow > > collect2: ld returned 1 exit status > > > Can anyone give me some guidance for how to get around this? > > > Thanks > > > Q > > _______________________________________________ > > Informix-list mailing list > > Informix-l...@iiug.org > >http://www.iiug.org/mailman/listinfo/informix-list > > -- > Art S. Kagel > Oninit (www.oninit.com) > IIUG Board of Directors (a...@iiug.org) Thanks Art & Jonathon, I had installed the wrong version, thanks in part to a corrupted download from IBM. All fine now