[comp.soft-sys.andrew] Andrew on SUNS

steve@lia (Stephen Williams) (04/30/91)

I have SUN workstations, running SunOS 4.1.1, and I have been able to
compile andrew from the X11R4 tape, patched to patch level 9.

In general it seems to work, but refuses to connect to remote X servers.
The following is what I see when I try to start ez:

	ararat[1, 108 ] % printenv DISPLAY
	bart:0.0
	ararat[1, 109 ] % ez foo
	Starting ez (Version 7.0, ATK 15.5); please wait...
	Could not open the display; this program will not run without a window system.
	Could not create new window.
	exiting.

I think I should mention, I am using yellow pages (NIS), not the domain name
service.  (It wasn't my choice.)  Is there something obvious I'm overlooking?
I tried undefining RESOLV_ENV in my site.h, but then runapp wouldn't link.


Also, typescript doesn't work.  I execute typescript, and it creates a window
just fine.  However,  after maybe printing a prompt, the shell dies leaving an
impotent typescript window -- I can type in it, but nothing gets executed.


Will patch #10 fix these problems?

Thanks in advance,
Steve Williams
steve@lia.com

steve@lia.com (05/02/91)

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