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

[PATCH] perl swig bindings failure in svn 1.1.0

From: J Robert Ray <jrray_at_imageworks.com>
Date: 2004-10-07 04:41:43 CEST


I had a problem building and using the perl swig bindings that ship with
subversion 1.1.0. I am using perl 5.8.0.

Sample error message:
Modification of a read-only value attempted at
subversion-1.1.0/subversion/bindings/swig/perl/native/Core.pm line 6.
Compilation failed in require.
BEGIN failed--compilation aborted.

In Core.pm, the 'use SVN::Base qw(Core svn_);' line seems to create a
$SVN::Core::VERSION variable, set to '1.1.0'. The next line also tries
to set this variable and produces the above error.

I found the most sensible approach was to comment out the two lines that
try to redundantly set the VERSION variable. Patch attached.

Another approach that works (but is silly) is to put those two lines in
a BEGIN {} block above the 'use SVN::Base qw(Core svn_);' line.

Without this patch, the perl binding test suite fails a bunch of times
with that same error message above. With the patch, the test suite
succeeds and the perl binding do indeed to work fine.

I don't know if this problem is happening for everyone or is something
specific to my configuration, but I wanted to point it out to the

Thanks for the great software!

- Robert

diff -rNu subversion-1.1.0/subversion/bindings/swig/perl/native/Core.pm subversion-1.1.0-jrray/subversion/bindings/swig/perl/native/Core.pm
--- subversion-1.1.0/subversion/bindings/swig/perl/native/Core.pm Tue Jun 22 10:24:15 2004
+++ subversion-1.1.0-jrray/subversion/bindings/swig/perl/native/Core.pm Wed Oct 6 19:10:54 2004
@@ -3,8 +3,6 @@
 package SVN::Core;
 use SVN::Base qw(Core svn_);
-$SVN::Core::VERSION = "$SVN::Core::VER_MAJOR.$SVN::Core::VER_MINOR." .
- "$SVN::Core::VER_MICRO";
 =head1 NAME

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 7 04:41:51 2004

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.