Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!att!att!watmath!maytag!gamiddle From: gamiddle@maytag.waterloo.edu (Guy Middleton) Newsgroups: comp.sys.mips Subject: can't use private libresolv.a Summary: am I missing something obvious here? Message-ID: <1990Oct29.052543.9284@maytag.waterloo.edu> Date: 29 Oct 90 05:25:43 GMT Organization: University of Waterloo Disinformation Technology Research Centre Lines: 18 When I try to compile the version of nslookup that comes with BIND 4.8.3, I get this: % make cc -o nslookup main.o getinfo.o debug.o send.o skip.o list.o subr.o commands.o ../../res/libresolv.a -ll ld: /bsd43/usr/lib/libc.a(ht_getnamadr.o): _gethtent: multiply defined /bsd43/usr/lib/libc.a(gethostnamadr.o): gethostbyname: multiply defined /bsd43/usr/lib/libc.a(gethostnamadr.o): gethostbyaddr: multiply defined It works fine if I don't use my own libresolv. What's happening? ld should not care what is in libc, if it already has what it wants in libresolv. I guessed it might have something to do with conflicting storage class, so I made _gethtent() static, and that fixed the complaint. What about the other two? They would not be very useful if static.