xfs
[Top] [All Lists]

Re: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared

To: Bernhard Erdmann <be@xxxxxxxxxxx>
Subject: Re: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared
From: Nathan Scott <nathans@xxxxxxx>
Date: Thu, 5 Aug 2004 14:46:21 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <410EB73E.9080603@xxxxxxxxxxx>
References: <40FB2417.7030406@xxxxxxxxxxx> <4774.1090202489@xxxxxxxxxxxxxxxxxxxxxx> <20040720015826.A2406645@xxxxxxxxxxxxxxxxxxxxxxxx> <40FDFBF2.7020500@xxxxxxxxxxx> <20040729054638.GK800@frodo> <410B3E47.2030806@xxxxxxxxxxx> <20040802060109.GF21646@frodo> <410EB73E.9080603@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
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/dmapi/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 
> function)
> 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?)...

cheers.

-- 
Nathan


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