apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mo DeJong <mdej...@cygnus.com>
Subject Problems compiling apr on Linux
Date Wed, 13 Dec 2000 02:01:04 GMT
Hi all.

I tried to compile apr under Linux (Red Hat 6.2)
today, but it failed with the following error:

make[1]: Entering directory `/usr/local/project/subversion/apr/lib'
gcc -DLINUX=2 -pthread  -D_REENTRANT  -c -I../include 
-I../include/arch/unix -I../include/arch/unix apr_pools.c
In file included from ../include/apr_portable.h:70,
                 from apr_pools.c:65:
../include/apr_network_io.h:127: parse error
../include/apr_network_io.h:175: parse error
make[1]: *** [apr_pools.o] Error 1
make[1]: Leaving directory `/usr/local/project/subversion/apr/lib'


This patch should fix it. At least, it did for me.


Index: include/apr_network_io.h
===================================================================
RCS file: /home/cvspublic/apr/include/apr_network_io.h,v
retrieving revision 1.88
diff -u -r1.88 apr_network_io.h
--- include/apr_network_io.h    2000/12/07 18:10:25     1.88
+++ include/apr_network_io.h    2000/12/13 00:36:41
@@ -124,7 +124,7 @@
 #else
 #define APR_UNSPEC   0
 #endif
-#if APR_HAVE_IPV6
+#ifdef APR_HAVE_IPV6
 #define APR_INET6    AF_INET6
 #endif
 
@@ -172,7 +172,7 @@
     union {
         /** IPv4 sockaddr structure */
         struct sockaddr_in sin;
-#if APR_HAVE_IPV6
+#ifdef APR_HAVE_IPV6
         /** IPv6 sockaddr structure */
         struct sockaddr_in6 sin6;
 #endif

cheers
Mo DeJong
Red Hat Inc



Mime
View raw message