apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mo DeJong <mdej...@cygnus.com>
Subject Re: Problems compiling apr on Linux
Date Wed, 13 Dec 2000 04:26:15 GMT
On 12 Dec 2000, Jeff Trawick wrote:

> Mo DeJong <mdejong@cygnus.com> writes:
> > 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'
> What is APR_HAVE_IPV6 set to in your copy of the generated file apr.h?
> It is supposed to always be set to 0 or 1, hence the "#if
> APR_HAVE_IPV6" syntax instead of "#ifdef APR_HAVE_IPV6" syntax.
> On my RedHat 6.0 system it is set to 1 in apr.h.  I am guessing that
> it is set to some bogus value on your system (like @have_ipv6@ or
> similar, indicating that something bad happened during configure).

Yup, that looks like the problem.

#define APR_HAVE_MEMMOVE        1
#define APR_HAVE_BZERO          1
#define APR_HAVE_IPV6           @have_ipv6@

I reran autoconf, did a ./config.status --recheck ; ./config.status
and now the problem seems to have fixed itself.

Of course, now I am seeing another error:

gcc -DLINUX=2 -pthread  -D_REENTRANT  -c -I../include 
-I../include/arch/unix apr_md5.c
apr_md5.c: In function `apr_validate_password':
apr_md5.c:675: warning: assignment makes pointer from integer without a cast
gcc -DLINUX=2 -pthread  -D_REENTRANT  -c -I../include 
-I../include/arch/unix apr_getpass.c
apr_getpass.c: In function `getpass':
apr_getpass.c:107: `stderr' undeclared (first use in this function)
apr_getpass.c:107: (Each undeclared identifier is reported only once
apr_getpass.c:107: for each function it appears in.)
make[1]: *** [apr_getpass.o] Error 1

I am not sure if this patch is correct, but it seems
to fix this compile problem for me.

Index: apr_getpass.c
RCS file: /home/cvspublic/apr/passwd/apr_getpass.c,v
retrieving revision 1.4
diff -u -r1.4 apr_getpass.c
--- apr_getpass.c       2000/12/02 12:06:03     1.4
+++ apr_getpass.c       2000/12/13 04:09:53
@@ -74,6 +74,10 @@
 #include <stdlib.h>
+#include <stdio.h>      /* for stderr */
 #if defined(HAVE_TERMIOS_H) && !defined(HAVE_GETPASS)
 #include <termios.h>

After that, I am seeing this new error:

gcc -DLINUX=2 -pthread  -D_REENTRANT  -c -I../../include 
-I../../include/arch/unix -I../../include/arch/unix dir.c
dir.c: In function `apr_dir_entry_size':
dir.c:168: storage size of `filestat' isn't known

Mo DeJong
Red Hat Inc

View raw message