[GRASS-dev] SWIG-Python lacking from install sequence in main
Makefile
Hamish
hamish_b at yahoo.com
Sun Jul 19 17:33:01 EDT 2009
Hamish:
> > building relbr6.4 swig/python/ from Debian/Etch (swig
> > version 1.3.29-2.1) fails with:
> >
> > [...]
> > 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)
> > [...]
Markus:
> See
> http://n2.nabble.com/grass7-build-failing-for-swig-python-td3074306.html
>
> and
> http://www.mail-archive.com/bug-gnubg@gnu.org/msg03894.html
> http://www.mail-archive.com/bug-gnubg@gnu.org/msg03895.html
>
> So, specific to the version which you use.
As it is a >= version issue and not a bug in a specific release,
some sort of #ifdef MAJOR_VERSION && MINOR_VERSION test around
a #include <Python.h> seems in order.
Hamish
More information about the grass-dev
mailing list