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

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

From: Lev Serebryakov <lev_at_serebryakov.spb.ru>
Date: 2005-11-05 15:43:52 CET

Hello users,

  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:

====
 SWIGRUNTIMEINLINE swig_type_info *
 SWIG_TypeQuery(const char *name) {
   swig_module_info *module = SWIG_GetModule();
   // gcc 2.95.x COMPILER WILL COMPLAIN HERE
   // MUST BE "SWIG_GetModule(NULL);"
   return SWIG_TypeQueryModule(module, module, name);
 }

 SWIGRUNTIMEINLINE swig_type_info *
 SWIG_MangledTypeQuery(const char *name) {
   swig_module_info *module = SWIG_GetModule();
   // gcc 2.95.x COMPILER WILL COMPLAIN HERE
   // MUST BE "SWIG_GetModule(NULL);"
   return SWIG_MangledTypeQueryModule(module, module, name);
 }
====

  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.)====

  When I patch these *.swg files bu hands, everything builds Ok. So, here are two problems, really:

  (1) Bad proxies was generated, bindings can not be built with gcc 2.95.x (used in FreeBSD 4.x, for example). It was fixed in latest swig!

  (2) Proxies for ruby can not be generated locally with newer swig.

-- 
Best regards,
 Lev                          mailto:lev@serebryakov.spb.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Nov 5 15:46:13 2005

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