hello,<br><br>hope I am at the right place to ask this question.<br>I'm trying to build geos 3.2.2 with Python 2.7 module :<br><br>$ tar xvjf geos-3.2.2.tar.bz2<br>$ cd geos-3.2.2<br># force 'configure' to use an alternative python interpreter<br>
# instead of python2.4 provided with the OS<br>$ export PYTHON=/usr/local/python2.7/bin/python2.7<br>$ ./configure --prefix=/usr/local/geos3.2.2/ --enable-python<br>(...)<br>$ make<br><br>this fails with the following output....<br>
<br>-----------------------------------------<br>/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../source/headers -I../../source/headers/geos -I/usr/local/python2.7/include/python2.7 -I../../capi -g -O2 -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -MT _geos_la-geos_wrap.lo -MD -MP -MF .deps/_geos_la-geos_wrap.Tpo -c -o _geos_la-geos_wrap.lo `test -f 'geos_wrap.cxx' || echo './'`geos_wrap.cxx <br>
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../source/headers -I../../source/headers/geos -I/usr/local/python2.7/include/python2.7 -I../../capi -g -O2 -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -MT _geos_la-geos_wrap.lo -MD -MP -MF .deps/_geos_la-geos_wrap.Tpo -c geos_wrap.cxx -fPIC -DPIC -o .libs/_geos_la-geos_wrap.o <br>
geos_wrap.cxx: In function ‘int SWIG_Python_ConvertFunctionPtr(PyObject*, void**, swig_type_info*)’: <br>
geos_wrap.cxx:2051: error: invalid conversion from ‘const char*’ to ‘char*’ <br>
geos_wrap.cxx: In function ‘int SWIG_AsVal_bool(PyObject*, bool*)’: geos_wrap.cxx:3749: warning: dereferencing type-punned pointer will break strict-aliasing rules <br>
geos_wrap.cxx:3752: warning: dereferencing type-punned pointer will break strict-aliasing rules <br>
geos_wrap.cxx: In function ‘PyObject* _wrap_WkbReader_read(PyObject*, PyObject*)’: <br>
geos_wrap.cxx:9010: warning: dereferencing type-punned pointer will break strict-aliasing rules <br>
geos_wrap.cxx: In function ‘PyObject* _wrap_WkbReader_readHEX(PyObject*, PyObject*)’: <br>
geos_wrap.cxx:9088: warning: dereferencing type-punned pointer will break strict-aliasing rules <br>
geos_wrap.cxx: In function ‘void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)’: <br>
geos_wrap.cxx:10280: error: invalid conversion from ‘const char*’ to ‘char*’ <br>
make[4]: *** [_geos_la-geos_wrap.lo] Error 1 <br>
make[4]: Leaving directory `/root/geos-3.2.2/swig/python' <br>
make[3]: *** [all-recursive] Error 1 <br>
make[3]: Leaving directory `/root/geos-3.2.2/swig/python' <br>
make[2]: *** [all] Error 2 <br>
make[2]: Leaving directory `/root/geos-3.2.2/swig/python' <br>
make[1]: *** [all-recursive] Error 1 <br>
make[1]: Leaving directory `/root/geos-3.2.2/swig' <br>
make: *** [all-recursive] Error 1 <br>-------------------------------------------------<br><br>... but the same is working with the system python2.4 default interpreter.<br><br>any idea about the problem ? could it be a problem with my SWIG version (1.3.29) ?<br>
<br>thanks<br>Tom<br><br>