Sam Lang napsal(a):
On Apr 9, 2010, at 1:28 PM, Jiri Kortus wrote:
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
Sam,
thanks for your fast response. Now that I looked in the config.log file,
there is some non-trivial trouble. The file itself has approx. 1 MB, so
I considered it's better not to put it in the mail - it can be found at
http://charon.styxx.cz/tmp/config.log.
Would you be so kind as to suggest a way to go to be able to use PVFS+pNFS?
The problem is that it's part of my bachelor's thesis (I should install
pNFS and make it work with different layouts and also with PVFS,
describe the installation, test performance with different
configurations etc. and describe problems encountered). The main goal is
to explore in which stage of development pNFS (and here with PVFS) is
from the point of view of functionality/stability and performance, even
if it's still experimental (it doesn't mean it's necessary to deploy it
in production environment right now).
Should I try some older version of PVFS along with older kernel?
Unfortunately my programming skills and time don't allow me to update
the patches :(
Thanks
Jiri
Jiri,
It looks like the kernel configure checks are failing badly. You
should post your config.log. FYI, you're going to have more trouble
than just fixing the config checks -- the pNFS patches for PVFS have
not been updated for a long time, and a lot has changed in both pNFS
and PVFS. If you're interested in updating the patches, we can try to
help you figure out what to do from the PVFS side.
-sam
/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
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers