[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: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2005-11-08 14:15:16 CET

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,

--
kou
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 8 14:17:19 2005

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.