Path: utzoo!attcan!uunet!snorkelwacker!apple!decwrl!ucbvax!BRL.MIL!moss From: moss@BRL.MIL ("Gary S. Moss", VLD/VMB) Newsgroups: comp.sys.sgi Subject: Re: using gethostbyname() Message-ID: <9006010850.aa16641@VMB.BRL.MIL> Date: 1 Jun 90 12:50:49 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 < I am trying to use the 'gethostbyname()' system call in a program. < The manual entry mentions that I must link with 'libbsd.a' in order to use < this function. However, the function is not defined in that library (or < any other library that I can find) and the loader complains about it being < undefined. What OS/hardware combination are you running? I am running 4D/IRIX 3.2.2 and have gethostbyname in *my* /usr/lib/libbsd.a. (I'm pretty sure it's been there in previous releases of IRIX). Try the following: $ nm -Bo /usr/lib/libbsd.a | grep gethostbyname ... /usr/lib/libbsd.a:gethostwrap.o: 10000000 T gethostbyname ...