[Bro-Dev] #562: SWIG version trouble
Bro Tracker
bro at tracker.bro-ids.org
Thu Aug 18 09:43:44 PDT 2011
#562: SWIG version trouble
------------------------+---------------------
Reporter: robin | Type: Problem
Status: new | Priority: Normal
Milestone: 1.6 | Component: Bro
Version: git/master | Keywords: beta
------------------------+---------------------
Looks like we need a "minimum SWIG version" check. With 1.3.29, I get
the errors below. Updating to 1.3.40 solves it.
{{{
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx: In function ‘int
SWIG_Python_ConvertFunctionPtr(PyObject*, void**, swig_type_info*)’:
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:2051: error: invalid
conversion from ‘const char*’ to ‘char*’
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx: In function ‘int
SWIG_AsCharPtrAndSize(PyObject*, char**, size_t*, int*)’:
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:2575: error: cannot convert
‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int
PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)’
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx: In function ‘PyObject*
SubnetTree___contains____SWIG_0(SubnetTree*, char*, int)’:
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:2849: warning:
dereferencing type-punned pointer will break strict-aliasing rules
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:2849: warning:
dereferencing type-punned pointer will break strict-aliasing rules
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:2851: warning:
dereferencing type-punned pointer will break strict-aliasing rules
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:2851: warning:
dereferencing type-punned pointer will break strict-aliasing rules
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx: In function ‘void
SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**,
swig_type_info**)’:
.../aux/pysubnettree/SubnetTreePYTHON_wrap.cxx:4141: error: invalid
conversion from ‘const char*’ to ‘char*’
make[2]: ***
[aux/broctl/aux/pysubnettree/CMakeFiles/_SubnetTree.dir/SubnetTreePYTHON_wrap.cxx.o]
Error 1
make[1]: *** [aux/broctl/aux/pysubnettree/CMakeFiles/_SubnetTree.dir/all]
Error 2
make: *** [all] Error 2
> swig -version
SWIG Version 1.3.29
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/562>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list