xfs
[Top] [All Lists]

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

To: linux-xfs@xxxxxxxxxxx
Subject: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared
From: Bernhard Erdmann <be@xxxxxxxxxxx>
Date: Mon, 19 Jul 2004 03:29:59 +0200
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; IRIX64 IP30; en-US; rv:1.6) Gecko/20040505
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'
gmake[2]: *** [mmap.o] Error 1
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/local/src/xfs-cmds/xfsprogs'


acl and attr have been build before by the makefile without any errors.


Logs/configure is:

make[1]: Entering directory `/usr/local/src/xfs-cmds/xfsprogs'
autoconf
./configure \
--prefix=/ \
--exec-prefix=/ \
--sbindir=/sbin \
--bindir=/usr/sbin \
--libdir=/lib \
--libexecdir=/usr/lib \
--includedir=/usr/include \
--mandir=/usr/share/man \
--datadir=/usr/share \
$LOCAL_CONFIGURE_OPTIONS
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gmake... /usr/bin/gmake
checking for glibtool... no
checking for libtool... /usr/bin/libtool
checking for tar... /bin/tar
checking for gzip... /bin/gzip
checking for makedepend... /usr/X11R6/bin/makedepend
checking for awk... /bin/awk
checking for sed... /bin/sed
checking for echo... /bin/echo
checking for sort... /bin/sort
checking whether ln -s works... yes
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for rpm... /bin/rpm
checking for rpmbuild... /usr/bin/rpmbuild
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking uuid.h usability... no
checking uuid.h presence... no
checking for uuid.h... no
checking sys/uuid.h usability... no
checking sys/uuid.h presence... no
checking for sys/uuid.h... no
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking for uuid_compare... no
checking for uuid_compare in -luuid... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_mutex_init in -lpthread... yes
checking for __psint_t ... no
checking for __psunsigned_t ... no
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
configure: creating ./config.status
config.status: creating include/builddefs
config.status: creating include/platform_defs.h
touch .census
make[1]: Leaving directory `/usr/local/src/xfs-cmds/xfsprogs'


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