Hello,
I'm trying to compile PVFS server and PVFS kernel module to make it work
with pNFS as described in this guide
http://www.citi.umich.edu/projects/asci/pnfs/docs/pnfspvfs2.html. I'm
using Debian 5.0.4 with kernel 2.6.33-rc6 with pNFS patch and I
downloaded PVFS 2.8.2. I compiled the server and tried to compile the
module by performing the following commands:
./configure -with-kernel=/lib/modules/2.6.33-rc6-pnfs-dist/build
-prefix=/usr/local/bin/pvfs2-server
make && make install
make KBUILD_SRC=/lib/modules/2.6.26-2-686/build kmod_install
The server builded just fine, however when I tried to build the module,
I got the following errors:
CC [M] /root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.o
In file included from /root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:7:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-kernel.h:1285: error:
conflicting types for ‘kzalloc’
include/linux/slab.h:313: note: previous definition of ‘kzalloc’ was here
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c: In function
‘pvfs2_gen_credentials’:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:26: error: ‘struct
task_struct’ has no member named ‘fsuid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:27: error: ‘struct
task_struct’ has no member named ‘fsgid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c: In function
‘pvfs2_inode_getxattr’:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:777: error: ‘struct
task_struct’ has no member named ‘fsuid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:778: error: ‘struct
task_struct’ has no member named ‘fsgid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c: In function
‘pvfs2_inode_removexattr’:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1048: error:
‘XATTR_REPLACE’ undeclared (first use in this function)
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1048: error: (Each
undeclared identifier is reported only once
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1048: error: for
each function it appears in.)
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c: In function
‘pvfs2_create_file’:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1221: error: ‘struct
task_struct’ has no member named ‘fsuid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1221: error: ‘struct
task_struct’ has no member named ‘fsgid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c: In function
‘pvfs2_create_dir’:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1308: error: ‘struct
task_struct’ has no member named ‘fsuid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1308: error: ‘struct
task_struct’ has no member named ‘fsgid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c: In function
‘pvfs2_create_symlink’:
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1402: error: ‘struct
task_struct’ has no member named ‘fsuid’
/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.c:1402: error: ‘struct
task_struct’ has no member named ‘fsgid’
make[3]: *** [/root/pvfs-2.8.2/src/kernel/linux-2.6/pvfs2-utils.o] Error 1
make[2]: *** [_module_/root/pvfs-2.8.2/src/kernel/linux-2.6] Error 2
make[1]: *** [default] Error 2
make: *** [just_kmod] Error 2
which is exactly the same as was already discussed in the mailing list
at
http://www.beowulf-underground.org/pipermail/pvfs2-developers/2010-February/004518.html
(I'm sorry I'm not replying to the original thread, but I don't know how
to do it :() - I'm not sure though whether I got right the advice
provided ("Can you see if pointing pvfs at the the
/lib/modules/2.6.32.2/build directory fixes the problem?") - maybe I'm
wrong, but I suppose that means passing the KBUILD_SRC option when doing
"make kmod_install"? Or have I got it wrong or do I make something wrong?
Thanks for any advice.
Regards,
Jiri Kortus
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers