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

Re: sqlite checks and apr

From: Peter Samuelson <peter_at_p12n.org>
Date: Fri, 10 Oct 2008 09:01:12 -0500

[Philip Martin]
> A build that links directly to sqlite 3.5.9 while apr links to 3.3.8
> is a bit dodgy isn't it?

Technically apr-util, not apr.

The way dynamic linking works in Debian and other ELF / glibc platforms
is that apr-util does _not_ link to sqlite 3.3.8 specifically, but to
the first "libsqlite3.so.0" found at runtime. Thus it is a question of
library search path order. And sqlite 3.5.9 still uses the SONAME of

What you need, then, is to install your newer sqlite in /usr/local/lib,
which will be searched before /usr/lib, or put it elsewhere and include
an "RPATH" record in your binaries. Which libtool should take care of,
when it pulls in a library from a non-default location. Then apr-util
will effectively link to that copy as well.

You can use 'ldd' to verify that the runtime linker finds and loads
libraries in the desired order.

Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-10 16:01:26 CEST

This is an archived mail posted to the Subversion Dev mailing list.