Due to some macros becoming deprecated in gtk+-2.20, clutter-gtk-0.10.2 fails to compile: # emerge clutter-gtk [...] LINK libclutter-gtk-0.10.la /var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/.libs/libclutter-gtk-0.10.so: undefined reference to `GTK_WIDGET_REALIZED' /var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/.libs/libclutter-gtk-0.10.so: undefined reference to `GTK_WIDGET_VISIBLE' collect2: ld returned 1 exit status Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 38, in <module> sys.exit(scanner_main(sys.argv)) File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 317, in scanner_main glibtransformer.get_get_type_functions()) File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 231, in compile_introspection_binary return dc.run() File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 132, in run self._link(bin_path, o_path) File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 226, in _link subprocess.check_call(args) File "/usr/lib64/python2.6/subprocess.py", line 488, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/tmp-introspectR5qR0a/GtkClutter-0.10', '-march=native', '-O2', '-pipe', '-L.', '-lclutter-gtk-0.10', '-pthread', '-Wl,--export-dynamic', '-lgio-2.0', '-lgirepository-1.0', '-lgobject-2.0', '-lgmodule-2.0', '-lffi', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/var/tmp/portage/media-libs/clutter-gtk-0.10.2/work/clutter-gtk-0.10.2/clutter-gtk/tmp-introspectR5qR0a/GtkClutter-0.10.o']' returned non-zero exit status 1 make[2]: *** [GtkClutter-0.10.gir] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 This bug has been fixed in clutter-gtk-0.10.4. However, we cannot use the patch[1] from 0.10.4 directly because it requires gtk+-2.20 (i.e. it unconditionally uses API not found in gtk+-2.18). Furthermore, clutter-gtk-0.10.4 requires clutter-1.2, not yet in portage. Therefore, we need to patch clutter-gtk-0.10.2 using some ifdefs so that it can be built with any version of gtk+. [1]: http://git.clutter-project.org/cgit.cgi?url=clutter-gtk/commit/&h=clutter-gtk-0.10&id=920ec05edf8d632d76c564253c74f7ec3c5f0428
Created attachment 231297 [details, diff] gtk+-2.20 compatibility patch This patch allows clutter-gtk-0.10.2 to be built with any version of gtk+ (2.16, 2.18 or 2.20).
(In reply to comment #1) > Created an attachment (id=231297) [details] > gtk+-2.20 compatibility patch > > This patch allows clutter-gtk-0.10.2 to be built with any version of gtk+ > (2.16, 2.18 or 2.20). > It fixed the trouble for me. Thanks! Wait for the upstream of the patch!
clutter-gtk has been bumped to 0.10.4 in-tree, closing as FIXED.