GNOME Bugzilla – Bug 698995
mutter-3.8.1 needs glib 2.36 for GTaskThreadFunc
Last modified: 2014-12-29 16:27:12 UTC
Otherwise, it fails to build: libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DCLUTTER_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTA L_2_0_API -D_REENTRANT -pthread -I/usr/include/clutter-1.0 -I/usr/include/cogl -I/usr/include/json-glib-1.0 -I/usr/include/cogl -I/usr/include/startup-notific ation-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 - I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include /libpng16 -I/usr/include/gobject-introspection-1.0 -I/usr/lib64/libffi-3.0.13/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gse ttings-desktop-schemas -I. -I./core -I./ui -I./compositor -DMUTTER_LIBEXECDIR=\"/usr/libexec\" -DHOST_ALIAS=\"x86_64-pc-linux-gnu\" -DMUTTER_LOCALEDIR=\"/usr/ share/locale\" -DMUTTER_PKGDATADIR=\"/usr/share/mutter\" -DMUTTER_DATADIR=\"/usr/share\" -DG_LOG_DOMAIN=\"mutter\" -DSN_API_NOT_YET_FROZEN=1 -DMUTTER_MAJOR_VE RSION=3 -DMUTTER_MINOR_VERSION=8 -DMUTTER_MICRO_VERSION=1 -DMUTTER_PLUGIN_API_VERSION=3 -DMUTTER_PKGLIBDIR=\"/usr/lib64/mutter\" -DMUTTER_PLUGIN_DIR=\"/usr/li b64/mutter/plugins\" -DGETTEXT_PACKAGE=\"mutter\" -march=native -mtune=native -O3 -pipe -fomit-frame-pointer -ggdb -g -O -Wall -Wchar-subscripts -Wmissing-dec larations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -c compositor/meta-background-group.c -fPIC -DPIC -o .libs/meta-b ackground-group.o compositor/meta-background.c:955:12: error: unknown type name 'GTask' compositor/meta-background.c: In function 'meta_background_load_file_async': compositor/meta-background.c:995:5: error: unknown type name 'GTask' compositor/meta-background.c:997:5: warning: implicit declaration of function 'g_task_new' [-Wimplicit-function-declaration] compositor/meta-background.c:997:5: warning: nested extern declaration of 'g_task_new' [-Wnested-externs] compositor/meta-background.c:997:10: warning: assignment makes pointer from integer without a cast [enabled by default] compositor/meta-background.c:1000:5: warning: implicit declaration of function 'g_task_set_task_data' [-Wimplicit-function-declaration] compositor/meta-background.c:1000:5: warning: nested extern declaration of 'g_task_set_task_data' [-Wnested-externs] compositor/meta-background.c:1002:5: warning: implicit declaration of function 'g_task_run_in_thread' [-Wimplicit-function-declaration] compositor/meta-background.c:1002:5: warning: nested extern declaration of 'g_task_run_in_thread' [-Wnested-externs] compositor/meta-background.c:1002:34: error: 'GTaskThreadFunc' undeclared (first use in this function) compositor/meta-background.c:1002:34: note: each undeclared identifier is reported only once for each function it appears in compositor/meta-background.c:1002:51: error: expected ')' before 'load_file' compositor/meta-background.c: In function 'meta_background_load_file_finish': compositor/meta-background.c:1023:3: error: unknown type name 'GTask' compositor/meta-background.c:1032:3: warning: implicit declaration of function 'g_task_is_valid' [-Wimplicit-function-declaration] compositor/meta-background.c:1032:3: warning: nested extern declaration of 'g_task_is_valid' [-Wnested-externs] compositor/meta-background.c:1034:3: warning: implicit declaration of function 'G_TASK' [-Wimplicit-function-declaration] compositor/meta-background.c:1034:3: warning: nested extern declaration of 'G_TASK' [-Wnested-externs] compositor/meta-background.c:1034:8: warning: assignment makes pointer from integer without a cast [enabled by default] compositor/meta-background.c:1036:3: warning: implicit declaration of function 'g_task_propagate_pointer' [-Wimplicit-function-declaration] compositor/meta-background.c:1036:3: warning: nested extern declaration of 'g_task_propagate_pointer' [-Wnested-externs] compositor/meta-background.c:1036:10: warning: assignment makes pointer from integer without a cast [enabled by default] compositor/meta-background.c:1041:3: warning: implicit declaration of function 'g_task_get_task_data' [-Wimplicit-function-declaration] compositor/meta-background.c:1041:3: warning: nested extern declaration of 'g_task_get_task_data' [-Wnested-externs] compositor/meta-background.c:1041:13: warning: assignment makes pointer from integer without a cast [enabled by default] make[4]: *** [meta-background.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/tmp/portage/x11-wm/mutter-3.8.1/work/mutter-3.8.1/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/portage/x11-wm/mutter-3.8.1/work/mutter-3.8.1/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/portage/x11-wm/mutter-3.8.1/work/mutter-3.8.1/src' It needs glib-2.36 per: https://developer.gnome.org/gio/stable/GTask.html#GTaskThreadFunc
Yep, it does.
Then, configure.ac should be updated to require a newer glib than 2.25.10 no? :/ https://git.gnome.org/browse/mutter/tree/configure.ac
The following fix has been pushed: 901a05a Bump GLib requirement
Created attachment 293442 [details] [review] Bump GLib requirement We have depended on GTask for a while now, bump the GLib requirement to a new enough version to include that.
Thanks people :)
Would be good to have this (and 41303101e) in the gnome-3-14 branch, just in case a bugfix release is ever cut, which I find likely in case of mutter.