Hi!
I have a problem when compiling matplotlib, which uses pygtk. I have already posted
this question on their mailing list, and there one more person having the same
problem. But as it seems it might be an error in pygtk.
This was my error report:
> I have tried using matplotlib with pygtk 2.2 and everything worked fine.
> But when I try to compile matplotlib (0.62.4) with the newest version of
> pygtk, pygtk-2.3.96, I get the error included below.
I have updated pygtk to 2.3.97 but the problem persists. The corresponding source line
looks quite normal to me.
The function argument 'const char* typename' seems to cause the trouble, which seems
rather strange. Maybe it is a problem with gcc (I am using 3.3.4) ? If it is not,
please tell me. It might be a bug in the agg code, which is used by matplotlib.
I hope you can help to solve this problem,
Niklas.
--------------------------------------------
building 'matplotlib.backends._gtkagg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 -fPIC -I/u
sr/local/include -I/usr/include -Isrc -Iagg2/include -I. -I/usr/local/include -I
/usr/include -I/usr/local/include/freetype2 -I/usr/include/freetype2 -Isrc/freet
ype2 -Iagg2/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/us
r/include/freetype2 -I/usr/local/include -I/usr/include -I/usr/include/pygtk-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/u
sr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X1
1R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0
/include -I/usr/include/python2.3 -c src/_gtkagg.cpp -o build/temp.linux-i686-2.
3/src/_gtkagg.o -DNUMARRAY
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/include/c++/3.3.4/cstring:51,
from src/_gtkagg.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous def
inition
In file included from src/_gtkagg.cpp:8:
/usr/include/pygtk-2.0/pygobject.h:124: error: parse error before `typename'
/usr/include/pygtk-2.0/pygobject.h:131: error: parse error before `typename'
error: command 'gcc' failed with exit status 1
_______________________________________________________
WEB.DE Video-Mail - Sagen Sie mehr mit bewegten Bildern
Informationen unter: http://freemail.web.de/?mc=021199
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/