Now, with LFS7.4, build fails.
$ paco qt gtk+
gtk+-2.24.20 gtk+-2.24.22 gtk+-3.10.1 gtk+-3.8.2 qt-4.8.5
Newer packages installed "over" old ones.
Em 17-10-2013 00:27, Bruce Dubbs escreveu:
> I've just been working with wireshark-1.11.0. I can say from the build
> perspective that I'm quite disappointed. IN the previous version, the
> configure line was ./configure --prefix=/usr --sysconfdir=/etc
>
> this fails with the current version. It is trying to use both Qt5 and
> gtk+3 and both fail for me. I was able to get it to build with:
>
It configures with gtk+3. I have gtk+2 and 3, do not have qt5, only qt4.
{{{
The Wireshark package has been configured with the following options.
Build wireshark (Gtk+) : yes (with GTK+ 3)
Build wireshark-qt : yes
Build tshark : yes
Build capinfos : yes
Build editcap : yes
Build dumpcap : yes
Build mergecap : yes
Build reordercap : yes
Build text2pcap : yes
Build randpkt : yes
Build dftest : yes
Build rawshark : yes
Build echld : no
Save files as pcap-ng by default : yes
Install dumpcap with capabilities : no
Install dumpcap setuid : no
Use dumpcap group : (none)
Use plugins : yes
Use Lua library : yes
Use Python binding : no
Build rtp_player : no
Build profile binaries : no
Use pcap library : yes
Use zlib library : yes
Use kerberos library : no
Use c-ares library : no
Use GNU ADNS library : no
Use SMI MIB library : no
Use GNU crypto library : yes
Use SSL crypto library : no
Use IPv6 name resolution : yes
Use gnutls library : yes
Use POSIX capabilities library : yes
Use GeoIP library : no
Use nl library : no
}}}
> --enable-warnings-as-errors=no --with-gtk2=yes --with-gtk3=no
>
> and also removing /opt/qt5/lib/pkgconfig from the PKG_CONFIG_PATH. In
> both cases, there are constructs that are invalid in the subject
> packages, In addition, it wants to enable-warnings-as-errors by
> default, but there are about 3600 warnings for unused-but-set-variable
> and other dead code.
I do not understand "there are constructs that are invalid in the
subject packages".
Confirmed also the warnings.
$ xzgrep unused-but-set-variable
wireshark-1.11.0-2013.10.17-08h47m31s.log.xz >
/tmp/wireshark-werrors-1.11.0-2013.10.17-08h47m31s.log
Again, this gives me a file with 2745 lines.
>
> I also ran across an error in /usr/include/gtk-3.0/gtk/gtkwidget.h at
> line 787, as g++ seems to be confused by the spaces and it's keyword 'and'.
>
This, I can confirm:
$ xzgrep gtkwidget wireshark-1.11.0-2013.10.17-08h47m31s.log.xz
/usr/include/gtk-3.0/gtk/gtkwidget.h:787:58: error: identifier "and" is
a special operator name in C++ [-Werror=c++-compat]
/usr/include/gtk-3.0/gtk/gtkwidget.h:787:58: error: identifier "and" is
a special operator name in C++ [-Werror=c++-compat]
/usr/include/gtk-3.0/gtk/gtkwidget.h:787:58: error: identifier "and" is
a special operator name in C++ [-Werror=c++-compat]
/usr/include/gtk-3.0/gtk/gtkwidget.h:787:58: error: identifier "and" is
a special operator name in C++ [-Werror=c++-compat]
> Can someone please give wireshark-1.11.0 a try and see if the same
> issues arise?
Tail of the log:
{{{
make[2]: Saindo do diretório
`/home/fernando/tmp/paco-build-2013.10.17-08h47m31s/wireshark-1.11.0/ui/qt'
Making all in ui/gtk
make[2]: Entrando no diretório
`/home/fernando/tmp/paco-build-2013.10.17-08h47m31s/wireshark-1.11.0/ui/gtk'
CC libgtkui_a-about_dlg.o
CC libgtkui_a-addr_resolution_dlg.o
CC libgtkui_a-airpcap_dlg.o
CC libgtkui_a-airpcap_gui_utils.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:28:
/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)
^
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 airpcap_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)
^
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 airpcap_gui_utils.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)
^
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
make[2]: ** [libgtkui_a-addr_resolution_dlg.o] Erro 1
make[2]: *** Esperando que os outros processos terminem....
about_dlg.c: In function ‘about_wireshark_cb’:
about_dlg.c:581:29: error: ‘GTK_STOCK_OK’ undeclared (first use in this
function)
bbox = dlg_button_row_new(GTK_STOCK_OK, NULL);
^
about_dlg.c:581: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] Erro 1
airpcap_dlg.c: In function ‘display_airpcap_advanced_cb’:
airpcap_dlg.c:1858:45: error: ‘GTK_STOCK_OK’ undeclared (first use in
this function)
right_h_button_box = dlg_button_row_new(GTK_STOCK_OK,
GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
^
airpcap_dlg.c:1858:45: note: each undeclared identifier is reported only
once for each function it appears in
airpcap_dlg.c:1858:59: error: ‘GTK_STOCK_APPLY’ undeclared (first use in
this function)
right_h_button_box = dlg_button_row_new(GTK_STOCK_OK,
GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
^
airpcap_dlg.c:1858:76: error: ‘GTK_STOCK_CANCEL’ undeclared (first use
in this function)
right_h_button_box = dlg_button_row_new(GTK_STOCK_OK,
GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
^
airpcap_dlg.c: In function ‘display_airpcap_key_management_cb’:
airpcap_dlg.c:2152:5: error: ‘gtk_button_new_from_stock’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use
'gtk_button_new_with_label' instead [-Werror=deprecated-declarations]
add_new_key_bt = gtk_button_new_from_stock(GTK_STOCK_NEW);
^
airpcap_dlg.c:2152:48: error: ‘GTK_STOCK_NEW’ undeclared (first use in
this function)
add_new_key_bt = gtk_button_new_from_stock(GTK_STOCK_NEW);
^
airpcap_dlg.c:2158:5: error: ‘gtk_button_new_from_stock’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use
'gtk_button_new_with_label' instead [-Werror=deprecated-declarations]
edit_key_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_EDIT);
^
airpcap_dlg.c:2164:5: error: ‘gtk_button_new_from_stock’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use
'gtk_button_new_with_label' instead [-Werror=deprecated-declarations]
remove_key_bt = gtk_button_new_from_stock(GTK_STOCK_DELETE);
^
airpcap_dlg.c:2164:47: error: ‘GTK_STOCK_DELETE’ undeclared (first use
in this function)
remove_key_bt = gtk_button_new_from_stock(GTK_STOCK_DELETE);
^
airpcap_dlg.c:2170:5: error: ‘gtk_button_new_from_stock’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use
'gtk_button_new_with_label' instead [-Werror=deprecated-declarations]
move_key_up_bt = gtk_button_new_from_stock(GTK_STOCK_GO_UP);
^
airpcap_dlg.c:2170:48: error: ‘GTK_STOCK_GO_UP’ undeclared (first use in
this function)
move_key_up_bt = gtk_button_new_from_stock(GTK_STOCK_GO_UP);
^
airpcap_dlg.c:2176:5: error: ‘gtk_button_new_from_stock’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/gtkbutton.h:87): Use
'gtk_button_new_with_label' instead [-Werror=deprecated-declarations]
move_key_down_bt = gtk_button_new_from_stock(GTK_STOCK_GO_DOWN);
^
airpcap_dlg.c:2176:50: error: ‘GTK_STOCK_GO_DOWN’ undeclared (first use
in this function)
move_key_down_bt = gtk_button_new_from_stock(GTK_STOCK_GO_DOWN);
^
airpcap_dlg.c:2201:45: error: ‘GTK_STOCK_OK’ undeclared (first use in
this function)
right_h_button_box = dlg_button_row_new(GTK_STOCK_OK,
GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
^
airpcap_dlg.c:2201:59: error: ‘GTK_STOCK_APPLY’ undeclared (first use in
this function)
right_h_button_box = dlg_button_row_new(GTK_STOCK_OK,
GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
^
airpcap_dlg.c:2201:76: error: ‘GTK_STOCK_CANCEL’ undeclared (first use
in this function)
right_h_button_box = dlg_button_row_new(GTK_STOCK_OK,
GTK_STOCK_APPLY, GTK_STOCK_CANCEL, NULL);
^
cc1: all warnings being treated as errors
make[2]: ** [libgtkui_a-airpcap_dlg.o] Erro 1
cc1: all warnings being treated as errors
make[2]: ** [libgtkui_a-airpcap_gui_utils.o] Erro 1
make[2]: Saindo do diretório
`/home/fernando/tmp/paco-build-2013.10.17-08h47m31s/wireshark-1.11.0/ui/gtk'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório
`/home/fernando/tmp/paco-build-2013.10.17-08h47m31s/wireshark-1.11.0'
make: ** [all] Erro 2
}}}
Do you want the log?
I will try the older wireshark-1.8.3 and using new switches as you
suggested, with wireshark-1.11.0.
--
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page