From: Tom L. <lo...@as...> - 2005-12-19 18:29:12
|
Andrew, Thanks for the suggestions, which proved helpful---transforms now builds; the rest of the build is proceeding and my fingers are crossed. Here's what I found/did. Including math.h did not help. Poking around with man and in /usr/include revealed that isnan is defined as a macro, not a function; math.h includes /usr/include/architecture/ppc/math.h and the definition is in there. I did some googling and found one other case of this causing a problem; a workaround is provided here: http://www.ssl.berkeley.edu/pipermail/boinc_dev/2004-October/000529.html It involves including math.h and defining a prototype for isnan explicitly. I tried this and the build failed, but with a slightly different error: gcc: src/_na_transforms.cpp src/_na_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)': src/_na_transforms.cpp:452: error: `isnan' not declared src/_na_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)': src/_na_transforms.cpp:452: error: `isnan' not declared At this point, I commented out the "using..." line that was just added (reasoning that isnan is now in the file's namespace), and the build succeeded. I don't know the build process well enough to know if this can be easily automated in a cross-platform manner, or if there is a better solution. As I write the numarray and scipy builds of _transforms.cpp have both succeeded. Hopefully that's the only stumbling block. -Tom ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |