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

Tom Cameron TCameron at stmarysbank.com
Sun Jun 17 16:05:09 UTC 2001


 Is this an easy fix?  Am I understanding you correctly in that _res needs
to be added into resolv.h, or does an include need to be added?  Just
wondering.  Otherwise, things work GREAT.

---
Thomas Cameron


-----Original Message-----
From: Edmund Troche
To: Richard Doyle
Cc: Benjamin Zeckel; busybox at busybox.net
Sent: 06/16/2001 11:13
Subject: Re: [BusyBox] uClibc build problems (was: autoconf stuff)

Yep, as Erik indicated _res is not in the resolv.h that is part of
uClibc
so that is the problem with compiling nslookup.c.


Edmund

Richard Doyle wrote:

> 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
> >
> >
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox



_______________________________________________
busybox mailing list
busybox at busybox.net
http://busybox.net/mailman/listinfo/busybox





More information about the busybox mailing list