Take a look at maint/config/kernel.m4, and search for 'struct dentry'.
Add those two -Wno-pointer... flags after -Wno-pointer-sign, run
'prepare' to re-generate the configure scripts, and see if that helps
things.
Let us know how that goes. A more general solution needs to take into
account the fact that some older gccs don't have those warning flags.
Yup that's works great
diff --git a/maint/config/kernel.m4 b/maint/config/kernel.m4
index 5c527d5..f287d29 100644
--- 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 -Werror -Wno-pointer-sign -Wno-strict-aliasing
-Wno-strict-aliasing=2"
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
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers