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

Re: libsvn SONAMEs and APR

From: Joe Orton <joe_at_manyfish.co.uk>
Date: 2006-03-12 19:31:56 CET

On Sun, Mar 12, 2006 at 12:09:04PM -0500, Greg Hudson wrote:
> On Sun, 2006-03-12 at 16:04 +0000, Joe Orton wrote:
> >> If an app links to apr-0 but libsvn uses apr-1, it's not like this
> >> will catch the problem, unless you remove apr-0 from your system so
> >> that the app will fail to start.
> > That's a different problem, and one which cannot be solved by the
> > runtime linker; merely changing the SVN sonames doesn't help.
> Actually, there's something called symbol versioning which can solve
> this problem, but I don't believe it's portable enough for apps to make
> use of. I know Debian's library policy at least used to involve symbol
> versioning, but I don't understand the details.

I meant to mention: symbol versioning does not really solve that
problem; the app and libsvn need to interchange pointers to opaque APR
data structures. Symbol versioning could allow you to safely use
distinct APR function implementations in each, but you're still doomed
when the two copies of APR need to interoperate.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 12 19:32:17 2006

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