problems compiling 0.87.3

Hi,

I'm trying to compile 0.87.3 on a RedHat Enterprise Server 4,
but I'm running into C++ compilation errors with one of
the numpy headers.

Here are versions of various requirements:
gcc 3.4.3
python 2.4.2
numpy 0.9.8
pygtk 2.8.6

The errors I'm getting are something like:

running build_ext
building 'matplotlib._ns_transforms' extension
gcc options: '-fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -O3 -mtune=i686 -mcpu=i686 -march=i686 -O3
-mtune=i686 -m
u=i686 -march=i686 -fPIC'
compile options: '-Isrc -I.
-I/opt/lib/python2.4/site-packages/numpy/core/include
-I/usr/local/include -I/usr/include -I. -I/opt/inclu
/python2.4 -c'
extra options: '-DSCIPY=1'
gcc: src/_ns_transforms.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from /opt/include/python2.4/Python.h:8,
                 from ./CXX/Objects.hxx:9,
                 from ./CXX/Extensions.hxx:19,
                 from src/_transforms.h:12,
                 from src/_ns_transforms.cpp:4:
/opt/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/i386-redhat-linux/bits/os_defines.h:39,
                 from
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/i386-redhat-linux/bits/c++config.h:35,
                 from
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/functional:54,
                 from src/_ns_transforms.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the
previous definition
In file included from
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/arrayobject.h:1346,
                 from src/_ns_transforms.cpp:15:
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:
In function `int import_array()':
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:765:
error: expected primary-expression before ')' token
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:765:
error: `NumPyuint' undeclared (first use this functi
)
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:765:
error: (Each undeclared identifier is reported only
ce for each function it appears in.)
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:765:
error: expected primary-expression before "void"
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:765:
error: expected `)' before "PyArray_API"
/opt/lib/python2.4/site-packages/numpy/core/include/numpy/__multiarray_api.h:771:
error: expected `)' before "return"
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]':
src/_transforms.h:57: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = Func]':
src/_transforms.h:378: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]':
src/_transforms.h:465: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = Transformation]':
src/_transforms.h:537: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = Point]':
src/_ns_transforms.cpp:128: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = Interval]':
src/_ns_transforms.cpp:143: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect
./CXX/Extensions.hxx: In constructor
`Py::PythonExtension<T>::PythonExtension() [with T = Bbox]':
src/_ns_transforms.cpp:192: instantiated from here
./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect

I'm stumped as to what to try next. Any advice?

Thanks,
--Dave