You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by David Summers <da...@summersoft.fay.ar.us> on 2005/04/17 19:10:33 UTC

Building without Berkeley DB

Hi,
   1.5 weeks ago I was able to build my RPM without Berkeley DB, I just 
updated to 1.2.x@14270 and after starting the build with the following 
configuration:

  ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu 
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com 
--mandir=/usr/share/man --infodir=/usr/share/info --without-berkeley-db 
--with-swig=/usr/bin/swig-1.3.19 --with-python=/usr/bin/python2.2 
--with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config 
--with-apr-util=/usr/bin/apu-config



now it is bombing out of the compile with the following message:

cd subversion/libsvn_subr && /bin/sh 
/home/david/rpms/build/subversion-1.3.0/libtool --silent --mode=link gcc 
-O2 -g -pipe -march=i386 -mcpu=i686   -pthread  -DNEON_ZLIB -DNEON_SSL 
-rpath /usr/lib -o libsvn_subr-1.la  auth.lo cmdline.lo
config.lo config_auth.lo config_file.lo config_win.lo ctype.lo date.lo 
error.lo
hash.lo io.lo lock.lo md5.lo opt.lo path.lo pool.lo quoprint.lo sorts.lo 
stream.lo subst.lo svn_base64.lo svn_string.lo target.lo 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?

Thanks.
    - David

--
David Wayne Summers        "Linux: Because reboots are for hardware upgrades!"
david@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

Re: Building without Berkeley DB

Posted by David Summers <da...@summersoft.fay.ar.us>.
On Sun, 17 Apr 2005, Philip Martin wrote:

> David Summers <da...@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.
>

Ah, that is a big clue.  I'm trying to build on WhiteBox Enterprise 
Linux/RedHat Enterprise Linux which has the APR/APR-UTIL packages built-in 
to the httpd package.

Thanks for the clue.  Maybe I can hack the build procedure, after it is 
configured, to take out that -ldb reference.

--
David Wayne Summers        "Linux: Because reboots are for hardware upgrades!"
david@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

Re: Building without Berkeley DB

Posted by Marcus Rueckert <da...@web.de>.
On 2005-04-17 15:11:09 -0500, David Summers wrote:
> 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.

it will work as expected yes.
and you shouldnt care that ldd svn will show libdb either.

darix

-- 
irssi - the client of the smart and beautiful people

              http://www.irssi.de/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Building without Berkeley DB

Posted by David Summers <da...@summersoft.fay.ar.us>.
On Sun, 17 Apr 2005, Philip Martin wrote:

> David Summers <da...@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@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

Re: Building without Berkeley DB

Posted by Philip Martin <ph...@codematters.co.uk>.
David Summers <da...@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?