GNOME Bugzilla – Bug 795382
[Ubuntu 14.04] Build failure due to commit 4984af5917b
Last modified: 2018-04-20 00:11:52 UTC
gst-plugins-bad fails on Ubuntu 14.04 with glibc version 2.40.2-0ubuntu1 https://packages.ubuntu.com/search?suite=trusty-updates§ion=all&arch=any&keywords=libglib2.0-dev&searchon=names failure snip: 14:18:05,353 INFO - libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/opt/media/install/include -pthread -I/opt/media/install/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGST_USE_UNSTABLE_API -fno-strict-aliasing -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -Werror -g -DGST_DISABLE_DEPRECATED -fvisibility=hidden -pthread -I/opt/media/install/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/opt/media/install/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g3 -MT libgstfreeverb_la-gstfreeverb.lo -MD -MP -MF .deps/libgstfreeverb_la-gstfreeverb.Tpo -c gstfreeverb.c -fPIC -DPIC -o .libs/libgstfreeverb_la-gstfreeverb.o 14:18:05,376 INFO - gsttestsrcbin.c:56:5: error: expected ')' before 'GstBin' 14:18:05,376 INFO - GstBin); 14:18:05,376 INFO - ^ 14:18:05,376 INFO - gsttestsrcbin.c: In function 'gst_test_src_bin_uri_handler_get_uri': 14:18:05,376 INFO - gsttestsrcbin.c:94:3: error: unknown type name 'GstTestSrcBin' 14:18:05,376 INFO - GstTestSrcBin *self = GST_TEST_SRC_BIN (handler); 14:18:05,376 INFO - ^ 14:18:05,376 INFO - gsttestsrcbin.c:94:3: error: implicit declaration of function 'GST_TEST_SRC_BIN' [-Werror=implicit-function-declaration] Its due to : https://github.com/GStreamer/gst-plugins-bad/blob/4984af5917b343ec65270ed3e673228de1b70fa7/gst/debugutils/gsttestsrcbin.c#L55 which uses G_DECLARE_FINAL_TYPE which was released as part of https://github.com/GNOME/glib/releases/tag/2.44.1 on May 12, 2015 bypassing ubuntu 14.04 Bad commit: https://github.com/GStreamer/gst-plugins-bad/blob/4984af5917b343ec65270ed3e673228de1b70fa7 https://developer.gnome.org/gobject/2.44/api-index-2-44.html had introduced G_DECLARE_FINAL_TYPE
Created attachment 371146 [details] [review] testsrcbin: Do not use G_DECLARE_ as it requires GLib 2.44 Fixes
Attachment 371146 [details] pushed as 5bc3681 - testsrcbin: Do not use G_DECLARE_ as it requires GLib 2.44