From: Robert K. <rob...@gm...> - 2006-05-24 01:20:31
|
[snipping cross-posts] Samuel M. Smith wrote: > So I could either regress numpy or build Matplotlib from source. Since > I like being able to get > the latest bug fixes for Matplotlib and the last time I build it from > svn it went without a hitch, I > decided to try to build Matplotlib from source. Unfortunately it didn't > work this time. I get the error shown below. > I have a powerbook g4 with 10.4.6 and Universal Python > 2.4.3-2006-04-07.dmg. What am I missing? > gcc: src/_ns_cntr.c > In file included from /usr/include/math.h:26, > from /Library/Frameworks/Python.framework/Versions/ > 2.4/include/python2.4/pyport.h:90, > from /Library/Frameworks/Python.framework/Versions/ > 2.4/include/python2.4/Python.h:55, > from src/_ns_cntr.c:17: > /usr/include/architecture/ppc/math.h:477: warning: conflicting types > for built-in function 'scalb' > In file included from src/_ns_cntr.c:28: > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- > packages/numpy/core/include/numpy/arrayobject.h:139: error: > redefinition of typedef 'ushort' > /usr/include/sys/types.h:85: error: previous declaration of 'ushort' > was here It looks like matplotlib should be building all of the _ns_*.c modules with -DPY_ARRAY_TYPES_PREFIX=something_or_other . -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |