[GRASS-dev] [GRASS GIS] #658: swig/python fails to build with older version of swig

GRASS GIS trac at osgeo.org
Fri Jun 19 23:23:48 EDT 2009


#658: swig/python fails to build with older version of swig
---------------------------------+------------------------------------------
 Reporter:  hamish               |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect               |      Status:  new                      
 Priority:  major                |   Milestone:  6.4.0                    
Component:  SWIG (all bindings)  |     Version:  6.4.0 RCs                
 Keywords:  python               |    Platform:  Linux                    
      Cpu:  x86-32               |  
---------------------------------+------------------------------------------
 Hi,

 as per this thread:
  http://thread.gmane.org/gmane.comp.gis.grass.devel/33808


 swig/python from releasebranch_6_4 thru trunk now fail to build on
 Debian/Etch, (apparently) because Etch shipped with SWIG 1.3.29-2.1 and
 Python 2.4, which is (apparently) just slightly too old for the newer
 functions used.

 The exact error is:  (6.4svn)
 {{{
 gcc -I/usr/local/src/grass/svn/releasebranch_6_4/dist.i686-pc-linux-
 gnu/include  -g -O2    -fPIC   -DPACKAGE=\""grasslibs"\" -fPIC
 -I/usr/include/python2.4 -I/usr/include/python2.4
 -DPACKAGE=\""grasslibs"\"
 -I/usr/local/src/grass/svn/releasebranch_6_4/dist.i686-pc-linux-
 gnu/include -o OBJ.i686-pc-linux-gnu/utils_wrap.o -c utils_wrap.c
 utils_wrap.c: In function 'pyseq_to_ptr':
 utils_wrap.c:2495: error: 'Py_ssize_t' undeclared (first use in this
 function)
 utils_wrap.c:2495: error: (Each undeclared identifier is reported only
 once
 utils_wrap.c:2495: error: for each function it appears in.)
 utils_wrap.c:2495: error: expected ';' before 'len'
 utils_wrap.c:2522: error: 'len' undeclared (first use in this function)
 utils_wrap.c: In function 'pyobj_to_ptr':
 utils_wrap.c:2570: error: 'Py_ssize_t' undeclared (first use in this
 function)
 ...
 }}}


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/658>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list