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

Re: Building without Berkeley DB

From: David Summers <david_at_summersoft.fay.ar.us>
Date: 2005-04-17 22:11:09 CEST

On Sun, 17 Apr 2005, Philip Martin wrote:

> David Summers <david@summersoft.fay.ar.us> writes:
>
>> time.lo utf.lo utf_validate.lo validate.lo version.lo xml.lo
>> /usr/lib/libaprutil-0.la -ldb -lexpat /usr/lib/libapr-0.la -lrt -lm
>> -lcrypt -lnsl -ldl
>> /usr/bin/ld: cannot find -ldb
>> collect2: ld returned 1 exit status
>> make[1]: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1
>> make[1]: Leaving directory `/home/david/rpms/build/subversion-1.3.0'
>> error: Bad exit status from /home/david/rpms/tmp/rpm-tmp.43782 (%build)
>>
>> The only difference I can think of is that last time when I built I
>> may have not actually deleted the BDB 4.2 RPM I had installed.
>>
>> Why is it trying to link to BDB when I told it not to?
>
> From it's position in the link command I would say it's coming from
> apu-config:
>
> $ grep ldb Makefile
> SVN_APRUTIL_LIBS = /usr/local/apache2/lib/libaprutil-0.la -ldb -lexpat
>
> $ /usr/local/apache2/bin/apu-config --link-libtool --libs
> /usr/local/apache2/lib/libaprutil-0.la -ldb -lexpat
>
> I guess you need to build apr-util without bdb but I've never tried to
> do that.
>

Can't do that, at least I don't see how, I'm trying to build something
that works on WBEL3/RHEL3 "out-of-the-box", that doesn't use the BDB
4.1.25 that comes with that distro.

After I was clued in with the info from above I sucesfully eliminated the
*Subversion* reference to -ldb but APR or APR-UTIL still try to link in
with that library. I guess I'll have to build with that library but
hopefully the --without-berkeley-db reference in Subversion will tell the
Subversion build not to use it so the user won't be able to use
--fs-type=bdb.

...Whew! This is sure complicated!...

--
David Wayne Summers        "Linux: Because reboots are for hardware upgrades!"
david_at_summersoft.fay.ar.us PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  0B44 B118 85CC F4EC 7021  1ED4 1516 5B78 E320 2001
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 17 22:16:19 2005

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.