Over at the Subversion project we've noticed a failure on one of our build bots that recently was upgraded to SWIG 2.0.7. We end up with the following error:
core.c: In function 'boot_SVN___Core':
core.c:42819:5: error: expected expression before '/' token
core.c:42819:37: error: too many decimal points in number
Looking at like 42819 we find:
// Casts only needed for Perl < 5.10.
which is in the SWIG_init function which is preceded with:
The error can easily be fixed by applying the attached patch to Lib/perl5/perlinit.swg which just changes the comment to a C style comment /* */
We're likely going to work around this by just removing the -ansi flag from our build options for the Perl bindings, but we shouldn't have to, SWIG really should be producing valid code.
Log in to post a comment.