GNOME Bugzilla – Bug 785698
Compile error in ipcpipeline plugin
Last modified: 2017-08-02 07:49:21 UTC
gstreamer (master) heads/master-0-ga79503a gst-plugins-base (master) heads/master-0-gffd4c99 gst-plugins-good (master) heads/master-0-g2c7dfff gst-plugins-bad (master) heads/master-0-ga205338 On Ubuntu Trusty (14.04) with GCC 4.8.4, new ipc pipeline plugin fails to compile since: commit 3089d142b015d9c8fcf0c9b25ce0c6c705f4be7d Author: George Kiagiadakis <george.kiagiadakis@collabora.com> Date: Wed Jul 5 16:50:22 2017 +0300 ipcpipeline: introduce new plugin for inter-process pipelines These elements allow splitting a pipeline across several processes, with communication done by the ipcpipelinesink and ipcpipelinesrc elements. The main use case is to split a playback pipeline into a process that runs networking, parser & demuxer and another process that runs the decoder & sink, for security reasons. https://bugzilla.gnome.org/show_bug.cgi?id=752214 ------------ gstipcpipelinecomm.c: In function 'gst_value_deserialize_event': gstipcpipelinecomm.c:2308:3: error: implicit declaration of function 'g_steal_pointer' [-Werror=implicit-function-declaration] g_value_take_boxed (dest, g_steal_pointer (&ev)); ^ gstipcpipelinecomm.c:2308:3: error: nested extern declaration of 'g_steal_pointer' [-Werror=nested-externs] gstipcpipelinecomm.c:2308:3: error: passing argument 2 of 'g_value_take_boxed' makes pointer from integer without a cast [-Werror] In file included from /usr/include/glib-2.0/gobject/gobject.h:29:0, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:23, from /opt/media/install/include/gstreamer-1.0/gst/gstenumtypes.h:7, from /opt/media/install/include/gstreamer-1.0/gst/gst.h:31, from /opt/media/install/include/gstreamer-1.0/gst/base/gstbytewriter.h:24, from gstipcpipelinecomm.c:31: /usr/include/glib-2.0/gobject/gboxed.h:82:10: note: expected 'gconstpointer' but argument is of type 'int' void g_value_take_boxed (GValue *value, ^ cc1: all warnings being treated as errors make[3]: *** [libgstipcpipeline_la-gstipcpipelinecomm.lo] Error 1 make[3]: Leaving directory `/opt/media/build/gst-plugins-bad/gst/ipcpipeline' make[2]: *** [ipcpipeline] Error 2 make[2]: Leaving directory `/opt/media/build/gst-plugins-bad/gst' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/media/build/gst-plugins-bad' make: *** [all] Error 2 ------------
Hmm, g_steal_pointer is too new for trusty. I thought we depended on a newer glib version already. I'll fix it tomorrow.
commit 58e2b2ef1c057839b3fdc6b87a5b0a6708771ab6 (HEAD -> master, origin/master, origin/HEAD) Author: George Kiagiadakis <george.kiagiadakis@collabora.com> Date: Wed Aug 2 10:46:46 2017 +0300 ipcpipeline: don't use g_steal_pointer; it's not in the current required version of GLib We depend on GLib 2.40, g_steal_pointer was introduced in 2.44. https://bugzilla.gnome.org/show_bug.cgi?id=785698