[OpenAFS-devel] Error in compiling 1.2.10-rc4 on RHEL 3.0 Beta1

Frank Bagehorn fba@zurich.ibm.com
Wed, 30 Jul 2003 15:34:03 +0200


I tried to compile 1.2.10-rc4 on the new RHEL 3.0 Beta 1. It has a 
2.4.21-1.1931.2.349.2.2.ent kernel.
(RH kernel version numbers suck...)
When compiling the i386 SP module, I get the following error:

gcc   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing 
-fno-co
mmon -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL 
-DMODULE -D
REDHAT_FIX  -I. -I../ -I/usr/src/redhat/BUILD/openafs-1.2.10rc4/src/config 
-c ..
/afs/afs_analyze.c;  
In file included from ../afs/sysincludes.h:71,  
                 from ../afs/afs_analyze.c:19:  
../linux/mm.h:200: syntax error before "pte_addr_t"  
../linux/mm.h:200: warning: no semicolon at end of struct or union  
../linux/mm.h:200: warning: no semicolon at end of struct or union  
../linux/mm.h:201: warning: data definition has no type or storage class   
 
../linux/mm.h:220: syntax error before '}' token  
../linux/mm.h:220: warning: data definition has no type or storage class   
 
../linux/mm.h: In function `page_zone':  
../linux/mm.h:406: dereferencing pointer to incomplete type  
../linux/mm.h: In function `set_page_zone':  
../linux/mm.h:411: dereferencing pointer to incomplete type  
../linux/mm.h:412: dereferencing pointer to incomplete type  
../linux/mm.h: In function `page_mapped':  
../linux/mm.h:588: dereferencing pointer to incomplete type  
../linux/mm.h: At top level:  
../linux/mm.h:598: syntax error before '*' token  
../linux/mm.h:598: warning: data definition has no type or storage class   
 
make[4]: *** [afs_analyze.o] Error 1  

Any ideas how to fix that ?

Thx
Frank

----------------------------------------------------------------------
Dr. Frank Bagehorn
IBM Zurich Research Lab.
Saeumerstr. 4
CH-8803 Rueschlikon 
Switzerland
----------------------------------------------------------------------
SMTP: fba@zurich.ibm.com
Notes: Frank Bagehorn/Zurich/IBM@IBMCH
phone: ++41 (01) 724 83 23  fax: ++41 (01) 724 89 59