gnome-base/libgnomeprintui-2.18.6 passes -DG_DISABLE_DEPRECATED to the compiler and pulls in the pango header files which use the G_CONST_RETURN macro deprecated in glib-2.30. So it fails to compile! Reproducible: Always
Created attachment 288101 [details] Build log
I have the some problem. ... /usr/include/atk-1.0/atk/atkimage.h:56:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’In file included from /usr/include/atk-1.0/atk/atk.h:28:0, 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 gpa-widget.h:34, from gpa-widget.c:29: /usr/include/atk-1.0/atk/atkdocument.h:52:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’ /usr/include/atk-1.0/atk/atkdocument.h:71:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atkdocument.h:73:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atkdocument.h:75:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ In file included from /usr/include/atk-1.0/atk/atkeditabletext.h:28:0, from /usr/include/atk-1.0/atk/atk.h:29, 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 gpa-widget.h:34, from gpa-widget.c:29: /usr/include/atk-1.0/atk/atktext.h:358:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’gpa-option-menu.c: In function ‘gpa_option_menu_rebuild_menu’: gpa-option-menu.c:157:6: warning: pointer targets in assignment differ in signedness gpa-option-menu.c:164:8: warning: pointer targets in assignment differ in signedness gpa-option-menu.c:165:3: warning: pointer targets in passing argument 1 of ‘gtk_menu_item_new_with_label’ differ in signedness /usr/include/gtk-2.0/gtk/gtkmenuitem.h:101:12: note: expected ‘const gchar *’ but argument is of type ‘guchar *’ gpa-option-menu.c:168:6: warning: pointer targets in assignment differ in signedness /usr/include/atk-1.0/atk/atkimage.h:70:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atkimage.h:83:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ gpa-option-menu.c: In function ‘gpa_option_menu_connect’: gpa-option-menu.c:225:2: warning: pointer targets in passing argument 2 of ‘gpa_node_lookup’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-node-private.h:81:11: note: expected ‘const guchar *’ but argument is of type ‘gchar *’ In file included from /usr/include/atk-1.0/atk/atk.h:40:0, 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 gpa-printer-selector.c:30: /usr/include/atk-1.0/atk/atkrelation.h:64:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atktext.h:360:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ gpa-option-menu.c: In function ‘gpa_option_menu_new’: gpa-option-menu.c:280:2: warning: pointer targets in passing argument 1 of ‘g_strdup’ differ in signedness /usr/include/glib-2.0/glib/gstrfuncs.h:190:22: note: expected ‘const gchar *’ but argument is of type ‘const guchar *’ In file included from /usr/include/atk-1.0/atk/atk.h:34:0, 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 gpa-widget.h:34, from gpa-widget.c:29: /usr/include/atk-1.0/atk/atkimage.h:56:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’ In file included from /usr/include/atk-1.0/atk/atk.h:47:0, 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 gpa-printer-selector.c:30: /usr/include/atk-1.0/atk/atkstreamablecontent.h:61:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’ /usr/include/atk-1.0/atk/atkimage.h:70:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atkimage.h:83:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ In file included from /usr/include/atk-1.0/atk/atk.h:40:0, 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 gpa-widget.h:34, from gpa-widget.c:29: /usr/include/atk-1.0/atk/atkrelation.h:64:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atkstreamablecontent.h:95:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ In file included from /usr/include/atk-1.0/atk/atk.h:48:0, 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 gpa-printer-selector.c:30: /usr/include/atk-1.0/atk/atktable.h:72:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’ /usr/include/atk-1.0/atk/atktable.h:166:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atktable.h:171:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ In file included from /usr/include/atk-1.0/atk/atk.h:47:0, 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 gpa-widget.h:34, from gpa-widget.c:29: /usr/include/atk-1.0/atk/atkstreamablecontent.h:61:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’ /usr/include/atk-1.0/atk/atkstreamablecontent.h:95:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ In file included from /usr/include/atk-1.0/atk/atk.h:48:0, 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 gpa-widget.h:34, from gpa-widget.c:29: /usr/include/atk-1.0/atk/atktable.h:72:3: error: expected specifier-qualifier-list before ‘G_CONST_RETURN’ /usr/include/atk-1.0/atk/atktable.h:166:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ /usr/include/atk-1.0/atk/atktable.h:171:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gchar’ make[4]: *** [gpa-option-menu.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [gpa-widget.lo] Error 1 gpa-printer-selector.c: In function ‘printer_has_queue’: gpa-printer-selector.c:240:2: warning: pointer targets in passing argument 2 of ‘gpa_node_get_path_value’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-node.h:66:10: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:240:10: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘printer_sort_func’: gpa-printer-selector.c:271:10: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c:272:10: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘interactive_search_func’: gpa-printer-selector.c:292:7: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c:298:3: warning: pointer targets in passing argument 2 of ‘gpa_printer_get_state_by_id’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-printer.h:80:11: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:300:9: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘selection_changed_cb’: gpa-printer-selector.c:348:2: warning: pointer targets in passing argument 2 of ‘gpa_node_lookup’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-node-private.h:81:11: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c: In function ‘get_printer_icon’: gpa-printer-selector.c:373:2: warning: pointer targets in passing argument 2 of ‘gpa_node_get_child_from_path’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-node.h:61:10: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:375:2: warning: pointer targets in passing argument 2 of ‘gpa_node_get_path_value’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-node.h:66:10: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:375:12: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘set_printer_name’: gpa-printer-selector.c:418:7: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘set_printer_state’: gpa-printer-selector.c:436:2: warning: pointer targets in passing argument 2 of ‘gpa_printer_get_state_by_id’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-printer.h:80:11: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:438:8: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘set_printer_jobs’: gpa-printer-selector.c:457:2: warning: pointer targets in passing argument 2 of ‘gpa_printer_get_state_by_id’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-printer.h:80:11: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:460:9: warning: pointer targets in assignment differ in signedness gpa-printer-selector.c: In function ‘set_printer_location’: gpa-printer-selector.c:485:2: warning: pointer targets in passing argument 2 of ‘gpa_printer_get_state_by_id’ differ in signedness /usr/include/libgnomeprint-2.2/libgnomeprint/private/gpa-printer.h:80:11: note: expected ‘const guchar *’ but argument is of type ‘char *’ gpa-printer-selector.c:487:8: warning: pointer targets in assignment differ in signedness make[4]: *** [gpa-printer-selector.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/work/libgnomeprintui-2.18.6/libgnomeprintui/gpaui' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/work/libgnomeprintui-2.18.6/libgnomeprintui' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/work/libgnomeprintui-2.18.6/libgnomeprintui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/work/libgnomeprintui-2.18.6' make: *** [all] Error 2 emake failed * ERROR: gnome-base/libgnomeprintui-2.18.6 failed (compile phase): * compile failure * * Call stack: * ebuild.sh, line 91: Called src_compile * environment, line 3174: Called gnome2_src_compile * environment, line 2455: Called die * The specific snippet of code: * emake || die "compile failure" * * If you need support, post the output of 'emerge --info =gnome-base/libgnomeprintui-2.18.6', * the complete build log and the output of 'emerge -pqv =gnome-base/libgnomeprintui-2.18.6'. * The complete build log is located at '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/temp/environment'. * S: '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/work/libgnomeprintui-2.18.6' >>> Failed to emerge gnome-base/libgnomeprintui-2.18.6, Log file: >>> '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/temp/build.log' * Messages for package gnome-base/libgnomeprintui-2.18.6: * ERROR: gnome-base/libgnomeprintui-2.18.6 failed (compile phase): * compile failure * * Call stack: * ebuild.sh, line 91: Called src_compile * environment, line 3174: Called gnome2_src_compile * environment, line 2455: Called die * The specific snippet of code: * emake || die "compile failure" * * If you need support, post the output of 'emerge --info =gnome-base/libgnomeprintui-2.18.6', * the complete build log and the output of 'emerge -pqv =gnome-base/libgnomeprintui-2.18.6'. * The complete build log is located at '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/temp/environment'. * S: '/var/tmp/portage/gnome-base/libgnomeprintui-2.18.6/work/libgnomeprintui-2.18.6' * Build finished correctly. Removing temporary files... * You can re-run revdep-rebuild to verify that all libraries and binaries * are fixed. Possible reasons for remaining inconsistencies include: * orphaned files * deep dependencies * packages installed outside of portage's control * specially-evaluated librarie
Please do not cc arch teams.
Created attachment 288387 [details, diff] Patch to fix the compilation error Don't forget to add the following lines at the end of your ebuild file: src_prepare() { epatch "${FILESDIR}/patch.txt" }
+ 02 Oct 2011; Pacho Ramos <pacho@gentoo.org> -libgnomeprintui-2.18.5.ebuild, + libgnomeprintui-2.18.6.ebuild: + Drop DEPRECATED flags, bug #384815; drop old. +