Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] build issue on new ubuntu machine prefs_dlg.c: In function ?

From: Roland Knall <rknall@xxxxxxxxx>
Date: Wed, 8 Jun 2011 15:15:43 +0200
Hi

Works like a charm on my PC, which is a Ubuntu 11.04 - 64bit. But only
without -werror. Interestingly enough, my build fails when building
iax2_analysis.c also with unused_result warning.

Btw, I would recommend the cmake interface, which I normally use. But
I tested using your steps, and they worked fine on my machine. With
cmake, the current SVN runs through and builds everything correctly.

kind regards,
Roland


On Wed, Jun 8, 2011 at 2:33 PM, Aamer Akhter <aakhter@xxxxxxxxx> wrote:
> Hi Folks,
>
> I'm having some build issues on a machine that I haven't built
> wireshark on. The usual script I use is:
>
>
> svn co http://anonsvn.wireshark.org/wireshark/trunk/ wireshark
> sudo apt-get build-dep wireshark
> ./autogen.sh
> ./configure
> make
>
> The error is  (during make):
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I../wiretap
> -I/usr/local/include -I/usr/include/pcap
> '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.7.0"' -Werror
> -DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wextra
> -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
> -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
> -Wold-style-definition -I/usr/local/include -pthread -D_REENTRANT
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
> -I/usr/include/freetype2 -I/usr/include/directfb
> -I/usr/include/libpng12   -I/usr/include/pcap  -MT libui_a-prefs_dlg.o
> -MD -MP -MF ".deps/libui_a-prefs_dlg.Tpo" -c -o libui_a-prefs_dlg.o
> `test -f 'prefs_dlg.c' || echo './'`prefs_dlg.c; \
>       then mv -f ".deps/libui_a-prefs_dlg.Tpo"
> ".deps/libui_a-prefs_dlg.Po"; else rm -f
> ".deps/libui_a-prefs_dlg.Tpo"; exit 1; fi
> cc1: warnings being treated as errors
> prefs_dlg.c: In function ?pref_check?:
> prefs_dlg.c:935: error: ignoring return value of ?strtoul?, declared
> with attribute warn_unused_result
> make[2]: *** [libui_a-prefs_dlg.o] Error 1
> make[2]: Leaving directory `/home/aakhter/wireshak-37604/gtk'
>
>
>
> Any thoughts on what might be causing this?
>
>
>
> --
> Aamer Akhter / aakhter@xxxxxxxxx
> ___________________________________________________________________________
> 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
>