From: Fernando P. <Fer...@co...> - 2005-01-04 16:52:48
|
Stephen Walton wrote: > Happy New Year, Fernando! > > Gee, I can't believe I can answer one of your questions :-) Well, I'm happy to give you a chance to help :) > >>/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' >>before "typename" >>/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' >>before "typename" >>error: command 'gcc' failed with exit status 1 > > > It's a known typo in the referenced two lines in pygobject.h. Until a > patch is released, manually change "typename" to "_typename"; it's just > in the function prototype so the name doesn't matter. Ah, many thanks! After fixing this, it all worked great, except for one confusing little accident I'll mention in case someone else has the same problem. I was getting a 'pygtk present but import failed' message, which I couldn't understand. I modified setup.py to reraise the exception at that point, and it turned out to be a RuntimeError('could not open display') exception. Well, it happens that I do a lot of my sysadmin work using screen, so that I can reattach to a session from anywhere, or leave long-running compiles going. By default, screen blocks X11 (I need to learn how to fix this), so the gtk initialization was failing due to lack of access to my display, even though the library is all there. The fix was to run the bdist_rpm _outside_ of screen, but it might be worth changing the setup file so that this error does not crash the build. I'm not sure it should really be necessary to have a running X11 for the build, as long as all the necessary headers and libraries are present. Anyway, thanks again (and also to Vineet) for the help. You saved me a lot of frustration. Regards, f |