[OpenAFS] Can't compile openafs (kernel 1.1.1)

Christopher Thomas cst@andrew.cmu.edu
Mon, 27 Aug 2001 13:38:25 -0400 (EDT)


I'm running RH7.1, gcc 2.96, kernel 2.4.9 and can't get the kernel module
to compile.  There dont appear to be any 2.4.9 binaries.

1. regen.sh calls "aclocal -I src/cf" but there is no src/cf.  Changing
this to src/config results in no errors.  Is that the proper way of doing
it?

2. make dies on afs_server.c:

gcc  -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -march=i486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -D__KERNEL__
-DCPU=586 -DKERNEL -D_KERNEL -DMODULE   -I. -I../
-I/usr/src/openafs-kernel-1.1.1/src/config -c ../afs/afs_server.c;
../afs/afs_server.c:1007:51: macro "min" requires 3 arguments, but only 2
given
../afs/afs_server.c:1009:50: macro "min" requires 3 arguments, but only 2
given
../afs/afs_server.c:1012:48: macro "min" requires 3 arguments, but only 2
given
../afs/afs_server.c: In function `afsi_SetServerIPRank':
../afs/afs_server.c:1007: `min' undeclared (first use in this function)
../afs/afs_server.c:1007: (Each undeclared identifier is reported only
once
../afs/afs_server.c:1007: for each function it appears in.)
make[4]: *** [afs_server.o] Error 1

How do I solve this?

Thanks,
Chris