Hamish wrote:

> latest grass7 build fails in swig/python with: 
> 
> [...]/trunk/dist.i686-pc-linux-gnu/include 
> -I/usr/local/src/grass/svn/trunk/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)
> utils_wrap.c:2570: error: expected ';' before 'len'
> [...]
> make[1]: *** [OBJ.i686-pc-linux-gnu/utils_wrap.o] Error 1
> make[1]: Leaving directory `/usr/local/src/grass/svn/trunk/swig/python'
> make: *** [default] Error 2

I can't reproduce this.

> Py_ssize_t is defined in /usr/include/python2.4/pymem.h, so I guess that
> needs to be #included somewhere?

It shouldn't be necessary to include headers other than <Python.h>.
SWIG should add that include itself.

-- 
Glynn Clements <gl...@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to