[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: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2003-03-01 02:46:16 CET

Marc, it's your lucky day -- I just had this nightmare problem myself.

In CVS revision 1.27 of apr-util/apu-config.in, Justin Erenkrantz
fixes this odd autoconf interaction:

  revision 1.27
  date: 2003/01/23 09:01:36; author: jerenkrantz; state: Exp; lines: +2 -2

  Stop using the top_* variables that autoconf nicely munges with
  2.5+. We have our own private copy of these variables setaside for
  this reason. Use 'em.

  (This fixes breakage when using built-in expat with apr-util.)

In revision 1.26 (the version shipped as part of httpd 2.0.44),
APU_BUILD_DIR is set using the top_builddir m4 preprocessor token,
which is set to the empty string your apu-config script, causing the
-lexpat replacement which happens in apu-config to fail with style.
In the message above, I think that Justin means autconf 2.50+, as I
don't have this problem with autoconf version 2.13 (but do with 2.53).
Here's Justin's patch to fix the problem:

===================================================================
RCS file: /home/cvspublic/apr-util/apu-config.in,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -u -r1.26 -r1.27
--- apu-config.in 8 Jan 2003 13:09:50 -0000 1.26
+++ apu-config.in 23 Jan 2003 09:01:36 -0000 1.27
@@ -70,8 +70,8 @@
 
 APRUTIL_LIBNAME="@APRUTIL_LIBNAME@"
 
-APU_SOURCE_DIR="@top_srcdir@"
-APU_BUILD_DIR="@top_builddir@"
+APU_SOURCE_DIR="@abs_srcdir@"
+APU_BUILD_DIR="@abs_builddir@"
 APR_XML_EXPAT_OLD="@APR_XML_EXPAT_OLD@"
 
 show_usage()

You have Mr. Jack Repenning to thank for pointing me to this thread.
The soon to be released httpd 2.0.45 (hint hint) will likely contain
the fix for this problem. :)

- Dan

David Kimdon <dwhedon@debian.org> writes:

> 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
> bash-2.05b$
>
> 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.

-- 
Daniel Rall <dlr@finemaltcoding.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 1 02:46:53 2003

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.