Hi all,
I've managed to build kmod on linux-2.6.23 distributed with archlinux.
I thought it would helpful for the community to share this information,
although archlinux is not vastly popular Linux distribution.
Essentially, the problem was caused by the failure of configure script.
In configure script the "pvfs2-config.h" is generated based upon the series
of tests against the kernel compatibilities.
At least, for the kernel headers in archlinux distribution, the "kernel.h"
includes "stdarg.h", nonetheless, the compatibility tests are attempted
to compile as
gcc -c -Werror-implicit-function-declaration -nostdinc -isystem [header
dirs] ...
According to gcc manual, -nostdinc explicitly excludes the standard system
directories from header search. Hence,
/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include/stdarg.h
cannot be searched by the compiler. This simply triggers the compilation
error
followed by the test failures and "pvfs2-config.h" is not properly
configured
against the kernel sources.
The easy fix is to set the environment variable
CPATH=/usr/lib/gcc/i686-pc-linux-gnu/4.2.2/include
then reconfigure the pvfs2. Following make and make kmod are carried out
with no compilation error.
Since the similar issue does not seem to be reported in the other major
distribution,
I would imagine this is peculiar to archlinux...
Ryuta Suzuki
Department of Aerospace Engineering and Mechanics
University of Minnesota
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users