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

Re: Problem with compiling subversion server on linux

From: David Kimdon <dwhedon_at_debian.org>
Date: 2003-02-28 05:23:10 CET

On Thu, Feb 27, 2003 at 01:18:20PM +0100, marc.eggenberger@itc.alstom.com wrote:
> Hi there ...
> hope this ML is ok for my questions.
> I try to build subversion server on my Suse Linux 8.1 with kernel
> 2.4.19-4GB. I followed the steps in
> http://svn.collab.net/repos/svn/trunk/INSTALL
> Apache 2.0.44 is installed with web-dav and other options as described in
> the INSTALL file ...
> I do a ./autogen.sh and then a
> ./configure --with-neon=/usr/local/neon
> I get this error:
> cd subversion/clients/cmdline && /bin/sh /usr/src/svn/libtool --silent
> --mode=link gcc -g -O2 -pthread
> -L/usr/src/httpd/srclib/apr-util/usr/local/apache2/lib -rpath
> /usr/local/lib -o svn add-cmd.o cat-cmd.o checkout-cmd.o cleanup-cmd.o
> commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o feedback.o
> help-cmd.o import-cmd.o info-cmd.o log-cmd.o ls-cmd.o main.o merge-cmd.o
> mkdir-cmd.o move-cmd.o prompt.o propdel-cmd.o propedit-cmd.o propget-cmd.o
> proplist-cmd.o props.o propset-cmd.o resolve-cmd.o revert-cmd.o
> status-cmd.o status.o switch-cmd.o update-cmd.o util.o
> ../../../subversion/libsvn_client/libsvn_client-1.la
> ../../../subversion/libsvn_wc/libsvn_wc-1.la
> ../../../subversion/libsvn_ra/libsvn_ra-1.la
> ../../../subversion/libsvn_delta/libsvn_delta-1.la
> ../../../subversion/libsvn_subr/libsvn_subr-1.la
> ../../../subversion/libsvn_auth/libsvn_auth-1.la
> /usr/local/apache2/lib/libaprutil-0.la -ldb-4.0
> /usr/src/httpd/srclib/apr-util-lexpat /usr/local/apache2/lib/libapr-0.la
> -lm -lcrypt -lnsl -ldl -L/usr/local/neon/lib -lneon -lxml2 -lz -lm
> -L/usr/X11R6/lib
> gcc: /usr/src/httpd/srclib/apr-util-lexpat: No such file or directory
> make: *** [subversion/clients/cmdline/svn] Error 1
> this does not exists as it says ... do I have to use some other apr source?
> Thanks for any hints

In general, it is helpful for you to specify which version of
subversion you are using.

All I have is hints, you will have to do some poking around on your
system to find the real culprit:

 - '/usr/src/httpd/srclib/apr-util-lexpat' probably shouldn't exist,
   something has created a bogus link line for you, probably a broken
   aprutil install. You will find the variable SVN_APRUTIL_LIBS
   defined in Makefile and used in build-outputs.mk. On my system the
   variable is defined as:
SVN_APRUTIL_LIBS = /usr/lib/libaprutil.la -lldap -llber -lgdbm -ldb -lexpat

The variable is set like so:

SVN_APRUTIL_LIBS="`$apu_config --link-libtool --libs`"

(that line is in ac-helpers/aprutil.m4 and $apu_config is, not
surprisingly, the path the apu-config script)

So if you do:
bash-2.05b$ apu-config --link-libtool --libs
 /usr/lib/libaprutil.la -lldap -llber -lgdbm -ldb -lexpat

And get a funny looking set of libs we can blame aprutil. If you just
want a one-time build it may suffice to simply edit the variable,
though there may be other problems lurking.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 28 05:28:38 2003

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