PDA

View Full Version : libc.so.6 and ctype_tolower



smut
23rd February 2004, 11:30 AM
During compilation and linking of existing obj code with new files,
i got this message:

opt/eda/tools/sn_rel4.3/linux/libpre_specman.a(pre_specman_all_.o)(.text+0x40613 ): In function `nsput':
: undefined reference to `__ctype_b'
/opt/eda/tools/sn_rel4.3/linux/libpre_specman.a(pre_specman_all_.o)(.text+0x9ddfa ): In function `pass_msg':
: undefined reference to `__ctype_tolower'
/opt/eda/tools/sn_rel4.3/linux/libpre_specman.a(pre_specman_all_.o)(.text+0xacf28 ): In function `save_base_type':
: undefined reference to `__ctype_b'
/opt/eda/tools/sn_rel4.3/linux/libpre_specman.a(pre_specman_all_.o)(.text+0x1df31 2): In function `itr_start_conn_proc':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
# sn_compile.sh: /opt/eda/tools/sn_rel4.3/linux/tmp_compile_e_adds/specman was not created, exiting
make[1]: *** [specman_.o] Error 1
make[1]: Leaving directory `/opt/eda/tools/sn_rel4.3/linux/tmp_compile_e_adds'
make: *** [linux] Error 2


This is because libc.so.6 does not have ctype_to_lower, ctype_b, ctype_toupper functions, but ctype_tolower_old etc.

Can you help me how this linking problem can be solved?

Thanks in advance
aleksandar

mhelios
24th February 2004, 01:57 PM
What glibc version are you compiling against? Maybe specifying `export CC=gcc32` before compiling/linking might help.