This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Linking problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]