Building problem under aplha/OSF1

Jean-Luc> GTKAgg requires pygtk GTKAgg requires pygtk Traceback
    Jean-Luc> (most recent call last): File "setup.py", line 88, in ?
    Jean-Luc> build_agg(ext_modules, packages) File
    Jean-Luc> "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line
    Jean-Luc> 298, in build_agg add_agg_flags(module) File
    Jean-Luc> "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line
    Jean-Luc> 83, in add_agg_flags add_base_flags(module) File
    Jean-Luc> "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line
    Jean-Luc> 64, in add_base_flags incdirs = [os.path.join(p,
    Jean-Luc> 'include') for p in basedir[sys.platform] KeyError:
    Jean-Luc> 'osf1V5'

You are apparently working on a platform 'osf1V5' that we haven't
encountered before. What platform is this?

You need to add that platform as a key to the
basedir dictionary in setupext.py

basedir = {

    'win32' : ['win32_static',],
    'linux2' : ['/usr/local', '/usr',],
    'linux' : ['/usr/local', '/usr',],
    'darwin' : ['/usr/local', '/usr', '/sw'],
    'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
    'osf1V5' : ['/your/base/dir1', '/your/base/dir2'],
}

where /your/base/dir are the base paths to the system libraries.
Also, you may want to install pygtk or Tkinter or wxpython if you want
to use matplotlib from a GUI.

JDH

Hello,

You are apparently working on a platform 'osf1V5' that we haven't
encountered before. What platform is this?

It's a sun (alpha processor) with a proprietary unix (OSF1 version 5, i think it's tru64).

Also, you may want to install pygtk or Tkinter or wxpython if you want
to use matplotlib from a GUI.

If i don't do a mistake, i have Tkinter

Well, after the modification of base.dir the building start and fail with this error message (sorry for the length but i don't know which part is interesting)

  creating build/temp.osf1-V5.1-alpha-2.3/agg2/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c agg2/src/agg_arrowhead.cpp -o build/temp.osf1-V5.1-alpha-2.3/agg2/src/agg_arrowhead.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c agg2/src/agg_trans_warp_magnifier.cpp -o build/temp.osf1-V5.1-alpha-2.3/agg2/src/agg_trans_warp_magnifier.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c agg2/src/agg_scanline_u8.cpp -o build/temp.osf1-V5.1-alpha-2.3/agg2/src/agg_scanline_u8.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c src/_backend_agg.cpp -o build/temp.osf1-V5.1-alpha-2.3/src/_backend_agg.o
In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8,
                  from src/ft2font.h:6,
                  from src/_backend_agg.cpp:3:
/home2/menut/prg/python2.3/include/python2.3/pyconfig.h:840:1: warning: "_OSF_SOURCE" redefined
In file included from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/string.h:61,
                  from /usr/local/include/c++/3.3.3/cstring:51,
                  from src/_backend_agg.cpp:1:
/usr/include/standards.h:206:1: warning: this is the location of the previous definition
In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8,
                  from src/ft2font.h:6,
                  from src/_backend_agg.cpp:3:
/home2/menut/prg/python2.3/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/string.h:61,
                  from /usr/local/include/c++/3.3.3/cstring:51,
                  from src/_backend_agg.cpp:1:
/usr/include/standards.h:198:1: warning: this is the location of the previous definition
In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8,
                  from src/ft2font.h:6,
                  from src/_backend_agg.cpp:3:
/home2/menut/prg/python2.3/include/python2.3/pyconfig.h:859:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/string.h:61,
                  from /usr/local/include/c++/3.3.3/cstring:51,
                  from src/_backend_agg.cpp:1:
/usr/include/standards.h:188:1: warning: this is the location of the previous definition
In file included from /usr/include/sys/resource.h:60,
                  from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/wait.h:170,
                  from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/stdlib.h:192,
                  from /home2/menut/prg/python2.3/include/python2.3/Python.h:36,
                  from src/ft2font.h:6,
                  from src/_backend_agg.cpp:3:
/usr/include/sys/time.h:71: error: 'suseconds_t' is used as a type, but is not
    defined as a type.
In file included from /home2/menut/prg/python2.3/include/python2.3/pyport.h:157,
                  from /home2/menut/prg/python2.3/include/python2.3/Python.h:48,
                  from src/ft2font.h:6,
                  from src/_backend_agg.cpp:3:
/usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/stat.h:213: error: '
    blksize_t' is used as a type, but is not defined as a type.
/usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/stat.h:213: error: '
    blkcnt_t' is used as a type, but is not defined as a type.
In file included from src/_backend_agg.cpp:3:
src/ft2font.h:7:22: ft2build.h: No such file or directory
src/ft2font.h:8:10: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:9:10: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:10:10: #include expects "FILENAME" or <FILENAME>
In file included from src/_backend_agg.cpp:3:
src/ft2font.h:29: error: 'FT_Face' is used as a type, but is not defined as a
    type.
src/ft2font.h:31: error: 'FT_Matrix' is used as a type, but is not defined as a
    type.
src/ft2font.h:32: error: 'FT_Vector' is used as a type, but is not defined as a
    type.
src/ft2font.h:33: error: 'FT_Error' is used as a type, but is not defined as a
    type.
src/ft2font.h:34: error: parse error before `[' token
src/ft2font.h:35: error: parse error before `[' token
In file included from /usr/local/include/c++/3.3.3/bits/locale_facets.tcc:41,
                  from /usr/local/include/c++/3.3.3/locale:47,
                  from /usr/local/include/c++/3.3.3/bits/istream.tcc:37,
                  from /usr/local/include/c++/3.3.3/istream:768,
                  from /usr/local/include/c++/3.3.3/fstream:45,
                  from src/_backend_agg.h:25,
                  from src/_backend_agg.cpp:4:
/usr/local/include/c++/3.3.3/cmath: In function `long double std::acos(long
    double)':
/usr/local/include/c++/3.3.3/cmath:194: error: `::acosl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::asin(long
    double)':
/usr/local/include/c++/3.3.3/cmath:212: error: `::asinl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::atan(long
    double)':
/usr/local/include/c++/3.3.3/cmath:230: error: `::atanl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::atan2(long
    double, long double)':
/usr/local/include/c++/3.3.3/cmath:249: error: `::atan2l' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::ceil(long
    double)':
/usr/local/include/c++/3.3.3/cmath:268: error: `::ceill' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::cosh(long
    double)':
/usr/local/include/c++/3.3.3/cmath:296: error: `::coshl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::exp(long
    double)':
/usr/local/include/c++/3.3.3/cmath:314: error: `::expl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::floor(long
    double)':
/usr/local/include/c++/3.3.3/cmath:342: error: `::floorl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::fmod(long
    double, long double)':
/usr/local/include/c++/3.3.3/cmath:361: error: `::fmodl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::frexp(long
    double, int*)':
/usr/local/include/c++/3.3.3/cmath:380: error: `::frexpl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::ldexp(long
    double, int)':
/usr/local/include/c++/3.3.3/cmath:400: error: `::ldexpl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::log(long
    double)':
/usr/local/include/c++/3.3.3/cmath:419: error: `::logl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::log10(long
    double)':
/usr/local/include/c++/3.3.3/cmath:437: error: `::log10l' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::modf(long
    double, long double*)':
/usr/local/include/c++/3.3.3/cmath:461: error: `::modfl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::pow(long
    double, long double)':
/usr/local/include/c++/3.3.3/cmath:495: error: `::powl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::sinh(long
    double)':
/usr/local/include/c++/3.3.3/cmath:536: error: `::sinhl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::tan(long
    double)':
/usr/local/include/c++/3.3.3/cmath:564: error: `::tanl' undeclared (first use
    here)
/usr/local/include/c++/3.3.3/cmath: In function `long double std::tanh(long
    double)':
/usr/local/include/c++/3.3.3/cmath:582: error: `::tanhl' undeclared (first use
    here)
error: command 'gcc' failed with exit status 1

Jean-Luc