[OpenAFS] openafs-cvs doesn't compile

Peter Somogyi psomogyi@gamax.hu
Mon, 10 Oct 2005 15:17:42 +0200


Hi,

I've been trying to compile the current openafs module from the cvs:
..
gcc -pipe -g -O2 -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/src/config -I. -I. -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/include -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/include/afs -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/include/rx -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2 -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/src -I/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/src -g -O2 -D_LARGEFILE64_SOURCE -c fsprobe_callback.c
fsprobe_callback.c: In function `init_afs_cb':
fsprobe_callback.c:55: warning: passing arg 1 of `rx_getAllAddr' from incompatible pointer type
fsprobe_callback.c: In function `SRXAFSCB_GetDE':
fsprobe_callback.c:773: error: argument `addr' doesn't match prototype
/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/include/afs/afscbint.h:498: error: prototype declaration
fsprobe_callback.c:773: error: number of arguments doesn't match prototype
/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/include/afs/afscbint.h:498: error: prototype declaration
make[3]: *** [fsprobe_callback.o] Error 1
make[3]: Leaving directory `/usr/src/packages/BUILD/openafs-1.4.0-RC6_2/src/fsprobe'
make[2]: *** [fsprobe] Error 2
make[2]: Leaving directory `/usr/src/packages/BUILD/openafs-1.4.0-RC6_2'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/openafs-1.4.0-RC6_2'
make: *** [all_nolibafs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.97702 (%build)

I can see there's a new function SRXAFSCB_GetDE in src/fsprobe/fsprobe_callback.c which declaration conflicts with fsint/afscbint.h.

-- 
Peter Somogyi
Software Developer, Gamax Ltd.
1114 Budapest, Bartok B. u 15/d
Tel.: +36-1-381-0544
e-mail: psomogyi@gamax.hu