[comp.soft-sys.andrew] Problem with sunos 4.1

brossard@sic.epfl.ch (Alain Brossard EPFL-SIC/SII) (03/19/91)

   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

gk5g+@ANDREW.CMU.EDU (Gary Keim) (03/19/91)

Excerpts from misc: 18-Mar-91 Problem with sunos 4.1 SII@uunet.uu.net (1661)

> ld: Undefined symbol
>    _gethostent


Can you send me these files:

    andrew/overhead/class/machdep/sun_sparc/{Imakefile, getlist.awk}.  

Are you using AFS?

There are known problems with the distribution as of patch.009 on
SunOS4.1 machines.  As of the next patch, life will be better on that
platform.

Gary Keim
ATK Group

gk5g+@ANDREW.CMU.EDU (Gary Keim) (03/19/91)

Excerpts from misc: 18-Mar-91 Re: Problem with sunos 4.1 =>
Info-Andrew@andrew.cm (402+0)

> Can you send me these files:

>     andrew/overhead/class/machdep/sun_sparc/{Imakefile, getlist.awk}.  


Excuse me.  Never mind.  We have t hose here.

Gary