Here is a tiny patch to get OpenAFS working on Fedora Core 4. FC4 builds everything, including the kernel, with GCC 4.0. Without this patch, compilation of the kernel modules dies with "struct coda_inode_info redefined" and "struct xfs_inode_info redefined".
This patch just removes these definitions from src/afs/sysincludes.h. I don't know if this is correct in all cases, but it does work here. Also, do the nearby #define statements need to go? I'm not sure. Thanks, Adam
diff -ur openafs-1.3.84/src/afs/sysincludes.h
openafs-1.3.84-agoode/src/afs/sysincludes.h
--- openafs-1.3.84/src/afs/sysincludes.h 2005-04-03 14:18:54.000000000
-0400
+++ openafs-1.3.84-agoode/src/afs/sysincludes.h 2005-06-15 15:27:52.000000000
-0400
@@ -76,11 +76,7 @@
#define _LINUX_CODA_FS_I
#endif
#define _CFS_HEADER_
-struct coda_inode_info {
-};
#define _LINUX_XFS_FS_I
-struct xfs_inode_info {
-};
#include <asm/uaccess.h>
#include <linux/list.h>
#include <linux/dcache.h>
signature.asc
Description: This is a digitally signed message part
