Lorenz Schori <lorenz.schori@gmx.ch> writes:
Date: Mon, 06 Aug 2007 22:36:25 +0200 From: Mark Asbach <asbach <at> ient.rwth-aachen.de> when using py-xml together with py-wxpython, I get a reproductible bus error whenever I try to use sax or minidom (both relying on expat). Invoking the parsers crashes the application with a bus error. The workaround I found is to import xml.parsers.pyexpat before importing wx - but this is a workaround, not a bug fix.
<backtrace clipped>
Can someone comment on this? What could I do to narrow the bug?
Hi Mark,
* This problem may be caused by wxPython being built/linking against older versions of libexpat than pyexpat is.
Hi
Apparently the wxwidgets Portfile is causing this error. "configure.ldflags" lacks "-L${prefix}/lib" and thus configure thinks that expat does not exist in the system and links to its own version of the library.
I think the Portfile's configure.ldflags should be configure.ldflags-append. -L${prefix}/lib is is a default now, but if you don't use -append it gets overwritten. Mark