Bind 8.2.2 statically linked

Norbert Tretkowski nobse-ml at gmx.de
Sat Oct 23 19:01:09 UTC 1999


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


More information about the bind-users mailing list