[Python-bugs-list] [Bug #129173] setup.py tries to build pyexpat in the absence of xmlparse.h

noreply@sourceforge.net noreply@sourceforge.net
Wed, 17 Jan 2001 12:30:14 -0800


Bug #129173, was updated on 2001-Jan-17 12:13
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Submitted by: montanaro
Assigned to : akuchling
Summary: setup.py tries to build pyexpat in the absence of xmlparse.h

Details: Using the latest version of Andrew's setup.py, I get the following
build failure:

building 'pyexpat' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -fpic -I.
-I/home/beluga/skip/src/python/dist/src/./Include -IInclude/ -c
/home/beluga/skip/src/python/dist/src/Modules/pyexpat.c -o
build/temp.linux-i686-2.1/pyexpat.o
/home/beluga/skip/src/python/dist/src/Modules/pyexpat.c:5: xmlparse.h: No
such file or directory
error: command 'gcc' failed with exit status 1

Looks like it fails to properly test the prerequisites for
building the pyexpat module.


Follow-Ups:

Date: 2001-Jan-17 12:30
By: akuchling

Comment:
This means you must have a libexpat.a installed somewhere, but not
xmlparse.h.  I used a beta of Expat 1.2, which installs itself normally, so
this didn't happen.

There's a '#if HAVE_EXPAT_H' test in pyexpat.c, but configure
doesn't check for expat.h.

I think I'll change setup.py to check for expat.h  and xmlpath.h in that
order.



-------------------------------------------------------

Date: 2001-Jan-17 12:14
By: montanaro

Comment:
assigned to AMK since this is his baby...
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=129173&group_id=5470