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 359375 - variable 'interface' results in syntax error with MingW
variable 'interface' results in syntax error with MingW
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
0.10.10
Other Windows
: Normal major
: 0.10.6
Assigned To: GStreamer Maintainers
Johan (not receiving bugmail) Dahlin
Depends on:
Blocks:
 
 
Reported: 2006-10-03 19:42 UTC by Marcus Granado
Modified: 2006-10-16 14:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (630 bytes, patch)
2006-10-12 16:29 UTC, Tim-Philipp Müller
committed Details | Review

Description Marcus Granado 2006-10-03 19:42:52 UTC
I'm compiling gst-python-0.10.5 using GCC 3.4.2 under MingW.

My compiler is giving away a strange syntax error in gst/gst.c around the line 6285 [inside the function _wrap_gst_bin_get_by_interface()] and the line 6356 [inside the function _wrap_gst_bin_iterate_all_by_interface()].

It seems that it is getting confused by the local variable 'interface' and probably gcc is assuming it is some keyword.

Changing the local variable name to '_interface' solves the syntax error problems.

(I'm using the flag -DGST_DISABLE_GST_DEBUG, in case it matters for this bug)
Comment 1 Tim-Philipp Müller 2006-10-12 16:29:02 UTC
Created attachment 74580 [details] [review]
patch
Comment 2 Tim-Philipp Müller 2006-10-16 14:47:51 UTC
Committed:

 2006-10-16  Tim-Philipp Müller  <tim at centricular dot net>

       * gst/gst.defs:
         Don't use 'interface' as variable name, MingW doesn't like that
         (fixes #359375).