[uClibc] RE: coreutils-5.2.1 and undefined reference to `__fixunsxfdi'

Robert Urban urban at UNIX-Beratung.de
Tue Jun 15 17:51:39 UTC 2004


Hello List,

Roberto Nibali reported at the beginning of June that a build of
GNU coreutils failed within the root-fs environment failed (see below).
His solution was to build only a toolchain and thus avoid the use of
the root-fs + toolchain.

I'm using a root-fs built using "buildroot" which contains gcc-3.3.3
and getting a similar 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

The symbol in question is defined in libgcc_s.so.  My solution to the
problem was to add this lib to the libraries against which the
coreutils are linked:

	AM_LDFLAGS="-lgcc_s" make

cheers,

Rob Urban



More information about the uClibc mailing list