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 679534 - Error when compiling gstream with the latest glib...
Error when compiling gstream with the latest glib...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-06 23:12 UTC by Sebastian Rasmussen
Modified: 2012-07-07 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch fixing compilation error. (1.24 KB, patch)
2012-07-06 23:13 UTC, Sebastian Rasmussen
committed Details | Review

Description Sebastian Rasmussen 2012-07-06 23:12:57 UTC
When I try to build gstreamer together with the latest glib I get this compilation error:

gststructure.c: In function ‘gst_structure_get_valist’:
gststructure.c:2794:201: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
gststructure.c: In function ‘gst_structure_id_get_valist’:
gststructure.c:2863:201: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
cc1: all warnings being treated as errors
make[3]: *** [libgstreamer_1.0_la-gststructure.lo] Error 1

The reason is a commit for a bugfix in glib:
http://git.gnome.org/browse/glib/commit/?id=2a87010831db5d4c18905103e9e7d804546552bf

The attached trivial patch fixes this issue.
Comment 1 Sebastian Rasmussen 2012-07-06 23:13:42 UTC
Created attachment 218205 [details] [review]
Patch fixing compilation error.
Comment 2 Tim-Philipp Müller 2012-07-07 12:34:35 UTC
Pushed, thanks!


commit aab5b579a85be5e0f0220fe2171d544d59ba88a9
Author: Sebastian Rasmussen <sebrn@axis.com>
Date:   Fri Jul 6 20:37:06 2012 +0200

    gststructure: Set lcopy string const exactly as glib's macro
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=679534