[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geos-devel
Subject:    [geos-devel] building geos 3.2 and python2.7 module
From:       thomas veymont <thomas.veymont () gmail ! com>
Date:       2010-10-07 10:10:45
Message-ID: AANLkTinB5kcOvX_WOdbuiJuKfLX65fj-6NV+1-gaurFz () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

hello,<br><br>hope I am at the right place to ask this question.<br>I&#39;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 &#39;configure&#39; 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 &#39;geos_wrap.cxx&#39; || echo \
&#39;./&#39;`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&#39;                    \
<br> make[3]: *** [all-recursive] Error 1                                             \
<br> make[3]: Leaving directory `/root/geos-3.2.2/swig/python&#39;                    \
<br> make[2]: *** [all] Error 2                                                       \
<br> make[2]: Leaving directory `/root/geos-3.2.2/swig/python&#39;                    \
<br> make[1]: *** [all-recursive] Error 1                                             \
<br> make[1]: Leaving directory `/root/geos-3.2.2/swig&#39;                           \
                <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>



_______________________________________________
geos-devel mailing list
geos-devel@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic