net-dns/avahi-0.6.30-r1 USE="autoipd dbus gdbm gtk howl-compat introspection* ipv6 mdnsresponder-compat python qt4 -bookmarks -doc -gtk3 -mono -test -utils" 0 kB glib has depreciated G_CONST_RETURN and has apparently finally removed it, causing issues when building: CC libavahi_ui_la-stdb.lo In file included from /usr/include/pango-1.0/pango/pango-gravity.h:98:0, from /usr/include/pango-1.0/pango/pango-types.h:91, from /usr/include/pango-1.0/pango/pango-font.h:26, from /usr/include/pango-1.0/pango/pango-attributes.h:25, from /usr/include/pango-1.0/pango/pango.h:25, from /usr/include/gtk-2.0/gdk/gdktypes.h:37, from /usr/include/gtk-2.0/gdk/gdkscreen.h:32, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from avahi-ui.c:30: /usr/include/pango-1.0/pango/pango-script.h:132:12: error: expected declaration specifiers or '...' before 'G_CONST_RETURN' /usr/include/pango-1.0/pango/pango-script.h:133:12: error: expected declaration specifiers or '...' before 'G_CONST_RETURN' I tried patching pango with this patch: https://bugzilla.gnome.org/show_bug.cgi?id=652202 But it then breaks on atk: CC libavahi_ui_la-stdb.lo In file included from /usr/include/atk-1.0/atk/atkobject.h:28:0, from /usr/include/atk-1.0/atk/atk.h:25, from /usr/include/gtk-2.0/gtk/gtkwidget.h:40, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35, from /usr/include/gtk-2.0/gtk/gtkbin.h:35, from /usr/include/gtk-2.0/gtk/gtkwindow.h:36, from /usr/include/gtk-2.0/gtk/gtkdialog.h:35, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:33, from avahi-ui.c:30: /usr/include/atk-1.0/atk/atkstate.h:173:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gchar' Can't find anything useful beyond that... See comment #5 from bug #379897 for related info Reproducible: Always
BTW: my temporary work-around was to disable the gtk use flag for now.
Same error here. The workaround does not work for me, because the use flag 'gtk' is needed by net-misc/vinagre and net-misc/vinagre.
Created attachment 288099 [details] Patch to remove -DG_DISABLE_DEPRECATED to allow avahi to build Temporary patch until bug 384779 is fixed. The /etc/portage/patches trick didn't work for me for some reason, so I had to use a local portage overlay with a modified ebuild to apply the patch.
Thanks, this works.
Bug confirmed, patch works.
+ 02 Oct 2011; Pacho Ramos <pacho@gentoo.org> avahi-0.6.30-r1.ebuild: + Drop DEPRECATED flags, bug #384743 +
*** Bug 386011 has been marked as a duplicate of this bug. ***
*** Bug 386493 has been marked as a duplicate of this bug. ***
*** Bug 385263 has been marked as a duplicate of this bug. ***