Red Hat Topics - undefined reference to `__ctype_b' on glibc 2.5-3

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > September 2007 > undefined reference to `__ctype_b' on glibc 2.5-3





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author undefined reference to `__ctype_b' on glibc 2.5-3
wong_powah@yahoo.ca

2007-09-28, 1:12 pm

I got an link error for undefined reference to `__ctype_b' and
`__ctype_tolower'.

The glibc version is 2.5-3 and gcc version is 4.1.2 20070626 (Red Hat
4.1.2-13) on FC6

$ make
/bin/sh ../../../libtool --mode=link g++ -O -O0 -DOS_LINUX -DOS_UNIX -
DLITTLE_ENDIAN -DUSE_PTHREADS -O -o RASMain RASMain.o RASServer.o
libHw.la -L/usr/lib -lUtility /usr/lib/libpopt.so -ldl
g++ -O -O0 -DOS_LINUX -DOS_UNIX -DLITTLE_ENDIAN -DUSE_PTHREADS -O -o
RASMain RASMain.o RASServer.o /usr/lib/libpopt.so ./.libs/libHw.al -L/
usr/lib -lUtility -ldl
/usr/lib/libUtility.so: undefined reference to `__ctype_tolower'
/usr/lib/libUtility.so: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make: *** [RASMain] Error 1

How to fix this problem?

Peter van Hooft

2007-09-28, 7:12 pm

On 2007-09-28, wong_powah@yahoo.ca <wong_powah@yahoo.ca> wrote:
> I got an link error for undefined reference to `__ctype_b' and
> `__ctype_tolower'.
>
> The glibc version is 2.5-3 and gcc version is 4.1.2 20070626 (Red Hat
> 4.1.2-13) on FC6
>
> $ make
> /bin/sh ../../../libtool --mode=link g++ -O -O0 -DOS_LINUX -DOS_UNIX -
> DLITTLE_ENDIAN -DUSE_PTHREADS -O -o RASMain RASMain.o RASServer.o
> libHw.la -L/usr/lib -lUtility /usr/lib/libpopt.so -ldl
> g++ -O -O0 -DOS_LINUX -DOS_UNIX -DLITTLE_ENDIAN -DUSE_PTHREADS -O -o
> RASMain RASMain.o RASServer.o /usr/lib/libpopt.so ./.libs/libHw.al -L/
> usr/lib -lUtility -ldl
> /usr/lib/libUtility.so: undefined reference to `__ctype_tolower'
> /usr/lib/libUtility.so: undefined reference to `__ctype_b'
> collect2: ld returned 1 exit status
> make: *** [RASMain] Error 1
>
> How to fix this problem?
>


http://www.ticam.utexas.edu/misc/ctype.c


peter
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com