[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem compiling: PROT_WRITE etc undeclared

From: <peter.westlake_at_arm.com>
Date: 2001-10-16 18:10:10 CEST

I'm getting errors when compiling on RedHat Linux 6.2 (with compiler
Neither the Issues database nor the dev list has anything about this that I
could find.


bash$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/specs
gcc version 2.95.1 19990816/Linux (release)
bash$ uname -a
Linux twooflinux 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
bash$ make


make[3]: Entering directory
/bin/sh /home/pwestlak/svn/subversion-r202/apr/libtool --silent
--mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT
-DAPR_ASSERT_MEMORY -I../../include -I../../include/arch/unix -c mmap.c
&& touch mmap.lo
mmap.c: In function `mmap_cleanup':
mmap.c:94: warning: implicit declaration of function `munmap'
mmap.c: In function `apr_mmap_create':
mmap.c:145: `PROT_WRITE' undeclared (first use in this function)
mmap.c:145: (Each undeclared identifier is reported only once
mmap.c:145: for each function it appears in.)
mmap.c:148: `PROT_READ' undeclared (first use in this function)
mmap.c:151: warning: implicit declaration of function `mmap'
mmap.c:151: `MAP_SHARED' undeclared (first use in this function)
mmap.c:151: warning: assignment makes pointer from integer without a cast
make[3]: *** [mmap.lo] Error 1
make[3]: Leaving directory
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pwestlak/svn/subversion-r202/apr'
make: *** [external-all] Error 1

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:44 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.