Bind 8.2.2 statically linked

radome at mailexcite.com radome at mailexcite.com
Wed Oct 27 18:21:20 UTC 1999


Norbert,

I commented out the res_randomid function at the bottom of the
res_init.c file and it compiled OK.  I don't know if it actually works.

Jeff Peterson

In article <19991023205513.A19397 at nexus.nobse.de>,
  Norbert Tretkowski <nobse at odn.de> wrote:
> Hello,
>
> after the release of BIND 8.2.2 I've tried to compile a statically
linked
> version to run it in a chroot() environment. For this I have changed
the
> the line 'CDEBUG= -O2 -g' in
/usr/src/bind-8.2.2/src/ports/Makefile.set to
> 'CDEBUG= -O2 -static'. After that, I get an error while compiling
nslookup:
>
> gcc -D_GNU_SOURCE -O -static   -o nslookup main.o getinfo.o debug.o
send.o skip.o list.o subr.o commands.o \
> 	../../lib/libbind.a -lfl
> /usr/bin/../lib/libc.a(res_init.o): In function `__res_randomid':
> res_init.o(.text+0x670): multiple definition of `__res_randomid'
> ../../lib/libbind.a(res_init.o)(.text+0x9f0): first defined here
> collect2: ld returned 1 exit status
> make[2]: *** [nslookup] Error 1
> make[2]: Leaving directory `/usr/src/bind-8.2.2/src/bin/nslookup'
> make[1]: *** [nslookup] Error 2
> make[1]: Leaving directory `/usr/src/bind-8.2.2/src/bin'
> make: *** [all] Error 2
>
> I get this problem with glibc 2.0.7 and 2.1.2.
> Any ideas?
>
> Best regards,
> Norbert
>
> --
> Norbert Tretkowski
>
> "There are two major products that come out of Berkeley: LSD and UNIX.
We
> don't believe this to be a coincidence." -- Jeremy S. Anderson
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.


More information about the bind-users mailing list