[XML-SIG] pyexpat.c does not compile with Python2.1a2

Uche Ogbuji uche.ogbuji@fourthought.com
Mon, 05 Feb 2001 22:30:54 -0700

> The calls to PyCode_New and PyFrame_New in pyexpat.c need to be updated to 
> include the addition of the freevars and cellvars arguments that were added 
> to PyCode_New and  closure that was added to PyFrame_New 
> copying xml/utils/iso8601.py -> build/lib.linux-i586-2.1/_xmlplus/utils
> copying xml/utils/qp_xml.py -> build/lib.linux-i586-2.1/_xmlplus/utils
> running build_ext
> building '_xmlplus.parsers.pyexpat' extension
> creating build/temp.linux-i586-2.1
> gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -DXML_NS -DXML_DTD 
> -DEXPAT_VERSION=0x010200 -Iextensions/expat/xmltok 
> -Iextensions/expat/xmlparse -I/usr/local/include/python2.1 -c 
> extensions/pyexpat.c -o build/temp.linux-i586-2.1/pyexpat.o
> extensions/pyexpat.c: In function `getcode':
> extensions/pyexpat.c:266: warning: passing arg 11 of `PyCode_New' makes 
> pointer from integer without a cast
> extensions/pyexpat.c:266: too few arguments to function `PyCode_New'
> extensions/pyexpat.c: In function `call_with_frame':
> extensions/pyexpat.c:293: too few arguments to function `PyFrame_New'
> error: command 'gcc' failed with exit status 1

Odd.  It does compile for me with Python 2.1a2, but then I'm using PyXML from 

Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python