Compiling Python 2.0 on RedHat 7.0. -> XML stuff missing.

deragon at aqiii.org deragon at aqiii.org
Sat Feb 10 15:01:31 EST 2001


Greetings.


  I am trying to compile Python 2.0 on RedHat 7.0, but I get
the following problem:

gcc -fpic  -I/usr/local/include/xmlparse -g -O2 -Wall
-Wstrict-prototypes -I./../Include -I.. -DHAVE_CONFIG_H -c ./pyexpat.c
./pyexpat.c: In function `newxmlparseobject':
./pyexpat.c:639: warning: implicit declaration of function
`XML_ParserCreateNS'
./pyexpat.c:639: warning: assignment makes pointer from integer
without a cast
./pyexpat.c: In function `pyxml_SetStartNamespaceDeclHandler':
./pyexpat.c:1024: `XML_SetNamespaceDeclHandler' undeclared (first use
in this function)
./pyexpat.c:1024: (Each undeclared identifier is reported only once
./pyexpat.c:1024: for each function it appears in.)
./pyexpat.c: In function `pyxml_SetEndNamespaceDeclHandler':
./pyexpat.c:1032: `XML_SetNamespaceDeclHandler' undeclared (first use
in this function)
./pyexpat.c: In function `pyxml_SetStartCdataSection':
./pyexpat.c:1040: `XML_SetCdataSectionHandler' undeclared (first use
in this function)
./pyexpat.c: In function `pyxml_SetEndCdataSection':
./pyexpat.c:1048: `XML_SetCdataSectionHandler' undeclared (first use
in this function)
./pyexpat.c: At top level:
./pyexpat.c:1077: `XML_SetCommentHandler' undeclared here (not in a
function)
./pyexpat.c:1077: initializer element is not constant
./pyexpat.c:1077: (near initialization for `handler_info[8].setter')
./pyexpat.c:1089: `XML_SetDefaultHandlerExpand' undeclared here (not
in a function)
./pyexpat.c:1089: initializer element is not constant
./pyexpat.c:1089: (near initialization for `handler_info[12].setter')
./pyexpat.c:1092: `XML_SetNotStandaloneHandler' undeclared here (not
in a function)
./pyexpat.c:1092: initializer element is not constant
./pyexpat.c:1092: (near initialization for `handler_info[13].setter')
make[1]: *** [pyexpat.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/Python-2.0/Modules'
make: *** [sharedmods] Error 2


  I do have expat-1.95.0-1 installed.  I am building the
  python-2.0-2tummy.src.rpm.  Anybody have a clue how to get passed
  this problem?

  Or if there are any other ways to compile Python 2.0 on RedHat 7.0,
  please provide the "receipe".


Sincerely,
Hans Deragon





More information about the Python-list mailing list