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

Re: Trouble compiling using "--with-serf=/home/myUserName/local"

From: Lieven Govaerts <lieven.govaerts_at_gmail.com>
Date: Tue, 23 Jul 2013 18:05:47 +0200

Hi Michael,

On Tue, Jul 23, 2013 at 5:08 PM, Schuh, Michael (ARC-AA)
<michael.schuh_at_nasa.gov> wrote:
[..]
>
> I tried installing APR 1.4.8 to see if it would work better with Serf.
>
> wget http://mirror.reverse.net/pub/apache//apr/apr-1.4.8.tar.bz2
> tar -xf apr-1.4.8.tar.bz2
> cd apr-1.4.8
> ./configure --prefix=/home/mschuh/local
> make install

You should also download, build and install the matching APR-util 1.5.2.
Note that serf and Subversion need to be built with the same version
of apr and apr-util, so you'll have to build serf also.
You can download serf here: https://serf.googlecode.com/files/serf-1.2.1.tar.bz2

> This time, the configure script worked. I tried a build Subversion 1.8.0
> again and ran into another error
> /bin/sh /home/mschuh/src/subversion-1.8.0/libtool --tag=CC --silent
> --mode=compile gcc -std=c89 -I/home/mschuh/local/include -DLINUX
> -D_REENTRANT -D_GNU_SOURCE -g -O2 -g -O2 -pthread -I./subversion/include
> -I./subversion -I/home/mschuh/local/include/apr-1 -I/usr/include/apr-1

Looks like configure has found two include directories for apr, I
assume one is for apr and the other is from apr-util.

hth,

Lieven

> -I/home/mschuh/local//include/serf-1
> -I/home/mschuh/src/subversion-1.8.0/sqlite-amalgamation -o
> subversion/libsvn_subr/cache-membuffer.lo -c
> subversion/libsvn_subr/cache-membuffer.c
> In file included from /home/mschuh/local/include/apr-1/apr_strings.h:52,
> from ./subversion/include/svn_types.h:40,
> from ./subversion/include/svn_pools.h:33,
> from subversion/libsvn_subr/cache-membuffer.c:28:
> /home/mschuh/local/include/apr-1/apr_want.h:95: error: redefinition of
> 'struct iovec'
> In file included from /home/mschuh/local/include/apr-1/apr_file_io.h:29,
> from ./subversion/include/svn_io.h:38,
> from ./subversion/include/svn_config.h:37,
> from ./subversion/include/private/svn_cache.h:37,
> from subversion/libsvn_subr/cache.h:27,
> from subversion/libsvn_subr/cache-membuffer.c:32:
> /home/mschuh/local/include/apr-1/apr_file_info.h:192: error: expected
> specifier-qualifier-list before 'apr_ino_t'
> subversion/libsvn_subr/cache-membuffer.c: In function 'drop_entry':
> subversion/libsvn_subr/cache-membuffer.c:656: error: 'APR_UINT32_MAX'
> undeclared (first use in this function)
> subversion/libsvn_subr/cache-membuffer.c:656: error: (Each undeclared
> identifier is reported only once
> subversion/libsvn_subr/cache-membuffer.c:656: error: for each function it
> appears in.)
> subversion/libsvn_subr/cache-membuffer.c: In function 'insert_entry':
> subversion/libsvn_subr/cache-membuffer.c:725: error: 'APR_UINT32_MAX'
> undeclared (first use in this function)
> subversion/libsvn_subr/cache-membuffer.c: In function
> 'ensure_data_insertable':
> subversion/libsvn_subr/cache-membuffer.c:1018: error: 'APR_UINT32_MAX'
> undeclared (first use in this function)
> subversion/libsvn_subr/cache-membuffer.c: In function
> 'svn_cache__membuffer_cache_create':
> subversion/libsvn_subr/cache-membuffer.c:1243: error: 'APR_UINT32_MAX'
> undeclared (first use in this function)
> make: *** [subversion/libsvn_subr/cache-membuffer.lo] Error 1
>
> Any suggestions on what to do next? Am I close or way far from succesfully
> compiling Subversion? Is there an older version of subversion that might
> with the older apr library? I want to run "svn co
> https://svn.xxx.com/repository" and such.
>
>
>
> Thanks,
>
> Michael
>
>
Received on 2013-07-23 18:06:42 CEST

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