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

Re: References to old db in shared libs and executables

From: Jens-Uwe Mager <jum_at_anubis.han.de>
Date: 2003-03-10 15:49:35 CET

On Mon, Mar 10, 2003 at 11:53 +0100, Tobias Ringstrom wrote:

> On Mon, 10 Mar 2003, Kunio Miyamoto wrote:
>
> > > I'm running subversion on a RedHat 7.3 system with a custom built db4 in
> > > /opt/db4. When building subversion, I added --with-berkeley-db=/opt/db4
> > > to configure. This makes subversion build and install fine, but there are
> > > still references to db3 in the libs. This did not seem to be a problem
> > > when running svn and svnadmin, but it did prevent me from running
> > > cvs2svn.py. I did have the db1-devel, db2-devel and db3-devel rpms
> > > installed.
> >
> > Did you build httpd to use db4 library?
> > If you don't, your httpd and subversion refers wrong db library.
> >
> > Please try to build httpd to use db4 library.
>
> Thanks, but httpd *is* built with the db4 lib. It is the apr-util in the
> subversion distribution that gets confused.
>
> Both svn, svnadmin, mod_dav_svn etc work fine. cvs2svn does not.
>
> I think it is something else...

I believe it is problem that occurs because libtool adds a -L/usr/lib
before the user supplied -L args to the linker command line. This pretty
much inhibits the use of -ldb, as this will always match the db library
in /usr/lib before any user supplied -L arguments. It would only work if
specified with an explicit -ldb4 or by using the .la file to instruct
libtool exactly about the library to link against. Welcome to the realms
of .so hell.

-- 
Jens-Uwe Mager	<pgp-mailto:F476EBC2>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 10 15:50:42 2003

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.