GNOME Bugzilla – Bug 510437
Build failure due to missing Python.h
Last modified: 2008-01-21 21:20:51 UTC
Building gst-pyton in my jhbuild sandbox: gstoptionmodule.c:23:20: error: Python.h: No such file or directory In file included from gstoptionmodule.c:24: /opt/gnome2/include/pygtk-2.0/pygobject.h:22: error: expected specifier-qualifier-list before 'PyObject' /opt/gnome2/include/pygtk-2.0/pygobject.h:35: error: expected specifier-qualifier-list before 'PyObject_HEAD' /opt/gnome2/include/pygtk-2.0/pygobject.h:54: error: expected specifier-qualifier-list before 'PyObject_HEAD' /opt/gnome2/include/pygtk-2.0/pygobject.h:64: error: expected specifier-qualifier-list before 'PyObject_HEAD' /opt/gnome2/include/pygtk-2.0/pygobject.h:76: error: expected specifier-qualifier-list before 'PyObject_HEAD' /opt/gnome2/include/pygtk-2.0/pygobject.h:83: error: expected declaration specifiers or '...' before 'PyTypeObject' /opt/gnome2/include/pygtk-2.0/pygobject.h:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /opt/gnome2/include/pygtk-2.0/pygobject.h:92: error: expected ')' before '*' token /opt/gnome2/include/pygtk-2.0/pygobject.h:94: error: expected ';' before 'void' /opt/gnome2/include/pygtk-2.0/pygobject.h:312: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gstoptionmodule.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token gstoptionmodule.c:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pygstoption_functions' cc1: warnings being treated as errors gstoptionmodule.c:42: warning: return type defaults to 'int' gstoptionmodule.c: In function 'DL_EXPORT': gstoptionmodule.c:42: error: expected declaration specifiers before 'initgstoption' gstoptionmodule.c:50: error: expected '{' at end of input make[2]: *** [gstoption_la-gstoptionmodule.lo] Error 1 make[2]: Leaving directory `/home/luca/svn/gnome2/gst-python' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/luca/svn/gnome2/gst-python' make: *** [all] Error 2
Created attachment 103152 [details] [review] Proposed patch Simply add $(PYTHON_INCLUDES) to common_cflags
Thanks! Committed: 2008-01-21 Jan Schmidt <jan.schmidt@sun.com> * Makefile.am: Include PYTHON_INCLUDES in the common CFLAGS in the top-level. Fixes: #510437 Patch By: Luca Ferretti <elle dot uca at libero dot it>