Wireshark-dev: Re: [Wireshark-dev] Error: implicit declaration of function ‘gdk_pixbuf_new_from
From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Wed, 20 May 2015 13:43:30 +0200
2015-05-20 13:34 GMT+02:00 Andrei Emeltchenko <andrei.emeltchenko.news@xxxxxxxxx>:
Hi,

recently I hit following error when building wireshark on Ubuntu 15.04:

...
  AR       libqtui.a
make[2]: Leaving directory '/usr/local/wireshark/ui/qt'
Making all in ui/gtk
make[2]: Entering directory '/usr/local/wireshark/ui/gtk'
  CC       libgtkui_a-gui_utils.o
gui_utils.c: In function ‘window_icon_realize_cb’:
gui_utils.c:115:5: error: implicit declaration of function
‘gdk_pixbuf_new_from_inline’ [-Werror=implicit-function-declaration]
     icon = gdk_pixbuf_new_from_inline(-1, wsicon_16_pb_data, FALSE,
NULL);
     ^
gui_utils.c:115:10: error: assignment makes pointer from integer without
a cast [-Werror]
     icon = gdk_pixbuf_new_from_inline(-1, wsicon_16_pb_data, FALSE,
NULL);
          ^
gui_utils.c:117:10: error: assignment makes pointer from integer without
a cast [-Werror]
     icon = gdk_pixbuf_new_from_inline(-1, wsicon_32_pb_data, FALSE,
NULL);
          ^
gui_utils.c:119:10: error: assignment makes pointer from integer without
a cast [-Werror]
     icon = gdk_pixbuf_new_from_inline(-1, wsicon_48_pb_data, FALSE,
NULL);
          ^
gui_utils.c:121:10: error: assignment makes pointer from integer without
a cast [-Werror]
     icon = gdk_pixbuf_new_from_inline(-1, wsicon_64_pb_data, FALSE,
NULL);
          ^
gui_utils.c: In function ‘pixbuf_to_widget’:
gui_utils.c:524:12: error: assignment makes pointer from integer without
a cast [-Werror]
     pixbuf = gdk_pixbuf_new_from_inline(-1, pb_data, FALSE, NULL);
            ^
cc1: all warnings being treated as errors
Makefile:1816: recipe for target 'libgtkui_a-gui_utils.o' failed
make[2]: *** [libgtkui_a-gui_utils.o] Error 1
make[2]: Leaving directory '/usr/local/wireshark/ui/gtk'
Makefile:3645: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/wireshark'
Makefile:2276: recipe for target 'all' failed
make: *** [all] Error 2
...

Anybody seen this?

Hi Andrei,

Balint, would you be OK to temporarily allow deprecated APIs until you have the time to work on it?

Regards,
Pascal.