[uClibc] GNU coreutils undefined reference

Robert Urban urban at UNIX-Beratung.de
Tue Jun 15 16:06:01 UTC 2004


Hello List,

I'm trying to build GNU coreutils-5.2.1 in a root-fs built using
"buildroot" which contains gcc-3.3.3.

I'm getting the following error:

make[3]: Entering directory `/Build/coreutils-5.2.1/src'
gcc  -g -O2   -o du  du.o ../lib/libfetish.a  ../lib/libfetish.a 
../lib/libfetish.a(closeout.o)(.text+0xaa): In function `close_stdout':
/Build/coreutils-5.2.1/lib/closeout.c:93: warning: This version of __fpending returns bytes remaining in buffer for both narrow and wide streams.  glibc's version returns wide chars in buffer for the wide stream case.
../lib/libfetish.a(human.o)(.text+0x31): In function `adjust_value':
/Build/coreutils-5.2.1/lib/human.c:79: undefined reference to `__fixunsxfdi'
collect2: ld returned 1 exit status
make[3]: *** [du] Error 1

one Roberto Nibali reported the same problem at the beginning of June
on this list and included his solution, which was to build a toolchain
and thus avoid the use of the root-fs+toolchain.

Since I have invested significant time and effort in my current
root-fs build environment, I'm loath to start all over with just the
toolchain.

What can I do to fix or work around this problem?

thanks,

Rob Urban



More information about the uClibc mailing list