[OpenAFS] OpenAFS kernel module compilation problems

Eric Frost eric@ericfrost.org
Sat, 28 Jun 2014 19:20:59 -0500


This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--2ax8LXxUqrjkenkBP4nSQ1HAbkKaTbt4k
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hello,

I've been using AFS on my home network for fun and decided to try to set
up a Raspberry Pi to use it. I've run into some issues compiling the
module with dkms.

It seems the latest version is 1.6.1-3+deb7u2 in the repository. I know
this isn't the latest source but for the experiment it'd suffice. I have
a few kernels and sources on the machine, 3.2.51, 3.6.9, 3.10.11, and
3.12.22.

On all versions but 3.2 the compile fails:

<snip>

  CC [M]
/var/lib/dkms/openafs/1.6.1/build/src/libafs/MODLOAD-3.10-3-rpi-SP/rx_kmu=
tex.o
In file included from
/var/lib/dkms/openafs/1.6.1/build/src/afs/sysincludes.h:131:0,
                 from
/var/lib/dkms/openafs/1.6.1/build/src/rx/rx_kcommon.h:145,
                 from
/var/lib/dkms/openafs/1.6.1/build/src/libafs/MODLOAD-3.10-3-rpi-SP/rx_kmu=
tex.c:20:
/usr/src/linux-headers-3.10-3-common/include/linux/backing-dev.h:117:3:
warning: =91printk=92 is an unrecognized format function type [-Wformat]
In file included from
/var/lib/dkms/openafs/1.6.1/build/src/libafs/MODLOAD-3.10-3-rpi-SP/rx_kmu=
tex.c:24:0:
/var/lib/dkms/openafs/1.6.1/build/src/afs/LINUX/osi_compat.h: In
function =91afs_linux_search_keyring=92:
/var/lib/dkms/openafs/1.6.1/build/src/afs/LINUX/osi_compat.h:184:13:
error: =91afs_ucred_t=92 has no member named =91tgcred=92
/var/lib/dkms/openafs/1.6.1/build/src/afs/LINUX/osi_compat.h:186:26:
error: =91afs_ucred_t=92 has no member named =91tgcred=92
/var/lib/dkms/openafs/1.6.1/build/src/afs/LINUX/osi_compat.h: In
function =91afs_get_fh_from_dentry=92:
/var/lib/dkms/openafs/1.6.1/build/src/afs/LINUX/osi_compat.h:336:9:
warning: passing argument 1 of =91dp->d_sb->s_export_op->encode_fh=92 fro=
m
incompatible pointer type [enabled by default]
/var/lib/dkms/openafs/1.6.1/build/src/afs/LINUX/osi_compat.h:336:9:
note: expected =91struct inode *=92 but argument is of type =91struct den=
try *=92
make[6]: ***
[/var/lib/dkms/openafs/1.6.1/build/src/libafs/MODLOAD-3.10-3-rpi-SP/rx_km=
utex.o]
Error 1
make[5]: ***
[_module_/var/lib/dkms/openafs/1.6.1/build/src/libafs/MODLOAD-3.10-3-rpi-=
SP]
Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-3.10-3-rpi'
make[2]: *** [openafs.ko] Error 2
make[2]: Leaving directory
`/var/lib/dkms/openafs/1.6.1/build/src/libafs/MODLOAD-3.10-3-rpi-SP'
make[1]: *** [linux_compdirs] Error 2
make[1]: Leaving directory `/var/lib/dkms/openafs/1.6.1/build/src/libafs'=

make: *** [all] Error 2

I can't seem to find in the documentation where openafs-1.6.whatever
will work with whatever kernel. Is there some information on this? I
don't mind compiling the source but in order to avoid conflicts it'd be
helpful to have it be a debianized package and that's way out of scope
for me.  Any help would be appreciated.

Thanks,
Eric


--2ax8LXxUqrjkenkBP4nSQ1HAbkKaTbt4k
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlOvW+sACgkQ56qpdArkhRDVagCfSkc6veh1kPTKwRCzbnnE98MP
vJ0An0X8J6h4CQb8vi3OtHnKQZWYfKNF
=+zcH
-----END PGP SIGNATURE-----

--2ax8LXxUqrjkenkBP4nSQ1HAbkKaTbt4k--