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

Re: And more problems building 1.3.0-rc2: pre-generated *.swg files

From: David James <james82_at_gmail.com>
Date: 2005-11-10 00:04:23 CET

On 11/8/05, Kouhei Sutou <kou@cozmixng.org> wrote:
> Hi,
>
> In <1941640100.20051105200313@serebryakov.spb.ru>
> "And more problems building 1.3.0-rc2: pre-generated *.swg files" on Sat, 5 Nov 2005 20:03:13 +0300,
> Lev Serebryakov <lev@serebryakov.spb.ru> wrote:
>
> > Three files `subverison/bindings/swig/proxy/swig_*_external_runtime.swg' contains error from swig-1.3.25 or earlier, fixed in swig-1.3.26 and later:
> >
> > When I delete *.swg files to regenerate them with local `swig' installation, Perl buindings are built well, but ruby ones can not be compiled:
> >
> > ====
> > In file included from /test/subversion-1.3.0-rc2/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c:2:
> > /test/subversion-1.3.0-rc2/subversion/bindings/swig/proxy/swig_ruby_external_runtime.swg: In function `SWIG_Ruby_ConvertPtr':
> > /test/subversion-1.3.0-rc2/subversion/bindings/swig/proxy/swig_ruby_external_runtime.swg:653: `SWIG_RubyRemoveTracking' undeclared (first use in this function)
> > /test/subversion-1.3.0-rc2/subversion/bindings/swig/proxy/swig_ruby_external_runtime.swg:653: (Each undeclared identifier is reported only once
> > /test/subversion-1.3.0-rc2/subversion/bindings/swig/proxy/swig_ruby_external_runtime.swg:653: for each function it appears in.)====
> >
>
> This problem can be solved by the following sequence:
>
> % swig -o subversion/bindings/swig/proxy/rubytracking.swg -co ruby/rubytracking.swg
> % patch -p0
> Index: subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
> ===================================================================
> --- subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c (revision 17245)
> +++ subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c (working copy)
> @@ -1,4 +1,5 @@
> #include "rubyhead.swg"
> +#include "rubytracking.swg"
> #include "swig_ruby_external_runtime.swg"
> #include "swigutil_rb.h"
> #include <st.h>
> ^D
Thanks for explaining this, Kou! I have committed a workaround for
this SWIG 1.3.26/27 bug in r17280, so Subversion trunk should work now
with SWIG 1.3.27.

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james
Received on Thu Nov 10 00:05:18 2005

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