[geos-devel] building geos 3.2 and python2.7 module

thomas veymont thomas.veymont at gmail.com
Thu Oct 7 06:10:45 EDT 2010


hello,

hope I am at the right place to ask this question.
I'm trying to build geos 3.2.2 with Python 2.7 module :

$ tar xvjf geos-3.2.2.tar.bz2
$ cd geos-3.2.2
# force 'configure' to use an alternative python interpreter
# instead of python2.4 provided with the OS
$ export PYTHON=/usr/local/python2.7/bin/python2.7
$ ./configure --prefix=/usr/local/geos3.2.2/ --enable-python
(...)
$ make

this fails with the following output....

-----------------------------------------
/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

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

geos_wrap.cxx: In function ‘int SWIG_Python_ConvertFunctionPtr(PyObject*,
void**,
swig_type_info*)’:

geos_wrap.cxx:2051: error: invalid conversion from ‘const char*’ to
‘char*’

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

geos_wrap.cxx:3752: warning: dereferencing type-punned pointer will break
strict-aliasing
rules

geos_wrap.cxx: In function ‘PyObject* _wrap_WkbReader_read(PyObject*,
PyObject*)’:

geos_wrap.cxx:9010: warning: dereferencing type-punned pointer will break
strict-aliasing
rules

geos_wrap.cxx: In function ‘PyObject* _wrap_WkbReader_readHEX(PyObject*,
PyObject*)’:

geos_wrap.cxx:9088: warning: dereferencing type-punned pointer will break
strict-aliasing
rules

geos_wrap.cxx: In function ‘void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**,
swig_type_info**)’:

geos_wrap.cxx:10280: error: invalid conversion from ‘const char*’ to
‘char*’

make[4]: *** [_geos_la-geos_wrap.lo] Error
1

make[4]: Leaving directory
`/root/geos-3.2.2/swig/python'

make[3]: *** [all-recursive] Error
1

make[3]: Leaving directory
`/root/geos-3.2.2/swig/python'

make[2]: *** [all] Error
2

make[2]: Leaving directory
`/root/geos-3.2.2/swig/python'

make[1]: *** [all-recursive] Error
1

make[1]: Leaving directory
`/root/geos-3.2.2/swig'

make: *** [all-recursive] Error 1
-------------------------------------------------

... but the same is working with the system python2.4 default interpreter.

any idea about the problem ? could it be a problem with my SWIG version
(1.3.29) ?

thanks
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20101007/20d51bf6/attachment.html


More information about the geos-devel mailing list