When I try to generate python-bindings for imagemagick (re-generation the bindings for pythonmagick-0.6), I get the following error: pyste.py --module=_PythonMagick --multiple --out=./pythonmagick_src -I ['/usr/include'] pyste_src/PathMovetoAbs.pyste In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/string:53, from /usr/include/Magick++/Drawable.h:18: /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h: In member function `bool std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*) const': /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h:329: error: syntax error before `;' token /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h:330: error: syntax error before `;' token Traceback (most recent call last): File "/usr/bin/pyste.py", line 4, in ? pyste.main() File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 418, in main status = Begin() File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 257, in Begin return GenerateCode(parser, module, out, interfaces, multiple) File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 376, in GenerateCode declarations, parsed_header = parser.Parse(header, interface, tail) File "/usr/lib/python2.4/site-packages/Pyste/CppParser.py", line 165, in Parse declarations = self.ParseWithGCCXML(header, tail) File "/usr/lib/python2.4/site-packages/Pyste/CppParser.py", line 126, in ParseWithGCCXML raise CppParserError, 'Error executing gccxml' Pyste.CppParser.CppParserError: Error executing gccxml When I pass the option "--gccxml-compiler g++-3.4.6" to gccxml, it works. I'm not surprised though, version 0.6 of gccxml is from year 2004. Reading through the mailinglist shows that others had some problems as well: http://public.kitware.com/pipermail/gccxml/2006-June/000800.html
According to this note: http://hanzubon.jp/gcc4/changes/gccxml_0.7.0+cvs20060311-1_ppc64.changes GCC-4* support may have been added in the CVS version of gccxml.
Jup, CVS version seems to work with gcc-4.x but breaks pyste. I have upped a snapshot here: http://dev-zero.ch/gentoo/distfiles/gccxml-0.7.0_pre20060916.tbz2
I've decided to sync w/ Debian, since it seems that upstream is never going to get around to generating a release. I suspect that pyste is still broken (and probably will remain broken forever, since it's no longer maintained).