Wireshark mailing list archives

Re: build issue on new ubuntu machine prefs_dlg.c: In function ?pref_check?


From: Aamer Akhter <aakhter () gmail com>
Date: Wed, 8 Jun 2011 14:20:57 -0400

Thanks Anders. I can confirm that it is working now in SVN 37622

On Wed, Jun 8, 2011 at 9:31 AM, Anders Broman
<anders.broman () ericsson com> wrote:
Hi,
It should hopfully work now if you do SVN up as I have checked in two "fixes" to at least make it build.
Regards
Anders

-----Original Message-----
From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Roland Knall
Sent: den 8 juni 2011 15:16
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] build issue on new ubuntu machine prefs_dlg.c: In function ?pref_check?

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 () gmail com> 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 () gmail com
______________________________________________________________________
_____ Sent via:    Wireshark-dev mailing list
<wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

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




-- 
Aamer Akhter / aakhter () gmail com
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: