On Mon, Aug 02, 2004 at 11:50:54PM +0200, Bernhard Erdmann wrote:
> Nathan Scott wrote:
> >Does adding #include <asm/mman.h> (in xfsprogs/io/mmap.c) get
> >a working build for you or do you see subsequent errors too?
> gcc -O1 -g -DDEBUG -funsigned-char -Wall -I../include
> -DVERSION=\"2.6.19\" -DLOCALEDIR=\"/usr/share/locale\"
> -DPACKAGE=\"xfsprogs\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -DHAVE_FADVISE -DHAVE_SENDFILE -DHAVE_INJECT -DHAVE_RESBLKS
> -DHAVE_SHUTDOWN -I/usr/local/src/xfs-cmds/xfsprogs/include
> -I/usr/local/src/xfs-cmds/attr/include -c -o fadvise.o fadvise.c
> fadvise.c: In function `fadvise_f':
> fadvise.c:91: `POSIX_FADV_NORMAL' undeclared (first use in this function)
> fadvise.c:91: (Each undeclared identifier is reported only once
> fadvise.c:91: for each function it appears in.)
> fadvise.c:96: `POSIX_FADV_DONTNEED' undeclared (first use in this function)
> fadvise.c:100: `POSIX_FADV_NOREUSE' undeclared (first use in this function)
> fadvise.c:104: `POSIX_FADV_RANDOM' undeclared (first use in this function)
> fadvise.c:108: `POSIX_FADV_SEQUENTIAL' undeclared (first use in this
> fadvise.c:112: `POSIX_FADV_WILLNEED' undeclared (first use in this function)
Ugh, this is going to take some autoconf/configure work to avoid
compiling these files entirely I think. Or you could upgrade to
a more recent distribution (did you say Redhat 6.2?)...