[OpenAFS] RedHat Enterprise 3 srpm compile errors

John Koyle jkoyle@rfpdepot.com
Fri, 24 Oct 2003 09:11:17 -0600


I'm trying to recompile the redhat 9 SRPM on an updated Redhat
Enterprise 3 (beta2) system - before making a decision on purchasing the
final version.

The recompile get's to this point then stops:

[joe@test MODLOAD-2.4.21-3.EL-i386-SP]# gcc   -O2 -fomit-frame-pointer
-fno-strength-reduce -fno-strict-aliasing -fno-common -pipe
-march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE
-DREDHAT_FIX  -I. -I../
-I/usr/src/redhat/BUILD/openafs-1.2.10/src/config -c
../afs/afs_analyze.c
In file included from ../afs/sysincludes.h:71,
                 from ../afs/afs_analyze.c:19:
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:421: dereferencing pointer to incomplete type
linux/mm.h: In function `set_page_zone':
linux/mm.h:426: dereferencing pointer to incomplete type
linux/mm.h:427: dereferencing pointer to incomplete type
linux/mm.h: In function `page_mapped':
linux/mm.h:603: dereferencing pointer to incomplete type
linux/mm.h: At top level:
linux/mm.h:613: syntax error before '*' token
linux/mm.h:613: warning: data definition has no type or storage class


Removing the REDHAT_FIX define allows the system to compile without
errors, but I assume that it's there for a reason, and given that it's
causing an error in the memory mapping I don't want to assume anything.

Any ideas?
Thanks,
John