From: Laurent T. <lau...@la...> - 2005-03-30 01:38:51
|
Hello all, I am trying to install matplotlib for Python 2.3 under Linux (Mandrake 10.1 AMD64) and the installation fails while trying to perform the build command. I checked for the prerequisite and all the recommended packages seem to be correctly installed. I am unable to understand the compilation error as it does not look like a trivial error (include file missing, library not reachable, ....) and as my C++ and Python skills are yet very weak. The error is reproduced hereafter: [root@TigerBox matplotlib-0.73.1]# python setup.py build running build running build_py running build_ext building 'matplotlib.backends._gtkagg' extension creating build/temp.linux-x86_64-2.3 creating build/temp.linux-x86_64-2.3/src creating build/temp.linux-x86_64-2.3/CXX gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -Wall -g -fPIC -I/usr/local/include -I/usr/include -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.3/CXX/IndirectPythonInterface.o gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -Wall -g -fPIC -I/usr/local/include -I/usr/include -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.3/CXX/cxxextensions.o gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -Wall -g -fPIC -I/usr/local/include -I/usr/include -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.3/CXX/cxx_extensions.o ./CXX/Extensions.hxx: In constructor `Py::PythonExtension<T>::PythonExtension() [with T = Py::ExtensionModuleBasePtr]': CXX/cxx_extensions.cxx:92: instantiated from here ./CXX/Extensions.hxx:472: warning: right-hand operand of comma has no effect gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -Wall -g -fPIC -I/usr/local/include -I/usr/include -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.3/src/mplutils.o gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -Wall -g -fPIC -I/usr/local/include -I/usr/include -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.3/CXX/cxxsupport.o gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -Wall -g -fPIC -I/usr/local/include -I/usr/include -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freetype2 -Iagg22/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.3 -c src/_gtkagg.cpp -o build/temp.linux-x86_64-2.3/src/_gtkagg.o In file included from /usr/include/python2.3/Python.h:8, from /usr/include/pygtk-2.0/pygobject.h:5, from src/_gtkagg.cpp:8: /usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/string.h:26, from /usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/cstring:51, from src/_gtkagg.cpp:1: /usr/include/features.h:132:1: warning: this is the location of the previous definition In file included from src/_gtkagg.cpp:8: /usr/include/pygtk-2.0/pygobject.h:124: error: expected `,' or `...' before "typename" /usr/include/pygtk-2.0/pygobject.h:131: error: expected `,' or `...' before "typename" In file included from agg22/include/agg_vertex_sequence.h:23, from agg22/include/agg_vcgen_contour.h:20, from agg22/include/agg_conv_contour.h:23, from src/_backend_agg.h:13, from src/_gtkagg.cpp:11: agg22/include/agg_array.h: In member function `agg::int8u* agg::pod_allocator::allocate(unsigned int, unsigned int)': agg22/include/agg_array.h:581: warning: cast from pointer to integer of different size error: command 'gcc' failed with exit status 1 I wonder if it can be due to x86_64 architecture or a wrong devel version in the required libs. It would be a great help if someone could give me a few advices or an idea about how to yank out this nasty mess. I thank you in advance for your contribution and feel sorry for my bad english, Laurent PS: I successfuly built gtk, pygtk, numarray, OpenGL for my python 2.3 |
From: John H. <jdh...@ac...> - 2005-03-30 16:20:11
|
>>>>> "Laurent" == Laurent THIOUDELLET <lau...@la...> writes: Laurent> The error is reproduced hereafter: Laurent> In file included from src/_gtkagg.cpp:8: Laurent> /usr/include/pygtk-2.0/pygobject.h:124: error: expected Laurent> `,' or `...' before "typename" Laurent> /usr/include/pygtk-2.0/pygobject.h:131: error: expected Laurent> `,' or `...' before "typename" In file included from This is a pygtk bug, discussed here: http://matplotlib.sourceforge.net/faq.html#PYGTK24 Search the matplotlib-users archive at http://sourceforge.net/mailarchive/forum.php?forum_id=33405 for "typename" for more specific information. JDH |