Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!cernvax!chx400!chx400!sicsun!sic!brossard From: brossard@sic.epfl.ch (Alain Brossard EPFL-SIC/SII) Newsgroups: comp.soft-sys.andrew Subject: Problem with sunos 4.1 Message-ID: <1196@sicsun.epfl.ch> Date: 18 Mar 91 17:13:39 GMT Sender: news@sicsun.epfl.ch Lines: 37 I'm trying to compile andrew on sunos 4.1 and I'm having lots of problems. The latest being: make DESTDIR=/sic/install_andrew/sun4-4.1 install rm -f dofix cc -O4 -I/sic/install_andrew/sun4-4.1/include/atk -I/sic/install_andrew/sun4-4.1/include -I/sic/X11/include/X11 -o dofix ../machdep/machine/dofix.o ../lib/libclass.a /usr/lib/libresolv.a ld: Undefined symbol _gethostent *** Error code 2 make: Fatal error: Command failed for target `dofix' Current working directory /net/sasun1/sic/install_X11/X.V11R4/sun4-4.1/contrib/toolkits/andrew/overhead/class/cmd *** Error code 1 make: Fatal error: Command failed for target `dependInstall' Current working directory /net/sasun1/sic/install_X11/X.V11R4/sun4-4.1/contrib/toolkits/andrew/overhead/class/cmd I have traced this to the fact that we are using the DNS routines instead of /etc/hosts. We remade our libc to use the DNS directly, so we don't have gethostent in our libc. In fact since /etc/hosts will never be up to date anymore, we don't want any software using gethostent. Having said this, the problem, from andrew's point of view is deeper. I have no idea what piece of Andrew uses gethostent, the reference is hardwired in by the file overhead/class/machdep/sun_sparc/globalrefs._h: globalref(_gethostent) and at the same time it is explicitely removed from the libc created by the Imakefile: -ar d libcx.a `cat DelList._` with DelList._ being: staff%sasun1[148]$ grep host DelList._ gethostent.o So why is it hardwired in by globalrefs._h in ../machdep/machine/dofix.o? Am I the only one who uses DNS with andrew (at least trying to!)? Alain Brossard