Compilation error when builing SWIG/KikiPy_wrap.cpp :
$ make
g++ -c -I ../SWIG -I ../kodilib/src/handler -I ../kodilib/src/tools -I ../kodilib/src/types -I ../kodilib/src/widgets -I ../kodilib/src/windows -I ../src/base -I ../src/bots -I ../src/gui -I ../src/items -I ../src/main -I ../src/sound -I ../src/world -I /usr/X11/include/ -I /usr/include/python2.5 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -o ../src/../SWIG/KikiPy_wrap.o ../src/../SWIG/KikiPy_wrap.cpp
In file included from ../kodilib/src/tools/KTools.h:11,
from ../src/main/KikiMain.h:20,
from ../src/main/Kiki.h:9,
from ../src/../SWIG/KikiPy_wrap.cpp:1457:
../kodilib/src/tools/KFileTools.h:38:7: warning: no newline at end of file
../src/../SWIG/KikiPy_wrap.cpp: In function ‘int SWIG_Python_ConvertPtr(PyObject, void, swig_type_info, int)’:
../src/../SWIG/KikiPy_wrap.cpp:1209: error: invalid conversion from ‘const char’ to ‘char’
../src/../SWIG/KikiPy_wrap.cpp: In function ‘void SWIG_Python_FixMethods(PyMethodDef, swig_const_info, swig_type_info, swig_type_info)’:
../src/../SWIG/KikiPy_wrap.cpp:16312: error: invalid conversion from ‘const char’ to ‘char’
make: *** [../src/../SWIG/KikiPy_wrap.o] Erreur 1
$ g++ --version
g++ (GCC) 4.1.3 20070429 (prerelease) (Debian 4.1.2-6)
I think an include of "methodobject.h" from the Python API (where PyMethodDef and PyCFunctionObject are typedefed) is missing, i tried to add it but with no effects.
Logged In: YES
user_id=1452237
Originator: YES
woops just saw the bug was fixed. (patch http://phhusson.free.fr/kiki-gcc4.1.diff)