[OpenAFS] AFS Inode & debian package
zeroguy
zeroguy@verizon.net
Wed, 03 Aug 2005 17:59:33 -0400
On Wed, 03 Aug 2005 09:08:41 -0400 (EDT)
Derrick J Brashear <shadow@dementia.org> wrote:
> >> /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'
>
>
> > 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 don't suppose you can tell us what's being included before
sysincludes.h
> that's defining them?
I encountered this error before, as well, and another fix is to just
move the #endif to down below the definition of xfs_inode_info.
The conflict, I believe, comes from where afs/afs_osi.c includes
afs/afs_osi.h, and then includes afs/sysincludes.h . afs/afs_osi.h
defines those two structs first, and then afs/sysincludes.h does again,
as we've seen.
-zeroguy