[comp.lang.perl] 'multiply defined' errors if compiled with -lresolv

generous@dev.dtic.dla.mil (Curtis Generous) (03/09/90)

Has anyone else ran into the problem  (I'm running PL12)?  I have seen
other messages posted about multiply defined errors, but those were associated
with other libraries.

This is running on a MtXinu 4.3BSD VAX where the bind4.8 resolver routines
are available only in the resolver library.  Compiles otherwise fine
without -lresolv (but then I'm back to using /etc/hosts again :-().

>>cc   array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o eval.o 
>>form.o hash.o malloc.o perly.o regcomp.o regexec.o stab.o str.o toke.o 
>>util.o perl.o -lresolv -lnm -ldbm -lm -o perl
>>_gethostbyaddr: ld:/lib/libc.a(gethostent.o): multiply defined
>>_sethostent: /lib/libc.a(gethostent.o): multiply defined
>>_endhostent: /lib/libc.a(gethostent.o): multiply defined
>>_gethostbyname: /lib/libc.a(gethostent.o): multiply defined
>>*** Exit 2
>>
>>Stop.

--curtis
---
Curtis C. Generous
Defense Technical Information Center (DTIC)
ARPA: generous@dev.dtic.dla.mil
UUCP: {uunet,vrdxhq}!dev!generous