xfs
[Top] [All Lists]

building xfsprogs (CVS): fadvise.c:71: `POSIX_FADV_NORMAL' undeclared (f

To: linux-xfs@xxxxxxxxxxx
Subject: building xfsprogs (CVS): fadvise.c:71: `POSIX_FADV_NORMAL' undeclared (first use in this function)
From: Bernhard Erdmann <be@xxxxxxxxxxx>
Date: Thu, 07 Oct 2004 23:43:05 +0200
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040930
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


<Prev in Thread] Current Thread [Next in Thread>