[OpenAFS] AFS Inode & debian package

Frank Burkhardt fbo2@gmx.net
Wed, 3 Aug 2005 14:17:42 +0200


Hi Lars,

On Wed, Aug 03, 2005 at 12:24:12PM +0200, Lars Schimmer wrote:

[snip]

> And for gcc4 problem, uh, the backlog is gone, have to try it again...
> wait...
> Here are the last lines:
> In file included from /usr/src/modules/openafs/src/rx/rx_kcommon.h:140,
>                  from
> /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.11-luna-SP/rx_kmutex.c:22:
> /usr/src/modules/openafs/src/afs/sysincludes.h:79: error: redefinition
> of 'struct coda_inode_info'
> /usr/src/modules/openafs/src/afs/sysincludes.h:82: error: redefinition
> of 'struct xfs_inode_info'
> make[8]: ***
> [/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.11-luna-SP/rx_kmutex.o]
> Error 1
> make[7]: ***
> [_module_/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.11-luna-SP] Error 2
> make[7]: Leaving directory `/usr/src/kernel-source-2.6.11'
> make[6]: *** [openafs.ko] Error 2
> make[6]: Leaving directory
> `/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.11-luna-SP'
> make[5]: *** [linux_compdirs] Error 2
> make[5]: Leaving directory `/usr/src/modules/openafs/src/libafs'
> make[4]: *** [libafs] Error 2
> make[4]: Leaving directory `/usr/src/modules/openafs'
> make[3]: *** [build] Error 2
> make[3]: Leaving directory `/usr/src/modules/openafs'
> make[2]: *** [only_libafs] Error 2
> make[2]: Leaving directory `/usr/src/modules/openafs'
> make[1]: *** [build-modules-stamp] Error 2
> make[1]: Leaving directory `/usr/src/modules/openafs'
> Module /usr/src/modules/openafs failed.
> Hit return to Continue

Commenting out some lines in /usr/src/modules/openafs/src/afs/sysincludes.h
(l.75-l.83) solved the problem for me:

//#ifndef _LINUX_CODA_FS_I
//#define _LINUX_CODA_FS_I
//#endif
//#define _CFS_HEADER_
//struct coda_inode_info {
//};
//#define _LINUX_XFS_FS_I
//struct xfs_inode_info {
//};

I didn't really know what I was doing ;-) but the compiled module works stable on
>50 computers.

Regards,

Frank