On Mon, 19 Jul 2004 03:29:59 +0200,
Bernhard Erdmann <be@xxxxxxxxxxx> wrote:
>Hi,
>
>when trying to build the current CVS version of xfsprogs using "make" in
>xfs-cmds an error occurs:
>
>[...]
>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 mmap.o mmap.c
>mmap.c: In function `madvise_f':
>mmap.c:627: `MADV_NORMAL' undeclared (first use in this function)
>mmap.c:627: (Each undeclared identifier is reported only once
>mmap.c:627: for each function it appears in.)
>mmap.c:633: `MADV_DONTNEED' undeclared (first use in this function)
>mmap.c:636: `MADV_RANDOM' undeclared (first use in this function)
>mmap.c:639: `MADV_SEQUENTIAL' undeclared (first use in this function)
>mmap.c:642: `MADV_WILLNEED' undeclared (first use in this function)
>mmap.c: In function `mincore_f':
>mmap.c:729: warning: implicit declaration of function `mincore'
All defined in mman.h. Try adding #include <sys/mman.h> after the
other includes in mmap.c.
|