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

Re: [PATCH] libsvn SONAMEs and APR

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-04-11 00:27:12 CEST

On 4/10/06, Philip Martin <philip@codematters.co.uk> wrote:

> > Even then, it's still very possible for LFS to be toggled on or off
> > even in the same 'library' version of APR/APR-util. Same goes for
> > threading, mmap, etc.
>
> I'm not really interested in corner cases, although I suspect that
> threading is handled by 'apr-config --cflags' and that mmap doesn't
> change the ABI.

The problem Justin is referring to with threading and MMAP support are
that in APR they're both handled via preprocessor defines. You check
APR_HASH_THREADS (or something similar) and if it's defined you use
the threading functions. So if you drop in an APR 0.9.x library
compiled without threading on a box where subversion was compiled
against an APR 0.9.x library that had threading you'll get an svn that
refers to symbols that don't exist.

(I will stipulate that this is perhaps kind of silly, and it might
make more sense to have the functions return runtime errors instead of
not existing at all, but that's a separate point.)

The point is that the APR ABI can change in various ways even within
the same version number, and anything that doesn't take that into
acount will be almost as fragile as the system we've got now.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 11 00:27:49 2006

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.