Hi,
I'm trying to build the current version of xfsprogs (2.6.24) on a RHL
6.2 box. "make" fails. xfsprogs 2.6.19 or 2.6.21 (don't know anymore)
was compiled cleanly.
gcc -O1 -g -DDEBUG -funsigned-char -fno-strict-aliasing -Wall
-DVERSION=\"2.6.24\" -DLOCALEDIR=\"/usr/share/locale\"
-DPACKAGE=\"xfsprogs\" -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DHAVE_FADVISE -DHAVE_MINCORE -DHAVE_INJECT -DHAVE_RESBLKS
-DHAVE_SHUTDOWN -c -o fadvise.o fadvise.c
fadvise.c: In function `fadvise_f':
fadvise.c:71: `POSIX_FADV_NORMAL' undeclared (first use in this function)
fadvise.c:71: (Each undeclared identifier is reported only once
fadvise.c:71: for each function it appears in.)
fadvise.c:76: `POSIX_FADV_DONTNEED' undeclared (first use in this function)
fadvise.c:80: `POSIX_FADV_NOREUSE' undeclared (first use in this function)
fadvise.c:84: `POSIX_FADV_RANDOM' undeclared (first use in this function)
fadvise.c:88: `POSIX_FADV_SEQUENTIAL' undeclared (first use in this
function)
fadvise.c:92: `POSIX_FADV_WILLNEED' undeclared (first use in this function)
fadvise.c:122: warning: implicit declaration of function `posix_fadvise64'
gmake[1]: *** [fadvise.o] Error 1
make: *** [default] Error 2
|