[OpenAFS-devel] 1.6.10 build error on FC20 (Linux-3.18.7-100 PAE)

Derek Atkins warlord@MIT.EDU
Tue, 10 Mar 2015 09:23:29 -0400


Hi,

I was trying to install OpenAFS on FC20 but it failed.

The most current release available with binaries (1.6.10) doesn't have a
kmod package for that kernel, so I installed the dkms package.  That
fails to build on the current FC20 kernel, Linux 3.18.7-100 PAE with the
attached make log output.

I'd love to hear this is fixed in 1.6.11, but of course there is no yum
repository for 1.6.11, as far as can tell.

Thanks,

-derek

  CC [M]  /var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.18=
.7-100.fc20.i686+PAE-SP/afs_daemons.o
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.18.7-100.fc2=
0.i686+PAE-SP/afs_daemons.c: In function =E2=80=98afs_CheckRootVolume=E2=80=
=99:
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.18.7-100.fc2=
0.i686+PAE-SP/afs_daemons.c:403:24: error: =E2=80=98struct dentry=E2=80=99 =
has no member named =E2=80=98d_alias=E2=80=99
       list_del_init(&dp->d_alias);
                        ^
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.18.7-100.fc2=
0.i686+PAE-SP/afs_daemons.c:404:19: error: =E2=80=98struct dentry=E2=80=99 =
has no member named =E2=80=98d_alias=E2=80=99
       list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
                   ^
/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-3.18.7-100.fc2=
0.i686+PAE-SP/afs_daemons.c:404:7: warning: passing argument 2 of =E2=80=98=
list_add=E2=80=99 from incompatible pointer type [enabled by default]
       list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
       ^
In file included from include/linux/wait.h:6:0,
                 from /var/lib/dkms/openafs/1.6.10-2.fc20/build/src/afs/sys=
includes.h:124,
                 from /var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/=
MODLOAD-3.18.7-100.fc20.i686+PAE-SP/afs_daemons.c:19:
include/linux/list.h:61:20: note: expected =E2=80=98struct list_head *=E2=
=80=99 but argument is of type =E2=80=98struct hlist_head *=E2=80=99
 static inline void list_add(struct list_head *new, struct list_head *head)
                    ^
make[4]: *** [/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/MODLOAD-=
3.18.7-100.fc20.i686+PAE-SP/afs_daemons.o] Error 1
make[3]: *** [_module_/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/libafs/=
MODLOAD-3.18.7-100.fc20.i686+PAE-SP] Error 2
make[3]: Leaving directory `/usr/src/kernels/3.18.7-100.fc20.i686+PAE'
FAILURE: make exit code 2
make[2]: *** [openafs.ko] Error 1
make[2]: Leaving directory `/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/l=
ibafs/MODLOAD-3.18.7-100.fc20.i686+PAE-SP'
make[1]: *** [linux_compdirs] Error 2
make[1]: Leaving directory `/var/lib/dkms/openafs/1.6.10-2.fc20/build/src/l=
ibafs'
make: *** [all] Error 2

--=20
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available