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

Re: Build problems: Berkeley DB 4.3

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-08-03 19:17:45 CEST

On Aug 3, 2005, at 11:31 AM, Steve Kelem wrote:

> I'm trying to build subversion 1.2.1 on SuSE Linux 9.2.
> ---------------------
> I've installed Berekeley DB 4.3 (in /usr/local/BerkeleyDB4.3).
> ---------------------
> I've built httpd-2.0.54 with the following options:
> ./configure \
> --prefix=/usr/local/apache2 \
> --enable-cgi \
> --enable-dav \
> --enable-dav-fs \
> --enable-deflate \
> --enable-http \
> --enable-info \
> --enable-maintainer-mode \
> --enable-so \
> --enable-ssl \
> --enable-swig-bindings \
> --with-berkeley-db=/usr/local/BerkeleyDB.4.3
>
> I've verified that httpd's configure found the DB:
> checking for Berkeley DB 4.3 in /usr/local/BerkeleyDB.4.3...
> checking db43/db.h usability... no
> checking db43/db.h presence... no
> checking for db43/db.h... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for -ldb-4.3... yes
> setting APRUTIL_INCLUDES to "-I/usr/local/BerkeleyDB.4.3/include"
> setting APRUTIL_LDFLAGS to "-L/usr/local/BerkeleyDB.4.3/lib"
> -----------------------------
> I built Python-2.4.1. (But it demands that I use BerkeleyDB 4.0!,
> so that's installed too!)
> Python-2.4.1/Modules/Setup says:
> # Sleepycat Berkeley DB interface
> #
> # This requires the Sleepycat DB code, see http://www.sleepycat.com/
> # The earliest supported version of that library is 3.0, the latest
> # supported version is 4.0 (4.1 is specifically not supported, as that
> # changes the semantics of transactional databases).
> -----------------------------
> The problem is with subversion. I built it with:
> setenv LD_LIBRARY_PATH "/usr/local/lib"
> setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/lib"
> setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/local/BerkeleyDB.
> 4.3/lib"
> ./configure \
> --prefix=/usr/local \
> --enable-maintainer-mode \
> --with-apr-util=/usr/local/apache2/bin/apu-config \
> --with-apr=/usr/local/apache2 \
> --with-apxs=/usr/local/apache2/bin/apxs \
> --with-berkeley-db=/usr/local/BerkeleyDB.4.3 \
> --with-berkeley-db \
> --with-ssl \
> --with-zlib
>
> configure complains:
> ...
> neon configured properly
> checking for any extra libraries neon needs... -L/usr/local/lib -
> lz -lssl -lcry
> pto -ldl -lxml2 -lz -lpthread -lm
> checking for static Apache module support... no
> checking for Apache module support via DSO through APXS... found
> at /usr/local/apache2/bin/apxs
> checking httpd version... recent enough
> checking for socket in -lsocket... no
> checking for availability of Berkeley DB... no
> configure: error: Berkeley DB 4.0.14 wasn't found.
>
> 1. Why is it complaining about 4.0.14???

Unless you're building a *really* old version of subversion, I think
it means "at least" 4.0.14 not found.

My recommendation is that if you already have httpd-2.0 compiled and
installed, and its apr/aprutil libraries are linking to bdb 4.3
already, then just use those. I would remove the apr/ and apr-util/
trees from the svn sourceball altogether, and not pass any berkeley
arguments to svn's configure script at all. It should auto-detect
the installed apache/apr/apr-util stuff, and then you're all set.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 3 19:20:09 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.