🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #1730

Re: Andrew on SUNS

#1730
From: steve
Date: Wed, 01 May 1991 20:15
54 lines
1766 bytes
The following does work:

ararat[1, 103 ] % ypmatch bart hosts
192.9.205.50    bart
ararat[1, 104 ] % setenv DISPLAY 192.9.205.50:0.0
ararat[1, 106 ] % ez foo
Starting ez (Version 7.0, ATK 15.5); please wait...
Could not find host 192.9.205.50 in ez(xim). Error messages may not go to console.


What is happening is simple.  The library -lresolv has in it
a gethostbynam() that uses the resolver.  When the program is
linked, the first available gethostbyname, the one is -lresolv,
is used.  Hence, my problem.

I try to compile RESOLV_ENV undefined, but then I get the
following error while linking 'dofix.'  (I did not have these
problems before I applied the patches:-)

cc -O -I/lia/andrew/include/atk -I/lia/andrew/include -I/lia/X11r4/usr/include
 -o dofix ../machdep/machine/dofix.o ../lib/libclass.a
ld: Undefined symbol
   __res_close
   _res_querydomain
   _dn_expand
   _p_cdname
   __sethtent
   __getlong
   _p_class
   _res_mkquery
   _sethostfile
   _p_rr
   __res_resultcodes
   _res_search
   _res_init
   _p_query
   __gethtbyaddr
   __endhtent
   __res
   __gethtbyname
   _res_send
   __gethtent
   __getshort
   _putlong
   _dn_skipname
   _fp_query
   __res_opcodes
   _res_query
   _dn_comp
   _p_type
   _hostalias
   _putshort
   __getrhbyaddr
Technical Details
Message-ID: <9105012015.AA08673@ararat.boeing>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!lia.com!steve
References: <wc7L=VK00Vtq4jqG54@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!lia.com!steve
From: steve@lia.com
Newsgroups: comp.soft-sys.andrew
Subject: Re: Andrew on SUNS
Message-ID: <9105012015.AA08673@ararat.boeing>
Date: 1 May 91 20:15:53 GMT
References: <wc7L=VK00Vtq4jqG54@andrew.cmu.edu>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 54