Hello everyone,

I need some help for building matplotlib from source. I'm using Debian sid
on 64bit.
I had errors when trying to build version 0.98.5.1 and now it's not gone
with 0.98.5.2, so I hope mailing is appropriate.
I've appended the whole log.

Thanks in advance.

Best wishes, Fabio Tonti
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 0.98.5.2
                python: 2.5.2 (r252:60911, Jan  4 2009, 21:59:32)  [GCC
                        4.3.2]
              platform: linux2

REQUIRED DEPENDENCIES
                 numpy: 1.1.1
             freetype2: found, but unknown version (no pkg-config)
                        * WARNING: Could not find 'freetype2' headers in any
                        * of '/usr/local/include', '/usr/include', '.',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
               Tkinter: no
                        * Using default library and include directories for
                        * Tcl and Tk because a Tk window failed to open.
                        * You may need to define DISPLAY for Tk to work so
                        * that setup can determine where your libraries are
                        * located. Tkinter present, but header files are not
                        * found. You may need to install development
                        * packages.
              wxPython: no
                        *  WXAgg's accelerator requires `wx-config'.  The
                        * `wx-config' executable could not be located in any
                        * directory of the PATH environment variable. If you
                        * want to build WXAgg, and wx-config is in some
                        * other location or has some other name, set the
                        * WX_CONFIG environment variable to the full path of
                        * the executable like so:  export WX_CONFIG=/usr/lib
                        * /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config
                        * You may need to install 'dev' package(s) to
                        * provide header files.
                  Gtk+: no
                        * Could not find Gtk+ headers in any of
                        * '/usr/local/include', '/usr/include', '.'
       Mac OS X native: no
                    Qt: no
                   Qt4: no
                 Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: 1.4.1
                  pytz: 2008h

OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: 8.63
                 latex: 3.141592
               pdftops: 3.00

[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections', 
'mpl_toolkits', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 
'matplotlib.numerix.ma', 'matplotlib.numerix.npyma', 
'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 
'matplotlib.numerix.fft', 'matplotlib.delaunay']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> 
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> 
build/lib.linux-x86_64-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/lib/python2.5/site-packages/numpy/core/include 
-I/usr/local/include -I/usr/include -I. 
-I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2 
-I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 
-I/usr/include/python2.5 -c src/ft2font.cpp -o 
build/temp.linux-x86_64-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from ./CXX/Extensions.hxx:48,
                 from src/ft2font.h:4,
                 from src/ft2font.cpp:1:
./CXX/WrapPython.h:42:20: error: Python.h: No such file or directory
In file included from ./CXX/Extensions.hxx:50,
                 from src/ft2font.h:4,
                 from src/ft2font.cpp:1:
./CXX/Config.hxx:112:2: error: #error not defined PY_MAJOR_VERSION
In file included from src/ft2font.cpp:1:
src/ft2font.h:13:22: error: ft2build.h: No such file or directory
src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
In file included from 
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from src/ft2font.cpp:6:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:100:2:
 error: #error Must use Python with unicode enabled.
In file included from ./CXX/Exception.hxx:44,
                 from ./CXX/Objects.hxx:44,
                 from ./CXX/Extensions.hxx:51,
                 from src/ft2font.h:4,
                 from src/ft2font.cpp:1:
./CXX/IndirectPythonInterface.hxx:50: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:51: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:52: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:53: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:55: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:56: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:57: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:58: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:59: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:60: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:61: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:62: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:63: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:64: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:65: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:66: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:67: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:68: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:69: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:70: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:71: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:72: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:73: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:74: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:75: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:76: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:81: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:93: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:99: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:100: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:100: error: ‘o’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:102: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:103: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:103: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:105: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:106: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:106: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:108: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:109: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:109: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:111: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:112: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:112: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:114: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:115: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:115: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:117: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:118: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:118: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:120: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:121: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:121: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:123: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:124: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:124: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:126: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:127: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:127: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:129: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:130: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:130: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:132: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:133: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:133: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:135: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:136: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:136: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:138: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:139: error: redefinition of ‘bool 
Py::_List_Check’
./CXX/IndirectPythonInterface.hxx:100: error: ‘bool Py::_List_Check’ 
previously defined here
./CXX/IndirectPythonInterface.hxx:139: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:139: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:141: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:142: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:142: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:144: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:145: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:145: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:147: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:148: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:148: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:150: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:151: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:151: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:153: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:154: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:154: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:156: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:157: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:157: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:159: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:160: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:160: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:162: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:163: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:163: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:165: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:166: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:166: error: ‘v’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:168: error: expected constructor, destructor, 
or type conversion before ‘*’ token
./CXX/IndirectPythonInterface.hxx:169: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:169: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:187: error: variable or field ‘_XINCREF’ 
declared void
./CXX/IndirectPythonInterface.hxx:187: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:187: error: ‘op’ was not declared in this 
scope
./CXX/IndirectPythonInterface.hxx:188: error: variable or field ‘_XDECREF’ 
declared void
./CXX/IndirectPythonInterface.hxx:188: error: ‘PyObject’ was not declared 
in this scope
./CXX/IndirectPythonInterface.hxx:188: error: ‘op’ was not declared in this 
scope
In file included from ./CXX/Objects.hxx:44,
                 from ./CXX/Extensions.hxx:51,
                 from src/ft2font.h:4,
                 from src/ft2font.cpp:1:
./CXX/Exception.hxx:70: error: expected `)' before ‘*’ token
./CXX/Exception.hxx:75: error: expected `)' before ‘*’ token
./CXX/Exception.hxx: In constructor ‘Py::Exception::Exception(const 
std::string&)’:
./CXX/Exception.hxx:67: error: ‘_Exc_RuntimeError’ is not a member of 
‘Py’
./CXX/Exception.hxx:67: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In member function ‘void Py::Exception::clear()’:
./CXX/Exception.hxx:80: error: ‘PyErr_Clear’ was not declared in this scope
./CXX/Exception.hxx: In constructor ‘Py::TypeError::TypeError(const 
std::string&)’:
./CXX/Exception.hxx:122: error: ‘_Exc_TypeError’ is not a member of ‘Py’
./CXX/Exception.hxx:122: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::IndexError::IndexError(const 
std::string&)’:
./CXX/Exception.hxx:132: error: ‘_Exc_IndexError’ is not a member of 
‘Py’
./CXX/Exception.hxx:132: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::AttributeError::AttributeError(const 
std::string&)’:
./CXX/Exception.hxx:142: error: ‘_Exc_AttributeError’ is not a member of 
‘Py’
./CXX/Exception.hxx:142: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::NameError::NameError(const 
std::string&)’:
./CXX/Exception.hxx:152: error: ‘_Exc_NameError’ is not a member of ‘Py’
./CXX/Exception.hxx:152: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::RuntimeError::RuntimeError(const 
std::string&)’:
./CXX/Exception.hxx:162: error: ‘_Exc_RuntimeError’ is not a member of 
‘Py’
./CXX/Exception.hxx:162: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::SystemError::SystemError(const 
std::string&)’:
./CXX/Exception.hxx:172: error: ‘_Exc_SystemError’ is not a member of 
‘Py’
./CXX/Exception.hxx:172: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::KeyError::KeyError(const 
std::string&)’:
./CXX/Exception.hxx:182: error: ‘_Exc_KeyError’ is not a member of ‘Py’
./CXX/Exception.hxx:182: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::ValueError::ValueError(const 
std::string&)’:
./CXX/Exception.hxx:193: error: ‘_Exc_ValueError’ is not a member of 
‘Py’
./CXX/Exception.hxx:193: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::OverflowError::OverflowError(const 
std::string&)’:
./CXX/Exception.hxx:203: error: ‘_Exc_OverflowError’ is not a member of 
‘Py’
./CXX/Exception.hxx:203: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor 
‘Py::ZeroDivisionError::ZeroDivisionError(const std::string&)’:
./CXX/Exception.hxx:213: error: ‘_Exc_ZeroDivisionError’ is not a member of 
‘Py’
./CXX/Exception.hxx:213: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor 
‘Py::FloatingPointError::FloatingPointError(const std::string&)’:
./CXX/Exception.hxx:223: error: ‘_Exc_FloatingPointError’ is not a member 
of ‘Py’
./CXX/Exception.hxx:223: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::MemoryError::MemoryError(const 
std::string&)’:
./CXX/Exception.hxx:233: error: ‘_Exc_MemoryError’ is not a member of 
‘Py’
./CXX/Exception.hxx:233: error: ‘PyErr_SetString’ was not declared in this 
scope
./CXX/Exception.hxx: In constructor ‘Py::SystemExit::SystemExit(const 
std::string&)’:
./CXX/Exception.hxx:243: error: ‘_Exc_SystemExit’ is not a member of 
‘Py’
./CXX/Exception.hxx:243: error: ‘PyErr_SetString’ was not declared in this 
scope
In file included from ./CXX/Extensions.hxx:51,
                 from src/ft2font.h:4,
                 from src/ft2font.cpp:1:
./CXX/Objects.hxx: At global scope:
./CXX/Objects.hxx:66: error: expected initializer before ‘*’ token
./CXX/Objects.hxx:74: error: expected initializer before ‘*’ token
./CXX/Objects.hxx:150: error: ISO C++ forbids declaration of ‘PyObject’ 
with no type
./CXX/Objects.hxx:150: error: expected ‘;’ before ‘*’ token
./CXX/Objects.hxx:154: error: ‘PyObject’ has not been declared
./CXX/Objects.hxx:194: error: expected `)' before ‘*’ token
src/ft2font.cpp:1931: error: expected `}' at end of input
./CXX/Objects.hxx: In member function ‘void Py::Object::set(int*, bool)’:
./CXX/Objects.hxx:157: error: ‘p’ was not declared in this scope
./CXX/Objects.hxx:160: error: ‘_XINCREF’ is not a member of ‘Py’
./CXX/Objects.hxx: In member function ‘void Py::Object::release()’:
./CXX/Objects.hxx:167: error: ‘_XDECREF’ is not a member of ‘Py’
./CXX/Objects.hxx:167: error: ‘p’ was not declared in this scope
./CXX/Objects.hxx: In member function ‘void Py::Object::validate()’:
./CXX/Objects.hxx:174: error: ‘p’ was not declared in this scope
./CXX/Objects.hxx:174: error: ‘accepts’ was not declared in this scope
./CXX/Objects.hxx:177: error: ‘PyErr_Occurred’ was not declared in this 
scope
./CXX/Objects.hxx: At global scope:
./CXX/Objects.hxx:190: error: expected unqualified-id at end of input
./CXX/Objects.hxx:190: error: expected `}' at end of input
error: command 'gcc' failed with exit status 1
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to