[uClibc]probs compiling newest binutils against uclibc

Glenn McGrath bug1 at optushome.com.au
Sun Jan 20 11:16:44 UTC 2002


Im having problems compiling binutils-2.11.92.0.12.3 against uclibc.

CC=/usr/i386-linux-uclibc/bin/gcc
CFLAGS=-D__FORCE_NOGLIBC
./configure --disable-nls --enable-shared --host=i386-linux

/bin/sh ./libtool --mode=compile /usr/i386-linux-uclibc/bin/gcc
-DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE   -DTRAD_CORE   -I. -I.
-I./../include  -I./../intl -I../intl   -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Os -D__FORCE_NOGLIBC -c
trad-core.c/usr/i386-linux-uclibc/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.
-D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl -I../intl
-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Os -D__FORCE_NOGLIBC
-c trad-core.c  -fPIC -DPIC -o .libs/trad-core.o In file included from
/usr/i386-linux-uclibc/include/unistd.h:730,                 from
sysdep.h:69,                 from trad-core.c:24:
../include/getopt.h:115: warning: function declaration isn't a prototype
trad-core.c: In function `trad_unix_core_file_p':
trad-core.c:122: `NBPG' undeclared (first use in this function)
trad-core.c:122: (Each undeclared identifier is reported only once
trad-core.c:122: for each function it appears in.)
trad-core.c:122: `UPAGES' undeclared (first use in this function)
trad-core.c:199: `HOST_TEXT_START_ADDR' undeclared (first use in this
function) trad-core.c:205: `HOST_STACK_END_ADDR' undeclared (first use
in this function) make[3]: *** [trad-core.lo] Error 1
make[3]: Leaving directory
`/home/bug1/binutils/binutils-2.11.92.0.12.3/bfd' make[2]: ***
[all-recursive] Error 1

I think it might be a bug in binutils, there are #ifdef all over the
place for NBPG, so i would think its supposed to more tolerant  on it
not existing. Im mentioning it here incase someone else has found a way
around it.

I notice on the uclibc web page the binutils-2.11.2 works, so i can just
drop back to that version.


Glenn



More information about the uClibc mailing list