[OpenAFS-devel] Re: having trouble compiling openafs kernel module in kernel 4.5

Michael Laß lass@mail.upb.de
Fri, 03 Jun 2016 22:34:30 +0200


Am Freitag, den 03.06.2016, 16:27 -0400 schrieb Gary Gatling:
> I'm pretty sure the patch was applied correctly.
> 0003-Linux-4.5-get_link-instead-of-follow_link-put_link.patch
> 
> tar -xvjf openafs-1.6.18-src.tar.bz2
> cd openafs-1.6.18/
> patch -p1 < ../0001-Linux-3.13-Check-return-value-from-bdi_init.patch
> patching file src/afs/LINUX/osi_vfsops.c
> patch -p1 < ../0002-Linux-4.5-no-highmem-in-symlink-ops.patch
> patching file acinclude.m4
> patching file src/afs/LINUX/osi_vnodeops.c
> patch -p1 < ../0003-Linux-4.5-get_link-instead-of-follow_link-
> put_link.patch
> patching file acinclude.m4
> patching file src/afs/LINUX/osi_vnodeops.c
> patch -p1 < ../0005-Linux-4.5-don-t-access-i_mutex-directly.patch
> patching file acinclude.m4
> patching file src/afs/LINUX/osi_compat.h
> patching file src/afs/LINUX/osi_vnodeops.c
> ./configure --with-linux-kernel-headers=/usr/src/kernels/4.5.5-
> 201.fc23.x86_64
> make

There is one important step missing: After applying all the patches you
need to run "./regen.sh -q" which regenerates the configure script.

Cheers,
Michael