You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Richard Curnow <rc...@rc0.org.uk> on 2003/04/01 21:07:28 UTC

Re: Picking up wrong version of db at link time

On Tue, Apr 01, 2003 at 12:36:28AM +0200, Tobias Ringstrom wrote:
> It's not a perfect solution, but it beats renaming files while compiling 
> subversion (which I too did at first).

Although, it has to be said that none of these file-moving hacks work
unless you've got root access on the machine.

I wonder if there's an alternative fix, where the db libraries get
installed as libdb4.so etc, and all the -ldb entries in subversion's
makefiles are replaced by -ldb4 before building.  This would surely
prevent libdb-3.*.so being picked up at link time.  (I guess care is
still needed with the db.h include file, though I got the impression
that installing it to appear as <db4/db.h> would do the trick.)  I might
give this a go.

Richard.

-- 
Richard P. Curnow | Free software fundamentalist
Weston-super-Mare | 
United Kingdom    | http://www.rc0.org.uk/

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

Re: Picking up wrong version of db at link time

Posted by Michael Price <mp...@atl.lmco.com>.
Richard Curnow wrote:
> I wonder if there's an alternative fix, where the db libraries get
> installed as libdb4.so etc, and all the -ldb entries in subversion's
> makefiles are replaced by -ldb4 before building.  This would surely
> prevent libdb-3.*.so being picked up at link time.  (I guess care is
> still needed with the db.h include file, though I got the impression
> that installing it to appear as <db4/db.h> would do the trick.)  I might
> give this a go.

The FreeBSD port of BDB does this. You can take a look at 
http://www.freebsd.org/cgi/cvsweb.cgi/ports/databases/db41 for more 
information. The Makefile has some configure options you may want to use 
and the 'files' subdirectory contains a few patches you could adapt to 
your setup that pick an appropriate library name.

Michael



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