[Python-bugs-list] [ python-Bugs-768306 ] Distutils broken on Os X

SourceForge.net noreply@sourceforge.net
Wed, 09 Jul 2003 01:28:43 -0700


Bugs item #768306, was opened at 2003-07-09 11:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=768306&group_id=5470

Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Torsten Rueger (torstenrueger)
Assigned to: Jack Jansen (jackjansen)
Summary: Distutils broken on Os X

Initial Comment:
Os X 10.2.6.
Python 2.3b2 from http://homepages.cwi.nl/~jack/
macpython.html#beta

Trying to comiple py-xml-rpc 2.8.3 from http://
sourceforge.net/projects/py-xmlrpc/

I get a ton of multiple defined symbols like:
ld: multiple definitions of symbol _rpcBase64Type
build/temp.darwin-6.6-Power_Macintosh-2.3/src/rpcBase64.o 
definition of _rpcBase64Type in section (__DATA,__data)
build/temp.darwin-6.6-Power_Macintosh-2.3/src/
rpcBoolean.o definition of _rpcBase64Type in section 
(__DATA,__common)
ld: multiple definitions of symbol _rpcBoolType
.....

I tracked this down to the presence of the compile flag "-
fno-common" used by the distutils. The man page for gcc 
states quite clearly that this is not usually an advisable flag, 
quote:

  -fno-common
           In C, allocate even uninitialized global variables in
           the data section of the object file, rather than gen-
           erating them as common blocks.  This has the effect
           that if the same variable is declared (without
           "extern") in two different compilations, you will get
           an error when you link them.  The only reason this
           might be useful is if you wish to verify that the pro-
           gram will work on other systems which always work 
this
           way.

I have compiled and linked all files with the makefile that is 
also distributed in py-xmlrpc, but I had to change the link 
options to "-flat_namespace -undefined warning".

I can help in testing a fix if someone can assist with distutils 
knowledge.

Torsten

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=768306&group_id=5470