[OpenAFS] can't build libafs-2.4.18-5.i386.mp.o

Matt Cocker matt@cs.auckland.ac.nz
Thu, 27 Jun 2002 20:27:44 +1200


Hi

I have been trying to build openafs-1.2.5 rpms on a redhat7.3 system 
running kernel-2.4.18-5.i686.rpm but the build fails when it tries to 
make the i386.MP kernel modules. I thought it was my spec file but the 
openafs-1.2.5-rh7.3-src.rpm from openafs.org won't build either. I also 
can't build kernel modules using the openafs-kernel-source rpms with the 
build crashing at the same point with the following error message 
(below). Interestingly the SP modules build.

Building in directory: MODLOAD-2.4.18-5-i686-MP
make[4]: Entering directory 
`/usr/src/redhat/BUILD/openafs-1.2.5/src/libafs/MODLOAD-2.4.18-5-i686-MP'
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 -DAFS_SMP  -DREDHAT_FIX  -I. -I../ 
-I/usr/src/redhat/BUILD/openafs-1.2.5/src/config -c ../afs/afs_atomlist.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 -DAFS_SMP  -DREDHAT_FIX  -I. -I../ 
-I/usr/src/redhat/BUILD/openafs-1.2.5/src/config -c ../afs/afs_lhash.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 -DAFS_SMP  -DREDHAT_FIX  -I. -I../ 
-I/usr/src/redhat/BUILD/openafs-1.2.5/src/config -c ../afs/afs_analyze.c;
In file included from ../asm/uaccess.h:8,
                  from ../afs/sysincludes.h:65,
                  from ../afs/afs_analyze.c:19:
../linux/sched.h:454:15: #if with no expression
make[4]: *** [afs_analyze.o] Error 1
make[4]: Leaving directory 
`/usr/src/redhat/BUILD/openafs-1.2.5/src/libafs/MODLOAD-2.4.18-5-i686-MP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.5/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.5'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.5'
make: *** [only_libafs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.12211 (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.12211 (%build)


Cheers

Matt