[Distutils] ccpython.cc compile problem

M.-A. Lemburg mal@lemburg.com
Tue Nov 12 09:48:19 2002


Groenenberg, Ron wrote:
> (As this is my first post/mail, please advise if I've picked the wrong 
> SIG for this issue.)

This sound like a Python problem more than a distutils one
(Python uses distutils to build its standard extensions, so
you're not entirely wrong here :-).

Please post this report to the SourceForge bug tracker.

> My platform is qnx4.24 with watcom 10.6.
> 
> The v2.2.2 configure files are dated Oct 10 11:26.
> 
>  
> 
> Configure was done like this:
> 
> configure --verbose --without-gcc --with-libm="" --with-cxx=cc
> 
>  
> 
> When gmake was attempted, compiling Modules/ccpython.cc stopped due to 
> this error:
> 
>  
> 
> //5/tmp/py/ron/Python-2.2.2/Include/pythonrun.h(45): Error! E415: (col 
> 66) type cannot be defined or
> 
>  declared in a return type
> 
> //5/tmp/py/ron/Python-2.2.2/Include/pythonrun.h(45): Note! N393: (col 
> 66) included from //5/tmp/py/r
> 
> on/Python-2.2.2/Include/Python.h(110)
> 
> //5/tmp/py/ron/Python-2.2.2/Include/pythonrun.h(45): Note! N393: (col 
> 66) included from //5//tmp/py/
> 
> ron/Python-2.2.2/Modules/ccpython.cc(4)
> 
> //5/tmp/py/ron/Python-2.2.2/Include/pythonrun.h(65): Error! E415: (col 
> 68) type cannot be defined or
> 
>  declared in a return type

Looks as if the compiler doesn't like the use of
"struct _somename *" as return type. Try adding typedefs
for these in pythonrun.c.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/