On Mon, Apr 23, 2007 at 02:23:11PM -0700, David Brown wrote:
> Okay I think I found a bug in the configure script not sure how to get
> rid of it.

Thanks for the report.  Since we don't have rhel5 installed anywhere
(yet) these notes are quite helpful.


> <config.log>
> configure:9200: checking if get_sb callback in kernel has struct
> vfsmount argument
> configure:9231: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4
> -Werror-implicit-function-declaration -nostdinc -isystem
> /usr/lib/gcc/ia64-redhat-linux/4.1.1/include
> -I/lib/modules/2.6.18-8.1.1.el5/build/include
> -I/lib/modules/2.6.18-8.1.1.el5/build/include/asm-i386/mach-generic
> -I/lib/modules/2.6.18-8.1.1.el5/build/include/asm-i386/mach-default
> -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty)
> -DKBUILD_MODNAME=KBUILD_STR(empty) -imacros
> /lib/modules/2.6.18-8.1.1.el5/build/include/linux/autoconf.h -Werror
> -Wno-pointer-sign  conftest.c >&5

This -Wno-pointer-sign was added to turn off a different warning in
fedora kernel headers.  Looks like in this case we should also add
-Wno-strict-aliasing and maybe even -Wno-strict-aliasing=2.  
 
> So this almost seems like the rhel5 2.6.18 headers are needing a fix
> but they technically are warnings, so redhat probably doesn't care so
> much quite yet.  Is there anyway to stop configure from passing
> -Werror to all its checks? I'm not finding -Werror in configure.in
> anywhere...

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. 

Thanks
==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Lab, IL USA                 B29D F333 664A 4280 315B
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to