[Pvfs2-users] Re: pvsf2.6.3 and kzalloc detect broken in kernel
2.6.21?
Sam Lang
slang at mcs.anl.gov
Fri May 11 10:49:41 EDT 2007
On May 11, 2007, at 4:38 AM, Jan Wagner wrote:
>
> 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
>
It looks like configure isn't correctly defining __powerpc64__, so a
bunch of the kernel feature checks fail due to undefined errors.
Unfortunately it doesn't work to set it by hand (CFLAGS=-
D__powerpc64__), because that causes the check for aio to break. I
don't know that there's a clean workaround for this at the
moment...it seems like the powerpc64 headers in 2.6.21 aren't cleanly
defined, but maybe we just need to add the right include path.
> 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.
Yep we're aware of that one. Thanks for the report!
-sam
>
> - 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
> Pvfs2-users at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
More information about the Pvfs2-users
mailing list