[BusyBox] autoconf stuff

Erik Andersen andersen at lineo.com
Fri Jun 15 12:03:55 UTC 2001


On Fri Jun 15, 2001 at 02:11:48AM -0500, Edmund Troche wrote:
> I tried to compile the latest ( 15JUN2001 ) code for busybox, using the
> latest uClibc, and got the following compile error:
> 
> ../uClibc/extra/gcc-uClibc/i386-uclibc-gcc -I- -Wall -Wshadow -Os
> -fomit-frame-pointer -D_GNU_SOURCE   -DBB_VER='"0.52pre"'
> -DBB_BT='"2001.06.15-07:05+0000"' -DUSE_SYSTEM_PWD_GRP  -I.  -c
> nslookup.c -o nslookup.o
> nslookup.c: In function `server_print':
> nslookup.c:134: `_res' undeclared (first use in this function)

This is missing from uClibc, and will be added as soon as possible.

> sh.o(.text+0xd3): undefined reference to `environ'
> sh.o(.text+0x2fa8): more undefined references to `environ' follow
> /usr/i386-linux-uclibc/lib/libc.so: undefined reference to `strcoll'
> /usr/i386-linux-uclibc/lib/libc.so: undefined reference to `index'
> /usr/i386-linux-uclibc/lib/libc.so: undefined reference to `original'
> collect2: ld returned 1 exit status
> make: *** [busybox] Error 1
> [root at matrix busybox]#

Oddly enough, every one of these is a weak symbol in uClibc.  What version
of gcc and binutils are you using?  Is this for an coff compiler?

> My guess here is that we have not tried to compile Hush with uClibc  and
> there are some issues when trying to do this. Should I be expecting Hush
> to work with uClibc? Or, is this a legitimate bug. Thanks for any help.

just tried it -- works fine for me.

    [andersen at sage busybox]$ gcc -v
    Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
    gcc version 2.95.4 20010319 (Debian prerelease)
    [andersen at sage busybox]$ ld -v
    GNU ld version 2.11.90.0.7 (with BFD 2.11.90.0.7

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list