This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Linking problem
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Linking problem
- From: "Paul D. Robertson" <proberts at clark dot net>
- Date: Wed, 23 Feb 2000 14:09:29 -0500 (EST)
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Hi,
I'm trying to staticly link a program that does DNS resolution with BIND
and glibc under RedHat6.1. I've searched the archives and can't seem to
figure out what's wrong, so I'd appreciate a clue, here's what I'm
getting:
$ gcc -o pdrpitch pdrpitch2.c -I/usr/local/bind/include -L/usr/lib/bind/lib -lbind -static
/usr/lib/libc.a(res_init.o): In function `__res_randomid':
/usr/src/bs/BUILD/glibc-2.1/resolv/res_init.c:651: multiple definition of `__res_randomid'
/usr/lib/bind/lib/libbind.a(res_init.o)(.text+0x98c): first defined here
collect2: ld returned 1 exit status
Any help is appreciated.
Thanks,
Paul
-----------------------------------------------------------------------------
Paul D. Robertson "My statements in this message are personal opinions
proberts@clark.net which may have no basis whatsoever in fact."
PSB#9280