Wireshark-bugs: [Wireshark-bugs] [Bug 6111] New: Build fails when HAVE_AIRPCAP: uninit'ed var in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6111
Summary: Build fails when HAVE_AIRPCAP: uninit'ed var in
main_welcome.c
Product: Wireshark
Version: SVN
Platform: x86-64
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Major
Priority: Low
Component: Wireshark
AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
ReportedBy: tony19@xxxxxxxxx
Build Information:
wireshark 1.7.0 (SVN Rev 37942 from /trunk)
Copyright 1998-2011 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled (64-bit) with GTK+ 2.24.4, with GLib 2.28.7, with libpcap 1.0.0, with
libz 1.2.5, without POSIX capabilities, without libpcre, without SMI, without
c-ares, without ADNS, with Lua 5.1, with Python 2.6.1, without GnuTLS, without
Gcrypt, with MIT Kerberos, without GeoIP, without PortAudio, without AirPcap.
Running on Mac OS 10.6.7 (Darwin 10.7.0), with locale en_US.UTF-8, with libpcap
version 1.0.0, with libz 1.2.5.
Built using gcc 4.2.1 (Apple Inc. build 5666) (dot 3).
--
When HAVE_AIRPCAP is ON (the default case for the CMake build), the build fails
with the [noisy] warning-as-error (below). Note the uninitialized variable
(`interface_opts.name`) is used at:
http://anonsvn.wireshark.org/viewvc/trunk/gtk/main_welcome.c?revision=37937&view=markup#l792
[ 80%] Building C object gtk/CMakeFiles/ui.dir/main_welcome.c.o
cd /Users/tony/Developer/src/wireshark-1.7-build/gtk && /usr/bin/gcc
-DHAVE_CONFIG_H -DPACKAGE=\"wireshark\" -D_U_="__attribute__((unused))"
-DGTK_DISABLE_SINGLE_INCLUDES -I/Users/tony/Developer/src/wireshark-1.7-build
-I/Users/tony/Developer/src/wireshark-1.7
-I/Users/tony/Developer/src/wireshark-1.7/epan
-I/Users/tony/Developer/src/wireshark-1.7/tools/lemon
-I/Users/tony/Developer/src/wireshark-1.7/wiretap -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0
-I/opt/local/include/atk-1.0
-I/System/Library/Frameworks/Kerberos.framework/Headers
-I/Users/tony/Developer/src/wireshark-1.7/gtk -O2 -Wall -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign
-Wcast-align -Wformat-security -Wold-style-definition -Werror -o
CMakeFiles/ui.dir/main_welcome.c.o -c
/Users/tony/Developer/src/wireshark-1.7/gtk/main_welcome.c
cc1: warnings being treated as errors
/Users/tony/Developer/src/wireshark-1.7/gtk/main_welcome.c: In function
‘capture_if_start’:
/Users/tony/Developer/src/wireshark-1.7/gtk/main_welcome.c:761: warning:
‘interface_opts.name’ may be used uninitialized in this function
make[2]: *** [gtk/CMakeFiles/ui.dir/main_welcome.c.o] Error 1
make[1]: *** [gtk/CMakeFiles/ui.dir/all] Error 2
make: *** [all] Error 2
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.