[OpenAFS] Redhat server packages dependent on kernel modules

Matthew Cocker matt@cs.auckland.ac.nz
Tue, 20 Dec 2005 09:01:49 +1300


Hi

I was asked today why the kernel module is required by the redhat
openafs-server rpm. I couldn't come up with a reason as I thought only
the client program would require it.

What have I missed?

I'm asking because the rpmbuild of the redhat3 openafs 1.4 source rpms
fails with the errors below. I seem to remember this is a redhat kernel
problem but haven't found the solution in the archive yet. In this case
we just down loaded the pre-built kenerl rpms from openafs.org, but we
like to be able to build the rpms from spec file so we can if required
add in local config files for local users.

Cheers

Matt

../linux/mm.h:203: syntax error before "pte_addr_t"
../linux/mm.h:203: warning: no semicolon at end of struct or union
../linux/mm.h:203: warning: no semicolon at end of struct or union
../linux/mm.h:204: warning: data definition has no type or storage class
../linux/mm.h:223: syntax error before '}' token
../linux/mm.h:223: warning: data definition has no type or storage class
../linux/mm.h: In function `page_zone':
../linux/mm.h:422: dereferencing pointer to incomplete type
../linux/mm.h: In function `set_page_zone':
../linux/mm.h:427: dereferencing pointer to incomplete type
../linux/mm.h:428: dereferencing pointer to incomplete type
../linux/mm.h: In function `page_mapped':
../linux/mm.h:608: dereferencing pointer to incomplete type
../linux/mm.h: At top level:
../linux/mm.h:618: syntax error before '*' token
../linux/mm.h:618: warning: data definition has no type or storage class
../linux/mm.h: In function `page_pin_hash':
../linux/mm.h:910: sizeof applied to an incomplete type
../linux/mm.h:910: warning: division by zero
make[4]: *** [afs_analyze.o] Error 1
make[4]: Leaving directory
`/usr/src/redhat/BUILD/openafs-1.4.0/src/libafs/MODLOAD-2.4.21-32.0.1.EL-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.4.0/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.4.0'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.4.0'
make: *** [only_libafs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.82292 (%build)