[OpenAFS-devel] compile fails on 2.6.24

Derrick Brashear shadow@gmail.com
Wed, 20 Feb 2008 12:35:38 -0500


Answer's the same as yesterday, too. Apply patches or build the CVS
openafs-stable-1_4_x version.


On Wed, Feb 20, 2008 at 8:12 AM,  <sebastian.maennling@exasol.com> wrote:
> Hi,
>
>  i tried to compile openafs 1.4.6 and 1.5.32 against linux kernel 2.6.24 and 2.6.24.2 but it fails on both.
>
>  make stops on 1.4.6 at:
>
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c:617: error: unknown field 'destroy' specified in initializer
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c:617: warning: excess elements in struct initializer
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c:617: warning (near initialization for 'key_type_afs_pag')
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c: In function 'osi_keyring_shutdown':
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c:651: error implicit declaration of function 'register_key_type'
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c: In function 'osi_keyring_shutdown':
>  /tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.c:656: error implicit declaration of function 'unregister_key_type'
>  make[6]: *** [/tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP/osi_groups.o] Error 1
>  make[5]: *** [_module_/tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP] Error 2
>  make[5]: Leaving directory `/tmp/kernel-2.6.24/usr/src/linux-2.6.24'
>  make[4]: *** [libafs.ko] Error 2
>  make[4]: Leaving directory `/tmp/afs/openafs-1.4.6/src/libafs/MODLOAD-2.6.24-SP'
>  make[3]: *** [linux_compdirs] Error 2
>  make[3]: Leaving directory `/tmp/afs/openafs-1.4.6/src/libafs'
>  make[2]: *** [libafs] Error 2
>  make[2]: Leaving directory `/tmp/afs/openafs-1.4.6'
>  make[1]: *** [build] Error 2
>  make[1]: Leaving directory `/tmp/afs/openafs-1.4.6'
>  make: *** [all] Error 2
>
>
>  and on 1.5.32 at:
>
>  /tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP/osi_export.c:933: error: unknown field 'decode_fh' specified in initializer
>  /tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP/osi_export.c:933: warning: initialization from incompatible pointer type
>  /tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP/osi_export.c:934: error: unknown field 'get_dentry' specified in initializer
>  /tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP/osi_export.c:934: warning: initialization from incompatible pointer type
>  make[6]: *** [/tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP/osi_export.o] Error 1
>  make[5]: *** [_module_/tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP] Error 2
>  make[5]: Leaving directory `/tmp/kernel-2.6.24/usr/src/linux-2.6.24'
>  make[4]: *** [libafs.ko] Error 2
>  make[4]: Leaving directory `/tmp/openafs-1.5.32/src/libafs/MODLOAD-2.6.24-MP'
>  make[3]: *** [linux_compdirs] Error 2
>  make[3]: Leaving directroy `/tmp/openafs-1.5.32'
>  make[2]: *** [libafs] Error 2
>  make[2]: Leaving directroy `'tmp/openafs-1.5.32'
>  make[1]: *** [build] Error 2
>  make[1]:  Leaving directroy `/tmp/openafs-1.5.32'
>  make: *** [all] Error 2
>
>
>  I also read a post from yesterday where a similar problem is described, and that it should be fixed on post 1.4.6 versions.
>
>  It would be great if anybody can help.
>
>  thanks
>  Sebastian
>
>  _______________________________________________
>  OpenAFS-devel mailing list
>  OpenAFS-devel@openafs.org
>  https://lists.openafs.org/mailman/listinfo/openafs-devel
>