[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Stackless python

Has anyone been able to compile Stackless Python on Debian on
an SGI Indy or similar hardware?  I get parse errors in the
stackless API header file, but it would appear to compile
fine on other architectures.  This would lead me to
conclude it's a compiler bug.  Missing header files should
throw different errors, so I'm doubting it's a missing header
file problem.

:~/stackless/stackless/src$ ./configure
:~/stackless/stackless/src$ make
gcc -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -I./Stackless -DHAVE_CONFIG_H  -o Modules/python.o Modules/python.c
In file included from Modules/python.c:5:
Stackless/stackless_api.h:41: parse error before '*' token
Stackless/stackless_api.h:41: warning: type defaults to `int' in declaration of `PyTasklet_New'

There follow many similar errors but that is the first.

The offending line is the uncommented line here:
/* 35
 * create a new tasklet object. 36
 * type must be derived from PyTasklet_Type or NULL. 37
 * func must (yet) be a PyFunction object (normal usecase) 38
 * or NULL, if the tasklet is being used via capture(). 39
 */ // line 40
DL_EXPORT(PyTaskletObject *) PyTasklet_New(PyTypeObject *type, PyObject *func);
/* 0 = success  -1 = failure */ // line 42

Line 30 is fine:
DL_EXPORT(PyTypeObject *) PyTasklet_Type;

I think DL_EXPORT is defined okay.

Either I missed replies from the Stackless people, or they didn't
repsond.  My suspicion is that it's not a problem with the source
code.  Any suggestions?  (I updated stackless from stackless.com CVS
today and my Indy apt-get updates itself nightly.)  I tried compiling
stackless on my Indy a few months ago with the same problem.  I've
never gotten Stackless to compile properly on my Indy.


Karl Alexander Magdsick <karlm@mit.edu>

"In the sermon i have just preached, whenever I 
said Aristotle, I meant St. Paul."  
-- William Archibald Spooner

Reply to: