pyexpat error building Python 2.1c1

Glenn R. Williams gloonie at netscape.net
Sun Apr 15 11:49:01 EDT 2001


Hi All,

I just downloaded and built Release Candidate 1, and get an error when
it tries to compile pyexpat (see messages below from the build). 

The dangerous thing is that, since I have pyexpat already installed on
my system, all the tests from 'make test' work fine!

I built this copy of 2.1c1 in a separate directory, using the normal
configure, make and make test sequence. This is on Redhat 7.0.

Is there something wrong with pyexpat?

TIA,

Glenn

-------- Here is the relevent section of the build---------------------
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I.
-I/home/gloonie/buildpython/Python-2.1c1/./Include -I/usr/local/include
-IInclude/ -c /home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c
-o build/temp.linux-i686-2.1/pyexpat.o
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In function
`my_StartElementHandler':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:396: warning:
implicit declaration of function `XML_GetSpecifiedAttributeCount'
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In function
`newxmlparseobject':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1147: warning:
implicit declaration of function `XML_ParserCreateNS'
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1147: warning:
assignment makes pointer from integer without a cast
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In function
`initpyexpat':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1597:
`XML_ERROR_NOT_STANDALONE' undeclared (first use in this function)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1597: (Each
undeclared identifier is reported only once
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1597: for each
function it appears in.)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In function
`pyxml_SetStartNamespaceDeclHandler':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1689:
`XML_SetNamespaceDeclHandler' undeclared (first use in this function)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In function
`pyxml_SetEndNamespaceDeclHandler':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1697:
`XML_SetNamespaceDeclHandler' undeclared (first use in this function)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In function
`pyxml_SetStartCdataSection':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1705:
`XML_SetCdataSectionHandler' undeclared (first use in this
function)/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: In
function `pyxml_SetEndCdataSection':
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1713:
`XML_SetCdataSectionHandler' undeclared (first use in this
function)/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c: At
top level:
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1762:
`XML_SetCommentHandler' undeclared here (not in a function)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1762:
initializer element is not constant
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1762: (near
initialization for `handler_info[8].setter')
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1774:
`XML_SetDefaultHandlerExpand' undeclared here (not in a function)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1774:
initializer element is not constant
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1774: (near
initialization for `handler_info[12].setter')
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1777:
`XML_SetNotStandaloneHandler' undeclared here (not in a function)
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1777:
initializer element is not constant
/home/gloonie/buildpython/Python-2.1c1/Modules/pyexpat.c:1777: (near
initialization for `handler_info[13].setter')
WARNING: building of extension "pyexpat" failed: command 'gcc' failed
with exit status 1
-- 
Glenn R. Williams
Director, Special Projects
RSG Systems, Inc.



More information about the Python-list mailing list