'_ctype_' aliased to undefined symbol '_ctype_b+127'

Shaun Jackman sjackman@gmail.com
Thu Aug 18 20:52:00 GMT 2005


gcc complains about this line:
extern _CONST char _ctype_[1 + 256] __attribute__ ((alias ("_ctype_b+127")));
error: '_ctype_' aliased to undefined symbol '_ctype_b+127'
However, if I use gcc -save-temps, I can compile the resulting
assembler file using as. Any suggestions?

Cheers,
Shaun

$ make
...
gcc -m64 -I/home/sjackman/work/debian/newlib/newlib-1.13.0/_build/i686-pc-linux-gnu/64/newlib/targ-include
-I/home/sjackman/work/debian/newlib/newlib-1.13.0/newlib/libc/include
-DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\" -I.
-I../../../../../../newlib/libc/ctype -O2 -Wall
-D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -fPIC
-D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin
-O2 -g -O2 -O2 -g -O2 -m64 -c
../../../../../../newlib/libc/ctype/ctype_.c  -fPIC -DPIC -o
.libs/ctype_.o
../../../../../../newlib/libc/ctype/ctype_.c:91: error: '_ctype_'
aliased to undefined symbol '_ctype_b+127'
make[7]: *** [ctype_.lo] Error 1
make[7]: Leaving directory
`/home/sjackman/work/debian/newlib/newlib-1.13.0/_build/i686-pc-linux-gnu/64/newlib/libc/ctype'
...



More information about the Newlib mailing list