Problem building CVS version on OS X

Hi folks,

I'm having trouble building the current CVS version of mpl
on OS X (10.3.9, Python 2.4). I am not using the 0.85 release
because I want to use numerix=scipy. I previously installed
a CVS checkout from Dec 2, and it built fine. It seemed to
plot fine, except that the TeX example produced blank or
flat-line labels. I just installed the latest scipy_core
release (and the latest scipy from svn), and also thought
I'd try the latest mpl from CVS to see if the TeX problem was
fixed. Now it won't build; about 6min into the build it exits:

gcc: src/mplutils.cpp
gcc: CXX/cxx_extensions.cxx
gcc: src/_na_transforms.cpp
src/_na_transforms.cpp: In member function `Py::Object
   Bbox::update_numerix(const Py::Tuple&)':
src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function)
src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
src/_na_transforms.cpp: In member function `Py::Object
   Bbox::update_numerix(const Py::Tuple&)':
src/_na_transforms.cpp:493: error: `isnan' undeclared (first use this function)
src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/usr/local/include -I/usr/include -I/sw/include -I. -I/Library/
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/_na_transforms.cpp -o build/temp.darwin-7.9.0-
Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=1" failed with exit status 1

I'd appreciate any help on how to fix this. I'm teaching a class
of students using Python in about 4 weeks, and I need to provide
them a version of things to set up on their laptops that I know
will work with my examples.

Thanks,
Tom

PS: If anyone has any tips on getting scipy to build properly on
OS X, pass them along. The current version appears unable to find
Apple's atlas, nor does it find the fftw libraries I installed in
/usr/lib.

···

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Tom,

The output to gcc shows that NUMARRAY is defined. Try undefining NUMARRAY and NUMERIC.

– Paul

···

On 12/18/05, Tom Loredo <loredo@…296…> wrote:

Hi folks,

I’m having trouble building the current CVS version of mpl
on OS X (10.3.9, Python 2.4). I am not using the 0.85 release
because I want to use numerix=scipy. I previously installed
a CVS checkout from Dec 2, and it built fine. It seemed to

plot fine, except that the TeX example produced blank or
flat-line labels. I just installed the latest scipy_core
release (and the latest scipy from svn), and also thought
I’d try the latest mpl from CVS to see if the TeX problem was

fixed. Now it won’t build; about 6min into the build it exits:

gcc: src/mplutils.cpp
gcc: CXX/cxx_extensions.cxx
gcc: src/_na_transforms.cpp
src/_na_transforms.cpp: In member function `Py::Object
Bbox::update_numerix(const Py::Tuple&)':

src/_na_transforms.cpp:493: error: isnan' undeclared (first use this function) src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only once for each function it appears in.) src/_na_transforms.cpp: In member function Py::Object

Bbox::update_numerix(const Py::Tuple&)‘:
src/_na_transforms.cpp:493: error: `isnan’ undeclared (first use this function)
src/_na_transforms.cpp:493: error: (Each undeclared identifier is reported only

once for each function it appears in.)
error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/usr/local/include -I/usr/include -I/sw/include -I. -I/Library/

Frameworks/Python.framework/Versions/2.4/include/python2.4 -c src/_na_transforms.cpp -o build/temp.darwin-7.9.0-
Power_Macintosh-2.4/src/_na_transforms.o -DNUMARRAY=1" failed with exit status 1

I’d appreciate any help on how to fix this. I’m teaching a class

of students using Python in about 4 weeks, and I need to provide
them a version of things to set up on their laptops that I know
will work with my examples.

Thanks,
Tom

PS: If anyone has any tips on getting scipy to build properly on

OS X, pass them along. The current version appears unable to find
Apple’s atlas, nor does it find the fftw libraries I installed in
/usr/lib.


This mail sent through IMP: http://horde.org/imp/


This SF.net email is sponsored by: Splunk Inc. Do you grep through log files

for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!

http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Paul
Barrett,
PhD
Johns Hopkins University
Assoc. Research Scientist Dept of Physics and Astronomy
Phone: 410-516-5190 Baltimore, MD 21218