build problem with matplotlib-0.81

I got these errors doing "python setup.py build" on my redhat 9 system using python 2.4.
Keith

/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/c++/3.2/i386-redhat-linux/bits/os_defines.h:39,
                 from /usr/include/c++/3.2/i386-redhat-linux/bits/c++config.h:34,
                 from /usr/include/c++/3.2/iosfwd:44,
                 from /usr/include/c++/3.2/ios:44,
                 from /usr/include/c++/3.2/istream:44,
                 from /usr/include/c++/3.2/sstream:44,
                 from src/ft2font.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
src/ft2font.cpp: In member function `Py::Object Glyph::get_path(FT_FaceRec_*
   const&)':
src/ft2font.cpp:111: `FT_CURVE_TAG_CUBIC' undeclared (first use this function)
src/ft2font.cpp:111: (Each undeclared identifier is reported only once for each
   function it appears in.)
src/ft2font.cpp:114: `FT_CURVE_TAG_CONIC' undeclared (first use this function)
src/ft2font.cpp:117: `FT_CURVE_TAG_ON' undeclared (first use this function)
src/ft2font.cpp: In member function `Py::Object FT2Font::set_text(const
   Py::Tuple&)':
src/ft2font.cpp:719: `FT_KERNING_DEFAULT' undeclared (first use this function)
src/ft2font.cpp: In function `void initft2font()':
src/ft2font.cpp:1686: `FT_KERNING_UNFITTED' undeclared (first use this
   function)
src/ft2font.cpp:1687: `FT_KERNING_UNSCALED' undeclared (first use this
   function)
error: command '/usr/bin/gcc' failed with exit status 1

Keith: You are freetype package is too old, you need 2.1.9 or newer.

-Jeff

···

keith.briggs@...644... wrote:

I got these errors doing "python setup.py build" on my redhat 9 system using python 2.4.
Keith

/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/c++/3.2/i386-redhat-linux/bits/os_defines.h:39,
                from /usr/include/c++/3.2/i386-redhat-linux/bits/c++config.h:34,
                from /usr/include/c++/3.2/iosfwd:44,
                from /usr/include/c++/3.2/ios:44,
                from /usr/include/c++/3.2/istream:44,
                from /usr/include/c++/3.2/sstream:44,
                from src/ft2font.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
src/ft2font.cpp: In member function `Py::Object Glyph::get_path(FT_FaceRec_*
  const&)':
src/ft2font.cpp:111: `FT_CURVE_TAG_CUBIC' undeclared (first use this function)
src/ft2font.cpp:111: (Each undeclared identifier is reported only once for each
  function it appears in.)
src/ft2font.cpp:114: `FT_CURVE_TAG_CONIC' undeclared (first use this function)
src/ft2font.cpp:117: `FT_CURVE_TAG_ON' undeclared (first use this function)
src/ft2font.cpp: In member function `Py::Object FT2Font::set_text(const
  Py::Tuple&)':
src/ft2font.cpp:719: `FT_KERNING_DEFAULT' undeclared (first use this function)
src/ft2font.cpp: In function `void initft2font()':
src/ft2font.cpp:1686: `FT_KERNING_UNFITTED' undeclared (first use this
  function)
src/ft2font.cpp:1687: `FT_KERNING_UNSCALED' undeclared (first use this
  function)
error: command '/usr/bin/gcc' failed with exit status 1

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124