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

Bug 655934

Summary: app-office/gnucash-3.1 - In file included from .../work/gnucash-3.1/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:36: /usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’
Product: Gentoo Linux Reporter: rnddim
Component: Current packagesAssignee: Aaron W. Swenson <titanofold>
Status: RESOLVED NEEDINFO    
Severity: normal CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=app-office/gnucash-3.1::gentoo'
build.log

Description rnddim 2018-05-17 04:55:01 UTC
Created attachment 531878 [details]
emerge --info '=app-office/gnucash-3.1::gentoo'

While trying to compile with gcc-8.1.0, it fails due to unnecessary parentheses:

In file included from /usr/include/gtk-3.0/gtk/gtk.h:100,
                 from /var/tmp/portage/app-office/gnucash-3.1/work/gnucash-3.1/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp:36:
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Werror=parentheses]
   void (*__gtk_reserved2);
        ^
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved3’ [-Werror=parentheses]
   void (*__gtk_reserved3);
        ^
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved4’ [-Werror=parentheses]
   void (*__gtk_reserved4);
        ^

This appears to be a problem with gtk, as they have noticed and fixed the problem here ( https://gitlab.gnome.org/GNOME/gtk/issues/1059 ). I'm reporting this as a gnucash bug since that's the package that specifically failed for me. This might also want to be a bug for the gcc-8 porting tracker.
Comment 1 rnddim 2018-05-17 04:56:17 UTC
Created attachment 531880 [details]
build.log
Comment 2 Aaron W. Swenson gentoo-dev 2018-08-19 21:05:57 UTC
Does this still occur with 3.2?