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

[Fwd: problem with dynamically loaded plugins]

From: Michael Haubenwallner <michael.haubenwallner_at_salomon.at>
Date: 2007-09-13 18:23:23 CEST

Hi,

as I did not get any response on users list, and it's a possible bug,
forwarding this to dev list now...

/haubi/

-------- Forwarded Message --------
From: Michael Haubenwallner <michael.haubenwallner@salomon.at>
To: users@subversion.tigris.org
Subject: problem with dynamically loaded plugins
Date: Wed, 11 Jul 2007 12:57:23 +0200

Hi,

I've a problem with svn in a maybe somewhat uncommon use case.

I'm compiling svn (currently 1.4.2) with reduced capabilities (only
'svn' and 'file' plugins, no need for 'dav') to have less dependencies
myself, because on the target machine I cannot assume a preinstalled svn
nor do I have root access.
Also, as I have svn embedded into some package-building mechanism,
always installing complete svn on the target machine manually is too
much work.

But now, when this target machine has a different svn version (say
1.4.4) installed in /usr/bin (libs in /usr/lib) or somewhere else where
the dynamic-loader finds shared libs, when using my own "svn --version"
I get this error:

    svn: Mismatched RA version for 'dav': found 1.4.2, expected 1.4.4

What I think of here is some configure-switch to
      * completely disable dynamically loading plugins
and/or
      * reduce the plugin-search-path to the same prefix svn is
        installed into.

Additionally, why not just ignore wrong-versioned plugins instead of
aborting on them ?

Currently I avoid plugin loading by compiling apr with "--disable-dso",
but this works only because noone else depends on my apr (specifically
apr-dso) yet.

Another minor confusion is that my svn-1.4.2 "expects" 1.4.4 while it
"finds" 1.4.2. This IMO can be fixed by simply exchanging the arguments
where that message is created: function check_ra_version() in
http://svn.collab.net/repos/svn/trunk/subversion/libsvn_ra/ra_loader.c

Thoughts ?

Thanks!
/haubi/

-- 
Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz
Sitz der Gesellschaft: Friesach bei Graz
UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 13 18:20:03 2007

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