[Pvfs2-developers] Fedora 7 patches and build log
David Brown
dmlb2000 at gmail.com
Wed Jun 6 14:08:45 EDT 2007
Okay haven't tested this yet as a whole working file system yet, but
it builds and modprobes successfully without bringing down the box...
so here's some of the patches I had to use to make it work.
Fedora 7 is some flavor of 2.6.21 heavily modified as redhat can't
seem to keep things simple...
I think I posted this patch before but here's the rendition I used for fc7
The ${CFLAGS/-O2/} is a bashism and should probably get replaced but
it worked removing the -O2 from the current CFLAGS that rpmbuild loves
to throw in there.
=====================
--- a/maint/config/kernel.m4
+++ b/maint/config/kernel.m4
@@ -352,7 +352,7 @@ AC_DEFUN([AX_KERNEL_FEATURES],
dnl certain Fedora FC5 kernel header files throw extra (spurious)
dnl warnings, which -Wno-pointer-sign silences.
tmp_cflags=$CFLAGS
- CFLAGS="$CFLAGS -Werror -Wno-pointer-sign"
+ CFLAGS="${CFLAGS/-O2/} -Wno-strict-aliasing
-Wno-strict-aliasing=2 -Werror -Wno-pointer-sign"
dnl if this test passes, there is a struct dentry* argument
AC_MSG_CHECKING(if statfs callbacks' arguments in kernel has
struct dentry argument)
dnl if this test passes, the kernel has it
=====================
However, this is one that you might want to check out I haven't tried
debian unstable 2.6.21 yet but I'm betting this will need to be
applied there.
======================
--- a/src/kernel/linux-2.6/pvfs2-proc.c 2007-06-06 10:47:00.000000000 -0700
+++ b/src/kernel/linux-2.6/pvfs2-proc.c 2007-06-06 10:47:07.000000000 -0700
@@ -337,7 +337,7 @@
#ifdef CONFIG_SYSCTL
if (!fs_table_header)
{
- fs_table_header = register_sysctl_table(fs_table, 0);
+ fs_table_header = register_sysctl_table(fs_table);
}
#endif
========================
The build log shows a bunch of warnings especially in the kernel
module build section... not sure if this is part of the CFLAGS that
rpmbuild throws in or what.
Thanks,
- David Brown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvfs2-build.log
Type: text/x-log
Size: 57739 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20070606/1f7e0b04/pvfs2-build-0001.bin
More information about the Pvfs2-developers
mailing list