[276] in Moira
Undefined variable __res
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Tue Mar 5 12:39:26 1991
From: Stanier A <alan@essex.ac.uk>
Date: Tue, 5 Mar 91 15:24:30 GMT
To: bug-moira@ATHENA.MIT.EDU
Platform: Solbourne 5E-902 (said to be a Sun lookalike)
OS: SMP 4.0 (said to be equivalent to SunOS 4.0)
When I try to build moira, "make depend" works, but "make all" fails
for i in mailmaint passwd moira userreg blanche mrcheck; do \
(cd $i; make all); done
cc -c -I../../include -O mailmaint.c
cc -I../../include -O -o mailmaint mailmaint.o -L../../lib -lmoira -lgdb -lcom_err \
-lcurses -ltermcap -lkrb -ldes -lhesiod
ld: ../../lib/libhesiod.a: warning: archive has no table of contents; add one using ranlib(1)
ld: Undefined symbol
__res
*** Error code 1
make: Fatal error: Command failed for target `mailmaint'
Current working directory /ufs/staff/alan/athena/moira/clients/mailmaint
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /ufs/staff/alan/athena/moira/clients
*** Error code 1
make: Fatal error: Command failed for target `all'
When I try to find the variable _res in the code, I find one reference,
in ./rpc/fixhost.c
/* can't get name from nameserver; fix up the format a bit */
for (cp = host; *cp; cp++) {
register int c; /* pcc doesn't like register char */
if (islower(c = *cp)) *cp = toupper(c);
has_dot |= (c == '.');
}
if (!has_dot) {
(void) sprintf(tbuf, "%s.%s", host, _res.defdname);
free(host); ^^^^^^^^^^^^^
host = strsave(tbuf); ^
} ^
return host; Here it is
}
}
Have I done something wrong? Or have a corrupt source?
Alan