Hello all.
I am trying to compile the latest CVS on
a Red Hat 6.2 Linux box, but apr does not
seem to want to compile. Is there an APR
list that I should report such problems
to?
The problem I am running into is:
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.
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
Received on Sat Oct 21 14:36:17 2006