[BusyBox] uClibc build problems (was: autoconf stuff)

Richard Doyle rdoyle at islandnetworks.com
Fri Jun 15 12:27:22 UTC 2001


Busybox compiles fine without BB_NSLOOKUP, but with it:

../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-
18:24+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)
nslookup.c:134: (Each undeclared identifier is reported only once
nslookup.c:134: for each function it appears in.)
make: *** [nslookup.o] Error 1

(busybox and uClibc from yesterday's cvs)

> -----Original Message-----
> From: busybox-admin at busybox.net
> [mailto:busybox-admin at busybox.net]On Behalf Of
> Benjamin Zeckel
> Sent: Friday, June 15, 2001 10:42 AM
> To: busybox at busybox.net
> Subject: Re: [BusyBox] uClibc build problems (was: autoconf stuff)
>
>
>
> >Edmund reported:
> > > nslookup.c:134: `_res' undeclared (first use in this function)
> > > I could not find _res in any other file.
> >
> >_res should be defined in <resolv.h>, something like
> >extern struct __res_state _res;
> >I don't know what uClibc does for the resolv libraries.
>
> this is the result of a recent patch to nslookup.c to find
> out the correct
> default DNS servers (instead of just printing
> "default"). I only tested it under glibc which defines _res
> in resolv.h as
> mentioned above. There seems to be a couple
> possiblities
>
> 1 - uClibc does not implement this _res structure in the same
> way as glibc
> (or at all)
> 2 - your build environment is messed up
> 3 - I used the wrong interface to the _res structure. I did
> it the same way
> BIND nslookup seems to do it, so I don't think
>      this is the case.
>
> Does anyone who uses uClibc also have problems with nslookup.c (it is
> commented out in Config.h by default I believe)
>
> Ben Zeckel
> bzeckel at hmc.edu
>
>
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
>







More information about the busybox mailing list