[OpenAFS] error recompiling afs module on rh8.0

Stefano Stalio stefano.stalio@lngs.infn.it
Mon, 14 Apr 2003 16:18:33 +0200


I have a standard RH80 Linux system - kernel 2.4.18-14 - with afs 1.2.8
working perfectly (I downloaded the rpms from your site).

For reasons too complicated to explain I tried recompiling the kernel
module. I got the source rpm -
openafs-kernel-source-1.2.8-rh8.0.1.i386.rpm - from your site and
installed it.
Then I did:

cd /usr/src/openafs-kernel-1.2.8/src
./configure (everything went OK up to here)
make

make exited trying to build the kernel module and gave the following error:

  > gcc  -O2 -fomit-frame-pointer -fno-strength-reduce
-fno-strict-aliasing -fno-common -pipe -march=pentium -D__KERNEL__
-DCPU=586 -DKERNEL -D_KERNEL -DMODULE -DAFS_SMP -D__BOOT_KERNEL_UP=0
-D__BOOT_KERNEL_SMP=1   -I. -I../
-I/usr/src/openafs-kernel-1.2.8/src/config -c ../rx/rx_knet.c;
  > In file included from ../linux/interrupt.h:45,
  >                  from ../asm/highmem.h:25,
  >                  from ../linux/highmem.h:11,
  >                  from ../linux/skbuff.h:27,
  >                  from ../h/netdevice.h:147,
  >                  from ../rx/rx_kcommon.h:85,
  >                  from ../rx/rx_knet.c:21:
  > ../asm/hardirq.h:18:33: #if with no expression
  > make[1]: *** [rx_knet.o] Error 1
  > make[1]: Leaving directory
`/usr/src/openafs-kernel-1.2.8/src/MODLOAD-2.4.18-14-MP'
  > make: *** [linux_compdirs] Error 2

I had to modify line 18 of
/usr/src/openafs-kernel-1.2.8/src/asm/hardirq.h - which is a link to
/usr/src/linux/include/asm-i386/hardirq.h
from

#if CONFIG_X86_LOCAL_APIC

to

#ifdef CONFIG_X86_LOCAL_APIC

and everything seemed to work OK.
Now I will try to compile for kernel 2.4.20-8 - RedHat 9 - but I already
saw problems.

			Stefano