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

Michael McLay mclay@nist.gov
Mon, 5 Feb 2001 21:03:41 -0500


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


according to modsupport.h
   25-Jan-2001  FLD     1010    Parameters added to PyCode_New() and
                                PyFrame_New(); Python 2.1a2

In compile.c 
  PyCodeObject *
  PyCode_New(int argcount, int nlocals, int stacksize, int flags,
	   PyObject *code, PyObject *consts, PyObject *names,
	   PyObject *varnames, PyObject *freevars, PyObject *cellvars,
	   PyObject *filename, PyObject *name, int firstlineno,
	   PyObject *lnotab) 
  {

and frameobject.c
  PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals, 
	    PyObject *locals, PyObject *closure)
  {