-
Notifications
You must be signed in to change notification settings - Fork 178
Can't compile with 3.1 kernel (Ubuntu x86_64) #48
Comments
Linux 3.1 is not yet published by Ubuntu and is unlikely to appear until after the Oneiric release. 3.0.0-10.16 is the latest version. How did you install the 3.1 kernel? Local, kpkg, or some other way? Did you use the Ubuntu 3.0 config file to compile it? |
I have get it here http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.1-rc4-oneiric/ |
For the moment you could just comment out the offending code. It's just part of the debug subsystem which is disabled unless your doing development or chasing a bug. Once 3.1 is officially released we'll certain run down any lingering compatibility issues. |
Similar problems in other files too after commenting out the code in spl-debug.c /var/lib/dkms/spl/0.6.0.31/build/module/spl/../../module/spl/spl-vnode.c:319:2: error: implicit declaration of function ‘path_lookup’ [-Werror=implicit-function-declaration] |
Saw this in config.log, and wanted to share what I found since it seems related to this report. configure:19623: cp conftest.c build && make modules -C /lib/modules/3.0.0/build EXTRA_CFLAGS=-Werror-implicit-function-declaration M=/root/spl-0.6.0-rc5/build looks like fsync went from 3 to 2 args as of 2.6.34, and the config has been unable to detect it since file_fsync disappeared from buffer_head.h in 2.6.36. It works in newer kernels just because it happens to default to 2 args. Now in 3.1 it looks like fsync is 4 args. So not only do we need to add a third definition for spl_filp_fsync with 4 args, but the test will need to be adjusted to use something other than file_fsync. Hope this helps. |
Kernel 3.1 released, but still can't compile SPL with it ( |
Seconded. Using Gentoo. |
Now that 3.1's out and the interfaces have stabilized we'll get support for it in to the next release candidate. |
Closing as duplicate of issue #52. |
Can't compile the SPL and ZFS kernel modules with 3.1-rc4 kernel (Ubuntu):
CC [M] /var/lib/dkms/spl/0.6.0.31/build/module/spl/../../module/spl/spl-debug.o
/var/lib/dkms/spl/0.6.0.31/build/module/spl/../../module/spl/spl-debug.c: In function ‘spl_debug_dump_all_pages’:
/var/lib/dkms/spl/0.6.0.31/build/module/spl/../../module/spl/spl-debug.c:963:9: error: too few arguments to function ‘filp->f_op->fsync’
The text was updated successfully, but these errors were encountered: