[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: Schuh, Michael (ARC-AA) <michael.schuh_at_nasa.gov>
Date: Wed, 24 Jul 2013 00:43:14 +0000

Thank Lieven for the help. It turns out that commenting out the apr_socket_addr_get call in serf as Philip suggested worked for one server but not the server I needed most. I used your advice to get it to work. Here is a description of what I did in case it will help anyone else that might bump into the same problem.

I really need the svn cliet to work through an ssh tunnel to an https server. In one window I do "ssh -L 1443:svn.machine.gov:443 frontend22.machine.gov" and in another I would try and check out a repository and get a "503 Service Temporarily Unavailable" error. The odd thing about it was that the "svn co" call would check everything (.svn etc) out but the two files in the 20130529_51A_circularStruts directory.

[mschuh@aaron]# svn co https://localhost:1443/people/mschuh/trunk/projects/51A/20130529_ 51A_circularStruts .
Password for 'mschuh': ********************

svn: E175002: REPORT request on '/people/!svn/vcc/default' failed: 503 Service Temporarily Unavailable

Here are the steps I followed:

> 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

wget http://mirror.olnevhost.net/pub/apache//apr/apr-util-1.5.2.tar.bz2
tar -xf apr-util-1.5.2.tar.bz2
cd apr-util-1.5.2
./configure --prefix=/home/mschuh/local --with-apr=/home/mschuh/local
make install

head cofig.log
head config.log
cd /home/mschuh/src/serf-1.2.1
./configure --prefix=/home/mschuh/local --with-apr=/home/mschuh/local --with-apr-util=/home/mschuh/local
make clean
make install
cd ..

tar -xf subversion-1.8.0.tar.gz
cd subversion-1.8.0
unzip ../sqlite-amalgamation-3071501.zip
mv sqlite-amalgamation-3071501 sqlite-amalgamation
./configure --help
./configure --prefix=/home/mschuh/local --with-apr=/home/mschuh/local --with-apr-util=/home/mschuh/local --with-serf=/home/mschuh/local --without-berkeley-db
make install

Thanks again for all of the help,
   Michael

-----Original Message-----
From: Lieven Govaerts [mailto:lieven.govaerts_at_gmail.com]
Sent: Tuesday, July 23, 2013 9:06 AM
To: Schuh, Michael (ARC-AA)
Cc: Philip Martin; dev_at_subversion.apache.org
Subject: Re: Trouble compiling using "--with-serf=/home/myUserName/local"

Hi Michael,

On Tue, Jul 23, 2013 at 5:08 PM, Schuh, Michael (ARC-AA) <michael.schuh_at_nasa.gov<mailto: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<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-24 02:43:48 CEST

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.