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

Re: Subversion upgraded to Berkeley DB 4.0.14

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-01-02 21:48:07 CET

Philip Martin <philip@codematters.co.uk> writes:
> Really? Well, I have problems using shared svn apache modules. This is
> not specific to db4, I have the same problem with db3. In my setup I
> have

Ahhh, okay, so we still have the same interop problem we used to have.
It is mentioned in INSTALL, along with the workaround, at least.

If I recall correctly, Justin Erenkrantz had something to say about it
on the APR or Apache list; Justin?

-K

> $ ldd /usr/local/apache/bin/httpd | grep db
> libdb2.so.2 => /usr/lib/libdb2.so.2 (0x400a7000)
> $ ldd /usr/local/apache/modules/libmod_dav_svn.so | grep db
> libdb-4.0.so => /usr/local/subversion/lib/libdb-4.0.so (0x40199000)
>
> and a checkout command fails
>
> $ svn co http://localhost:8888/repo -d svn
>
> apr_error: #20014, src_err 0 : <Error string not specified yet>
> The OPTIONS status was 500, but expected 200.
>
> The error appears to be generated by the db version check in
> check_already_open()
>
> (gdb) c
> Continuing.
>
> Breakpoint 1, check_already_open (fs=0x81457c0)
> at ../svn/subversion/libsvn_fs/fs.c:56
> 56 db_version (&major, &minor, &patch);
> (gdb) n
> 57 if ((major < SVN_FS_WANT_DB_MAJOR)
> (gdb) p major
> $1 = 2
> (gdb) p minor
> $2 = 7
>
>
> I work round this by forcing httpd to use db4 at runtime as follows
>
> $ LD_PRELOAD=/usr/local/subversion/lib/libdb-4.0.so /usr/local/apache/bin/apachectl start
>
> When apache is run like this the checkout command works fine.
>
>
> --
> Philip
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:54 2006

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.