After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 510437 - Build failure due to missing Python.h
Build failure due to missing Python.h
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal blocker
: 0.10.10
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-18 17:16 UTC by Luca Ferretti
Modified: 2008-01-21 21:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (665 bytes, patch)
2008-01-18 17:17 UTC, Luca Ferretti
committed Details | Review

Description Luca Ferretti 2008-01-18 17:16:03 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
Comment 1 Luca Ferretti 2008-01-18 17:17:38 UTC
Created attachment 103152 [details] [review]
Proposed patch

Simply add $(PYTHON_INCLUDES) to common_cflags
Comment 2 Jan Schmidt 2008-01-21 21:20:51 UTC
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>