Subject: Building Bind as a static binary under 1.5 i386
To: None <netbsd-help@netbsd.org>
From: Len Burns <lenb@sasquatch.com>
List: netbsd-help
Date: 12/23/2000 11:03:38
Hi,

I am wishing to build the bind distribution in the NetBSD-1.5 src as
static binaries.  I put 
LDFLAGS=-static 
in mk.conf, and got the following:
cc -static  -o named db_dump.o db_load.o db_lookup.o db_save.o
db_update.o db_gl
ue.o db_ixfr.o db_sec.o db_tsig.o ns_parser.o ns_lexer.o
ns_parseutil.o ns_ctl.o
 ns_forw.o ns_init.o ns_main.o ns_maint.o ns_req.o ns_resp.o
ns_stats.o ns_ncach
e.o ns_xfr.o ns_glue.o ns_udp.o ns_config.o ns_update.o ns_ixfr.o
ns_signal.o ns
_sort.o ns_notify.o tmp_version.o -L/usr/src/usr.sbin/bind/lib -lbind
/usr/lib/libc.a(res_init.o)(.data+0x0): multiple definition of `_res'
/usr/src/usr.sbin/bind/lib/libbind.a(res_data.o)(.data+0x40): first
defined here
/usr/bin/ld: Warning: size of symbol `_res' changed from 512 to 444 in
res_init.o
Is there something I am missing here?

-Len