ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Error: implicit declaration of function ‘gdk_pixbuf_new_from

From: Bálint Réczey <balint@xxxxxxxxxxxxxxx>
Date: Wed, 20 May 2015 15:12:08 +0200
2015-05-20 13:43 GMT+02:00 Pascal Quantin <pascal.quantin@xxxxxxxxx>:
> 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,
>
> this is https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10750
>
> Balint, would you be OK to temporarily allow deprecated APIs until you have
> the time to work on it?
Sure, I already agreed to doing that in the bug.

Cheers,
Balint