[Pythonmac-SIG] Bug in Numeric?
Seth Delackner
seth@jtan.com
Fri, 13 Sep 2002 18:01:33 -0700
How did you even BUILD numeric on the Mac?
I just built and installed a 2.2.1 framework python, and with either
Numeric 22 or 21.3 on running "setup.py build" the step:
building 'umath' extension
cc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double
-no-cpp-precomp -fno-common -dynamic -DHAVE_INVERSE_HYPERBOLIC -IInclude
-IPackages/FFT/Include -IPackages/RNG/Include
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c
Src/umathmodule.c -o build/temp.darwin-5.5-Power
Macintosh-2.3/umathmodule.o
Src/umathmodule.c: In function `UINT_multiply':
Src/umathmodule.c:718: warning: `x' might be used uninitialized in this
function
Src/umathmodule.c: At top level:
Src/umathmodule.c:2394: `acosh' undeclared here (not in a function)
Src/umathmodule.c:2394: too many errors, bailing out
error: command 'cc' failed with exit status 1
Fails, with an error about 'acosh' being undeclared, which is total
hogwash because it is in <math.h>. In fact, I tried a simple test file
and the following fails to compile:
#include "Python.h"
#include <math.h>
static void* a[] = { (void*)acosh};
int main(void){ return 0; }
With the same acosh error.
Help?