strange bug with python24+darwin_8, py-wxpython and xml parsing

markd at macports.org markd at macports.org
Thu Aug 9 14:11:51 PDT 2007


Lorenz Schori <lorenz.schori at 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




More information about the macports-users mailing list