You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Michael Kefeder <mi...@weird-birds.org> on 2002/11/22 18:24:03 UTC

python bindings not working with -ldb

Hi

I recently installed subversion and found that the python bindings try to 
use db3 instead of db4. Tools like viewcvs and your ./tools/examples arent 
working then. The Error python raises says something like "Berkeley db 
3.3.11 is used but 4.0.14 is needed". this is because libdb3 and libdb4 are 
linked to the svn-libs

To fix that i had to set
SVN_APRUTIL_LIBS = -ldb-4
SVN_DB_LIBS = -ldb-4
instead of just -ldb in the svn Makefile and rebuild everything.

I think most people with more than one berkeley db version installed will 
get that error, because db4 is not required explicitly int the makefile 
(which it should imho). This error is not obvious because subversion and 
the subversion server are fully working even when -ldb is used.

BTW the scripts in ./tools/examples are still using svn_time_from_nts 
instead of svn_time_from_cstring, but i think this was about to be fixed 
anyways.
Yours
 Mike


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

Re: python bindings not working with -ldb

Posted by Eric Gillespie <ep...@pretzelnet.org>.
Michael Kefeder <mi...@weird-birds.org> writes:

> To fix that i had to set
> SVN_APRUTIL_LIBS = -ldb-4
> SVN_DB_LIBS = -ldb-4
> instead of just -ldb in the svn Makefile and rebuild everything.

I am the one who told Michael to do that in IRC.  I have meant to
complain about this for a long time, but always held back because
i'd never seen it cause an actual problem.  For svn to ask for
-ldb is a lie; svn requires a specific version, not just any
version.  The libdb-4.0.so, libdb-4.1.so, and libdb-4.so symlinks
are provided for a reason.  If svn can take either db-4.0 or
db-4.1 with no changes, it should ask for -ldb-4; if it has
ifdefs to behave differently for one of the other, it needs to
ask for the one it is configured for (i.e. -ldb-4.0 or -ldb-4.1).
The current state where svn lies by saying any old db version is
troublesome.

apr-util needs to do the same thing.  If it decides to use db-4
it needs to specify -ldb-4.

> I think most people with more than one berkeley db version
> installed will get that error, because db4 is not required
> explicitly int the makefile

Right.

--  
Eric Gillespie <*> epg@pretzelnet.org

Build a fire for a man, and he'll be warm for a day.  Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett

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