[OpenAFS-devel] Openafs master kernel module does not build under Oracle Linux 3.8 unbreakable

Karl Behler karl.behler@ipp.mpg.de
Thu, 22 Jan 2015 12:53:20 +0100


Dear All,

we try to build openafs 1.6.10 or alternatively openafs master on our 
Oracle Linux platform.
Linux lxaug27.aug.ipp.mpg.de 3.8.13-55.1.2.el6uek.x86_64 #2 SMP Thu Dec 
18 00:15:51 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

We cloned the openafs master repository and started the build process 
for branch openafs-stable-1_6_x as well as for master.
But make fails with:

   CC [M]  /home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.o
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c: In function 'afs_linux_read_iter':
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c:139: error: too few arguments to function 'generic_file_read_iter'
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c: In function 'afs_linux_write_iter':
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c:224: error: too few arguments to function 'generic_file_write_iter'
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c: At top level:
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c:820: warning: initialization from incompatible pointer type
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c:821: warning: initialization from incompatible pointer type
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c:822: error: 'new_sync_read' undeclared here (not in a function)
/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.c:823: error: 'new_sync_write' undeclared here (not in a function)
make[6]: *** [/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP/osi_vnodeops.o] Error 1
make[5]: *** [_module_/home/kcb/src/openafs/gitclone150121/openafs/src/libafs/MODLOAD-3.8.13-55.1.2.el6uek.x86_64-MP] Error 2
make[5]: Leaving directory `/usr/src/kernels/3.8.13-55.1.2.el6uek.x86_64'
FAILURE: make exit code 2

and in fact looking at osi_vnodeops.c:139 yields

code = generic_file_read_iter(iocb, iter);

while /usr/src/kernels/3.8.13-55.1.2.el6uek.x86_64/include/linux/fs.h 
contains

extern ssize_t generic_file_read_iter(struct kiocb *, struct iov_iter *,
                 loff_t);

However, there seem to be more incompatibilities as the messages say. So 
we stopped our analysis here.

Any idea what might be wrong with our kernel or our build trial?

Any advice appreciated.

Best regards,

Karl

-- 
Dr. Karl Behler	
CODAC & IT services ASDEX Upgrade
phon +49 89 3299-1351 fax 3299-961351