Ok, made it compile. It seems the ./configure script is somehow terribly broken for kernel 2.6.21. To make a long story short, to make it compile I had to edit pvfs2-kernel.h (fastest route) and add

#define HAVE_KZALLOC 1
#define HAVE_XATTR   1
#define HAVE_POSIX_XATTR_ACL_H 1
#define HAVE_LINUX_POSIX_ACL_XATTR_H 1
#define HAVE_COMBINED_AIO_AND_VECTOR 1
#define HAVE_AIO_VFS_SUPPORT 1
#define HAVE_VFSMOUNT_GETSB 1
#define HAVE_LINUX_MOUNT_H 1
#define HAVE_PROC_HANDLER_SIX_ARG 1

In addition to these not being correctly set by ./configure, the pvfs2-proc.c code uses the old
  register_sysctl_table(ctl_table * table, int insert_at_head)
instead of
  register_sysctl_table(ctl_table * table)
so had to fix that one too.

 - Jan

On Fri, 11 May 2007, Jan Wagner wrote:
I'm trying to compile PVFS2 2.6.3 on a 2.6.21 kernel, both mainstream 2.6.21 and 2.6.21 with Playstation 3 patches, but there's a problem with kzalloc. The kzalloc thing is apparently something that was broken in 2.6.2 and fixed in 2.6.3:

http://www.pvfs.org/fisheye/changelog/PVFS/?cs=pvfs-2-6-branch:slang:20070315165204

However, despite that fix (which I checked is really present in the 2.6.3 code I'm trying to compile) there is a compile error:

make[1]: Entering directory `/usr/src/kernel.org-ps3tree'
 CC [M]  /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.o
In file included from /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.c:7: /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-kernel.h:1267: error: conflicting types for ‘kzalloc’ include/linux/slab_def.h:55: error: previous definition of ‘kzalloc’ was here /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.c: In function ‘pvfs2_inode_removexattr’: /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.c:1007: error: ‘XATTR_REPLACE’ undeclared (first use in this function) /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.c:1007: error: (Each undeclared identifier is reported only once /usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.c:1007: error: for each function it appears in.)
make[2]: *** [/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-utils.o] Error 1
make[1]: *** [_module_/usr/src/pvfs-2.6.3/src/kernel/linux-2.6] Error 2
make[1]: Leaving directory `/usr/src/kernel.org-ps3tree'

thanks,
- Jan
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to