[744] in Zephyr_Bugs
Problems compiling zephyr
daemon@ATHENA.MIT.EDU (Derrick Kong)
Fri Feb 16 20:27:21 1996
To: zephyr-bugs@MIT.EDU
Date: Fri, 16 Feb 96 15:27:14 -1000
From: Derrick Kong <kong@uhheph.phys.hawaii.edu>
I grabbed zephyr-2.0.2 off athena-dist and am trying to install it on a
(non-Athena) Alpha running OSF/1 V3.2 without Kerberos or Hesiod.
After unpacking, I run:
./configure
make
exactly like that. Configure runs with no obvious problems. The make
proceeds merrily along until this point (if you want, I can send the
full config.log and make output):
ar cru libdyn.a dyn_append.o dyn_create.o dyn_debug.o dyn_delete.o
dyn_insert.o dyn_paranoid.o dyn_put.o dyn_realloc.o dyn_size.o
ranlib libdyn.a
s - creating symbol hash table. Wait...
gcc -O -I../../h -I../../h -c dyntest.c
gcc -o dyntest dyntest.o libdyn.a
ar cru libzephyr.a
ranlib libzephyr.a
s - creating symbol hash table. Wait...
for i in syslogd xzwrite zaway zctl zleave zlocate zmailnotify znol
zpopnotify zshutdown_notify zstat zwgc zwrite; do (cd $i; make all) ||
exit 1; done
Make: Don't know how to make ../../h/zephyr/zephyr_err.h. Stop.
*** Exit 1
Stop.
As marc pointed out, make failed to go through and make
lib/zephyr/zephyr_err.c. In addition, a look at libzephyr.a shows that
it only has:
!<arch>
in it; clearly, make failed to compile all the files in lib/zephyr
before creating libzephyr.a.
As a fix, I then tried the following (in lib/zephyr):
make zephyr_err.c
which returned:
../../lib/et/compile_et ./zephyr_err.et
mv zephyr_err.h ../../h/zephyr
and then:
rm libzephyr.a
foreach file (`ls *.c`)
gcc -O -I. -I../../h/ -c $file
end
ar cru libzephyr.a *.o
ranlib libzephyr.a
Unfortunately, I then get a set of compilation errors during the various
compiles:
ZLocateU.c: In function `ZLocateUser':
ZLocateU.c:24: number of arguments doesn't match prototype
../../h/zephyr/zephyr.h:168: prototype declaration
ZVariables.c: In function `ZGetVariable':
ZVariables.c:41: `CONFDIR' undeclared (first use this function)
ZVariables.c:41: (Each undeclared identifier is reported only once
ZVariables.c:41: for each function it appears in.)
smwgc.c: In function `main':
smwgc.c:8: `FILE' undeclared (first use this function)
smwgc.c:8: (Each undeclared identifier is reported only once
smwgc.c:8: for each function it appears in.)
smwgc.c:8: `fp' undeclared (first use this function)
smwgc.c:9: parse error before `char'
smwgc.c:16: `retval' undeclared (first use this function)
smwgc.c:21: `port' undeclared (first use this function)
smwgc.c:27: `buf' undeclared (first use this function)
smwgc.c:30: `errno' undeclared (first use this function)
smwgc.c:38: `sub' undeclared (first use this function)
smwgc.c:47: `notice' undeclared (first use this function)
smwgc.c:47: `from' undeclared (first use this function)
smwgc.c:51: `auth' undeclared (first use this function)
Some of the errors look quickly fixable (perhaps swmgc.c forgot to
include stdio.h?), but I don't understand enough of the code to fix
everything (or even know if some of these are relevant or not).
(Clearly then, some functions fail get to included into the library
which cause a top-level make to eventually crash again.)
Anyone care to comment? Possible answers include:
a) I'm doing something wrong
b) My system is broken
c) There is a bug in the make procedure/code
d) Some combination of the above
Derrick