Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412735

Summary: app-office/abiword-2.8.6-r2 from goffice/app/go-cmd-context.c:10: /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
Product: Gentoo Linux Reporter: Anton Kochkov <anton.kochkov>
Component: Current packagesAssignee: GNOME Office (OBSOLETE) <gnome-office+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: anton.kochkov
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 406437    
Attachments: full build log

Description Anton Kochkov 2012-04-20 04:36:20 UTC
Created attachment 309575 [details]
full build log

Making all in goffice-bits
creating goffice-paths.h
  CC    go-color-group.o
  CC    go-cmd-context.o
  CC    goffice.o
  CC    goffice-gtk.o
  CC    go-color-palette.o
In file included from ./goffice/app/goffice-app.h:25:0,
                 from ./goffice/app/go-cmd-context.h:24,
                 from goffice/app/go-cmd-context-impl.h:4,
                 from goffice/app/go-cmd-context.c:10:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
goffice/app/go-cmd-context.c: In function 'go_cmd_context_get_type':
goffice/app/go-cmd-context.c:147:3: warning: missing initializer [-Wmissing-field-initializers]
goffice/app/go-cmd-context.c:147:3: warning: (near initialization for 'go_cmd_context_info.class_init') [-Wmissing-field-initializers]
make[3]: *** [go-cmd-context.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
  CC    go-combo-box.o
In file included from ./goffice/app/goffice-app.h:25:0,
                 from goffice/gtk/goffice-gtk.h:27,
                 from goffice/gtk/go-color-palette.c:32:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from ./goffice/app/goffice-app.h:25:0,
                 from goffice/gtk/goffice-gtk.h:27,
                 from goffice/gtk/goffice-gtk.c:22:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
goffice/gtk/go-color-palette.c: In function 'cb_default_release_event':
goffice/gtk/go-color-palette.c:297:38: warning: unused parameter 'button' [-Wunused-parameter]
goffice/gtk/go-color-palette.c:297:62: warning: unused parameter 'event' [-Wunused-parameter]
goffice/gtk/go-color-palette.c: In function 'cb_swatch_release_event':
goffice/gtk/go-color-palette.c:318:58: warning: unused parameter 'event' [-Wunused-parameter]
goffice/gtk/go-color-palette.c: In function 'cb_combo_custom_clicked':
goffice/gtk/go-color-palette.c:384:37: warning: unused parameter 'button' [-Wunused-parameter]
goffice/gtk/go-color-palette.c: In function 'cb_menu_default_activate':
goffice/gtk/go-color-palette.c:607:38: warning: unused parameter 'button' [-Wunused-parameter]
goffice/gtk/go-color-palette.c: In function 'cb_menu_custom_activate':
goffice/gtk/go-color-palette.c:636:37: warning: unused parameter 'button' [-Wunused-parameter]
make[3]: *** [go-color-palette.lo] Error 1
goffice/gtk/goffice-gtk.c: In function 'gu_delete_handler':
goffice/gtk/goffice-gtk.c:291:19: warning: unused parameter 'event' [-Wunused-parameter]
goffice/gtk/goffice-gtk.c:292:15: warning: unused parameter 'data' [-Wunused-parameter]
goffice/gtk/goffice-gtk.c: In function 'filter_images':
goffice/gtk/goffice-gtk.c:339:12: warning: declaration of 'l' shadows a previous local [-Wshadow]
goffice/gtk/goffice-gtk.c:333:11: warning: shadowed declaration is here [-Wshadow]
goffice/gtk/goffice-gtk.c:327:63: warning: unused parameter 'data' [-Wunused-parameter]
goffice/gtk/goffice-gtk.c: In function 'go_gtk_help_button_init':
goffice/gtk/goffice-gtk.c:790:91: warning: declaration of 'link' shadows a global declaration [-Wshadow]
goffice/gtk/goffice-gtk.c: In function 'go_gtk_url_is_writeable':
goffice/gtk/goffice-gtk.c:856:5: warning: format not a string literal and no format arguments [-Wformat-security]
goffice/gtk/goffice-gtk.c: In function 'go_dialog_guess_alternative_button_order':
goffice/gtk/goffice-gtk.c:1064:3: warning: declaration of 'tmp' shadows a previous local [-Wshadow]
goffice/gtk/goffice-gtk.c:1017:20: warning: shadowed declaration is here [-Wshadow]
goffice/gtk/goffice-gtk.c:1065:3: warning: declaration of 'tmp' shadows a previous local [-Wshadow]
goffice/gtk/goffice-gtk.c:1017:20: warning: shadowed declaration is here [-Wshadow]
goffice/gtk/goffice-gtk.c:1066:3: warning: declaration of 'tmp' shadows a previous local [-Wshadow]
goffice/gtk/goffice-gtk.c:1017:20: warning: shadowed declaration is here [-Wshadow]
goffice/gtk/goffice-gtk.c:1067:3: warning: declaration of 'tmp' shadows a previous local [-Wshadow]
goffice/gtk/goffice-gtk.c:1017:20: warning: shadowed declaration is here [-Wshadow]
goffice/gtk/goffice-gtk.c: At top level:
goffice/gtk/goffice-gtk.c:527:1: warning: 'save_info_state_free' defined but not used [-Wunused-function]
goffice/gtk/goffice-gtk.c:534:1: warning: 'cb_format_combo_changed' defined but not used [-Wunused-function]
make[3]: *** [goffice-gtk.lo] Error 1
goffice/gtk/go-combo-box.c: In function 'go_combo_box_mnemonic_activate':
goffice/gtk/go-combo-box.c:229:56: warning: unused parameter 'group_cycling' [-Wunused-parameter]
goffice/gtk/go-combo-box.c: In function 'cb_combo_keypress':
goffice/gtk/go-combo-box.c:284:31: warning: unused parameter 'widget' [-Wunused-parameter]
goffice/gtk/go-combo-box.c: In function 'cb_state_change':
goffice/gtk/go-combo-box.c:510:50: warning: unused parameter 'old_state' [-Wunused-parameter]
goffice/gtk/go-combo-box.c: In function 'cb_tearable_enter_leave':
goffice/gtk/go-combo-box.c:611:58: warning: unused parameter 'event' [-Wunused-parameter]
goffice/gtk/go-combo-box.c: In function 'cb_tearable_button_release':
goffice/gtk/go-combo-box.c:657:59: warning: unused parameter 'event' [-Wunused-parameter]
goffice/gtk/go-combo-box.c: In function 'go_combo_box_construct':
goffice/gtk/go-combo-box.c:687:15: warning: unused parameter 'popdown_focus' [-Wunused-parameter]
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 [31;01m*[0m ERROR: app-office/abiword-2.8.6-r2 failed (compile phase):
 [31;01m*[0m   emake failed
Comment 1 Anton Kochkov 2012-04-20 04:36:54 UTC
emerge --info output: https://bugs.gentoo.org/attachment.cgi?id=309573
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 17:36:06 UTC
Thanks for reporting; abiword-2.8.6-glib-2.31.patch in cvs has been updated to also fix this problem.

>  20 Apr 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  files/abiword-2.8.6-glib-2.31.patch:
>  Fix another glib-2.32 header issue (bug #412735, thanks to Anton Kochkov for
>  reporting).