[XML-SIG] [ pyxml-Bugs-477717 ] Mac OS X 10.1 compile error w/fix
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 02 Nov 2001 20:40:29 -0800
Bugs item #477717, was opened at 2001-11-02 20:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=477717&group_id=6473
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dan Grassi (dgrassi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mac OS X 10.1 compile error w/fix
Initial Comment:
Under Mac OS X version 10.1 twolevel namespaces are
used by default. Unfortunatly this causes a link
error. One resolution is to modify setup.py and pass
-flat_namespace in extra_link_args. This can be
accomplished by addind a check dor darwin1 and
appending this to LDFLAGS just after parsing argv[] as
follows.
if sys.platform == "darwin1": # Mac OS X
LDFLAGS.append('-flat_namespace')
Unfortunatly this is not quite enough because
'.parsers.sgmlop' and '.utils.boolean' do not pass
extra_link_args. This can be resolved as follows:
# Build sgmlop
ext_modules.append(
Extension(xml('.parsers.sgmlop'),
sources=['extensions/sgmlop.c'],
extra_link_args=LDFLAGS))
# Build boolean
ext_modules.append(
Extension(xml('.utils.boolean'),
sources=['extensions/boolean.c'],
extra_link_args=LDFLAGS))
I have attached a modified file for review.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=477717&group_id=6473