current svn fails to build on mac was indeed not reading the macosx build information from setup.cfg. I've put a patch here:

(patch number 2818964).

The error you're seeing is described in this technical note from Apple:

One thing that changed between and the current SVN version is that we're now using matplotlib's path cleanup code, which is in C++. Maybe the linker is picking up different libraries with C++? Though I haven't seen this error on Mac OS X 10.4 or 10.5.



--- On Thu, 7/9/09, Robin <robince@...287...> wrote:

From: Robin <robince@...287...>
Subject: [Matplotlib-users] current svn fails to build on mac
Date: Thursday, July 9, 2009, 6:11 AM

Just to let folks know the current SVN version fails to
build on a
mac. I built the release ( successfully from
source so I
think my environment, dependencies etc. should be OK.

The problem seems to be building mac os x native backend:
building 'matplotlib.backends._macosx' extension
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-fno-common -dynamic -DNDEBUG -g -O3
-I/usr/local/include -I/usr/include -I/usr/X11R6/include
-Isrc -Iagg24/include -I.
-c src/_macosx.m -o
g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-undefined dynamic_lookup
-L/usr/lib -L/usr/X11R6/lib -lstdc++ -lm -o
-framework Cocoa
ld: cycle in dylib re-exports with
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1

How can I disable building the mac os x backend. I copied
setup.cfg.example to setup.cfg and have "macosx = False"
but it
doesn't seem to have any effect. "python config"
reports "Mac OS X native: yes".



PS - some minor comments about the sourceforge download
page (I dont
know if these can be changed):
On the summary page ( )
the "download now" link which I would think should
point to the
latest release point to 0.91. Then when you do 'view all
matplotlib-maintenance is the default expanded branch of
the tree with
latest version 0.91.4. To get the real new version you have
to close
this tree or scroll down to the normal matplotlib branch.
If I didn't
know the versions to look for beforehand I think this would
be really
confusing - can you make matplotlib the default instead of
Also I went to the Developer page to find the svn repo and
followed the
instructions there which of course started to pull in the
whole repo.
When I found it taking a long time I noticed that I was
branches etc I didnt need. I know this is covered with the
command in the install page, but I thought it would be
handy to change
it here as well to avoid someone else making the mistake I
These are very minor things and normally I wouldn't bother
but since the matplotlib website etc. seems so nice I
figured there is
someone who cares about this stuff - although I'm not sure
whether its
possible to change this stuff in sourceforge.

Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a
limited time,
vendors submitting new applications to BlackBerry App
World(TM) will have
the opportunity to enter the BlackBerry Developer
Challenge. See full prize
details at:
Matplotlib-users mailing list