Wireshark-dev: Re: [Wireshark-dev] Compilation failure on Fedora 20 - GTK3 issues
From: Peter Wu <lekensteyn@xxxxxxxxx>
Date: Fri, 20 Dec 2013 12:54:15 +0100
Hi Kaul,

On Friday 20 December 2013 13:20:37 Kaul wrote:
> Doesn't happen on a fully updated Fedora 19, just on my Fedora 20:
>   CC       libgtkui_a-addr_resolution_dlg.o
> In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
>                  from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
>                  from /usr/include/gtk-3.0/gtk/gtkdialog.h:33,
>                  from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
>                  from /usr/include/gtk-3.0/gtk/gtk.h:31,
>                  from about_dlg.c:30:
> /usr/include/gtk-3.0/gtk/gtkwidget.h:787:58: error: identifier "and" is a
> special operator name in C++ [-Werror=c++-compat]
>  GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_width and
> gtk_widget_get_preferred_height)

Workaround: edit the header file and remove
"and gtk_widget_get_preferred_height".
                            ^
> In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
>                  from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
>                  from /usr/include/gtk-3.0/gtk/gtkdialog.h:33,
>                  from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
>                  from /usr/include/gtk-3.0/gtk/gtk.h:31,
>                  from addr_resolution_dlg.c:31:
> /usr/include/gtk-3.0/gtk/gtkwidget.h:787:58: error: identifier "and" is a
> special operator name in C++ [-Werror=c++-compat]
>  GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_width and
> gtk_widget_get_preferred_height)

These errors was reported before, see
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9340

Workaround: use GTK2.

Regards,
Peter