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

Derrick J Brashear shadow@dementia.org
Tue, 28 Aug 2001 11:23:47 -0400 (EDT)


On Mon, 27 Aug 2001, Christopher Thomas wrote:

> 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?

where did you get your source?

> 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?

this is fixed in CVS and will be in the next release. you can undef min
and max above the ifndef min and ifndef max found in this file and in the
rx file which will fail right after you fix this one.

-D