On Tue, Jul 06, 2010 at 04:43:26PM +0200, Onno van der Straaten wrote:
> Now the make step fails with
> /home/ostraaten/subversion_export/subversion/libsvn_subr/.libs/libsvn_subr-1.so:
> undefined reference to `apr_hash_do'
> collect2: ld returned 1 exit status
> make: *** [subversion/svn/svn] Error 1
> 
> I think I'm doing the configure step wrong, this is what I now have
> ./configure --with-apr=/home/ostraaten/apr/apr-1.4.2
> --with-apr-util=/home/ostraaten/apr/apr-util-1.3.9
> --with-apxs="/usr/bin/apxs2" --disable-mod-activation
> --with-serf=/usr/local/serf
> 
> with-apr and with-apr-util is probably incorrect but at the moment is
> the only values I found would run. I tried to use my apache2 and the
> installed apr lib (/usr/local/apr/lib) but that wouldn't run.
> 

Try installing libapr-dev and libaprutil-dev packages.
Then you can run:

 ./configure --with-apr=/usr --with-apr-util=/usr
 --with-apxs="/usr/bin/apxs2" --disable-mod-activation
 --with-serf=/usr/local/serf

Maybe the same for serf, if your distribution has serf packages.

Having a single instance of the APR library on your system and
using it to build SVN makes things a lot simpler.

Stefan

Reply via email to