Opened 15 years ago
Closed 15 years ago
#658 closed defect (fixed)
swig/python fails to build with older version of swig
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 6.5.0 |
Component: | Python ctypes | Version: | svn-develbranch6 |
Keywords: | python | Cc: | |
CPU: | x86-32 | Platform: | Linux |
Description
Hi,
as per this thread:
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
Change History (4)
follow-up: 2 comment:1 by , 15 years ago
Milestone: | 6.4.0 → 6.5.0 |
---|---|
Version: | 6.4.0 RCs → svn-develbranch6 |
follow-ups: 3 4 comment:2 by , 15 years ago
Replying to hamish:
But now I get an error building 6.5svn
I/usr/local/src/grass/svn/grass65/dist.i686-pc-linux-gnu/include -I../include/python -outdir . -python -o utils_wrap.c -module utils -shadow ../include/python/utils.i make[1]: I/usr/local/src/grass/svn/grass65/dist.i686-pc-linux-gnu/include: Command not found
This indicates that $(SWIG) is empty.
also, is this a typo?? (6.5svn swig/python/Makefile)
-EXTRA_SWG = ../include/python/my_typemaps.i ../include/python/common.i +EXTRA_SWIG = ../include/python/my_typemaps.i ../include/python/common.i
Yes.
comment:3 by , 15 years ago
Replying to glynn:
Replying to hamish:
But now I get an error building 6.5svn
...
also, is this a typo?? (6.5svn swig/python/Makefile)
-EXTRA_SWG = ../include/python/my_typemaps.i ../include/python/common.i +EXTRA_SWIG = ../include/python/my_typemaps.i ../include/python/common.iYes.
Fixed in r41161.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to glynn:
This indicates that $(SWIG) is empty.
right.
... which was caused by trying to build swig/python/ when --with-python was not used in the ./configure step.
Hamish
I'm pretty sure Glynn fixed this bug some time later (see ML archives). Now 6.4 swig/python builds fine for me.
But now I get an error building 6.5svn
-I becomes I in "
make[1] I$(GISBASE)/include
" .... ??also, is this a typo?? (6.5svn swig/python/Makefile)
6.4 builds ok. there are some differences: