[Pythonmac-SIG] Re: Compiler flags question for OSX compilation...

Jack Jansen jack@oratrix.nl
Mon, 21 May 2001 10:23:49 +0200


The MacOSX dynamic loader is extremely picky about symbols, and indeed it 
doesn't want a multiply defined symbol anywhere.

So, in your first problem (the _XML_DefaultCurrent one) my guess is that you 
have a dynamic module that is already linked statically. The easiest way to 
find the culprit is to use nm to find who's defining it during the normal 
Python build. The build creates a couple of .a libraries and the proceeds to 
link these together, if you run nm | grep _XML_DefaultCurrent on the libraries 
you should find the object file defining it.

The second problem is a bit strange pyexpat.so seems to have a main program. 
It shouldn't, Python already has a main program. But: on most platforms this 
wouldn't be a problem at all, so it may well be that the way pyexpat is built 
always does this. Is this the pyexpat that's included with Python 2.1, or does 
it come from a different place?
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm