Wireshark-dev: Re: [Wireshark-dev] Compilation failure on Fedora 20 - GTK3 issues

From: Kaul <mykaul@xxxxxxxxx>
Date: Fri, 20 Dec 2013 20:41:30 +0200
wireshark-qt compiled fine and looks great. Bubye GTK.
Thanks,
Y.


On Fri, Dec 20, 2013 at 7:46 PM, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
As Wireshark development doesn't really care about the compatibility with
future GTK versions (we are migrating to Qt) I have disabled that warning
for cmake builds. So either apply a similar change to the autotools build
or use cmake to build (see README.cmake).

Ciao
     Jöarg

On Fri, Dec 20, 2013 at 01:20:37PM +0200, 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)
>                                                           ^
> 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)
>                                                           ^
> about_dlg.c: In function ‘about_wireshark_cb’:
> about_dlg.c:580:29: error: ‘GTK_STOCK_OK’ undeclared (first use in this
> function)
>    bbox = dlg_button_row_new(GTK_STOCK_OK, NULL);
>                              ^
> about_dlg.c:580:29: note: each undeclared identifier is reported only once
> for each function it appears in
> cc1: all warnings being treated as errors
> make[2]: *** [libgtkui_a-about_dlg.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> In file included from addr_resolution_dlg.c:49:0:
> ../../ui/gtk/addr_resolution_dlg.h:28:27: error: unknown type name
> ‘GtkAction’
>  void addr_resolution_dlg (GtkAction *action, gpointer data);
>                            ^
> addr_resolution_dlg.c:290:22: error: unknown type name ‘GtkAction’
>  addr_resolution_dlg (GtkAction *action _U_, gpointer data _U_)
>                       ^
> addr_resolution_dlg.c:52:19: error: ‘addr_resolution_dlg_w’ defined but not
> used [-Werror=unused-variable]
>  static GtkWidget *addr_resolution_dlg_w = NULL;
>                    ^
> addr_resolution_dlg.c:201:1: error: ‘addres_resolution_to_texbuff’ defined
> but not used [-Werror=unused-function]
>  addres_resolution_to_texbuff(GtkTextBuffer *buffer)
>  ^
> cc1: all warnings being treated as errors

> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe


--
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe