From: John H. <jdh...@ac...> - 2004-10-01 21:43:09
|
>>>>> "Chris" == Chris <rea...@po...> writes: Chris> Hi, I cannot build matplotlib-0.63.4 on gentoo linux. The Chris> error I get when running python setup.py build is: Chris> running build_ext building 'matplotlib._na_transforms' Chris> extension creating build/temp.linux-i686-2.3 creating Chris> build/temp.linux-i686-2.3/src creating Chris> build/temp.linux-i686-2.3/CXX gcc -fno-strict-aliasing Chris> -DNDEBUG -fPIC -Isrc -I. -I/usr/include/python2.3 -c Chris> CXX/IndirectPythonInterface.cxx -o Chris> build/temp.linux-i686-2.3/CXX/IndirectPythonInterface.o Chris> -DNUMARRAY=1 gcc -fno-strict-aliasing -DNDEBUG -fPIC -Isrc Chris> -I. -I/usr/include/python2.3 -c CXX/cxxsupport.cxx -o Chris> build/temp.linux-i686-2.3/CXX/cxxsupport.o -DNUMARRAY=1 In Chris> file included from CXX/cxxsupport.cxx:6: ./CXX/Objects.hxx: Chris> In constructor Chris> `Py::MapBase<T>::const_iterator::const_iterator(const Chris> Py::MapBase<T>*, Py::List, Chris> Py::SeqBase<Py::Object>::iterator)': Chris> ./CXX/Objects.hxx:2271: error: `s' undeclared (first use Chris> this function) ./CXX/Objects.hxx:2271: error: (Each Chris> undeclared identifier is reported only once for each Chris> function it appears in.) error: command 'gcc' failed with Chris> exit status 1 Chris> I have python 2.3.3, GCC 3.4.2, Numeric 23.3, numarray 1.0, Chris> pygtk-2.3.97 (I ungraded from pygtk-2.2.0 but that did not Chris> help), and wxpython-2.4.2.4 Chris> I hope that is enough information - do I have the wrong Chris> versions - or am I missing something - I had no trouble Chris> building matplotlib-0.62.x From a very quick read of the cxx code in that region, it looks like a cxx bug. I don't know why it is only exposed in gcc 3.4.2. Try replacing the function in line 2270 of CXX/Objects.hxx with const_iterator (const MapBase<T>* m, List k, List::iterator p ) : map(m), keys(k), pos(p) {} map(s) has been replaced by map(m). The cxx code was not written by me, but this looks like a clear bug. JDH |