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

problem with dynamically loaded plugins

From: Michael Haubenwallner <michael.haubenwallner_at_salomon.at>
Date: 2007-07-11 12:57:23 CEST

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/

-- 
Michael Haubenwallner                    SALOMON Automation GmbH
Forschung & Entwicklung                  A-8114 Friesach bei Graz
mailto:michael.haubenwallner_at_salomon.at  http://www.salomon.at
No HTML/MIME please, see http://expita.com/nomime.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 11 12:54:03 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.