Wireshark-bugs: [Wireshark-bugs] [Bug 8525] New: Patch to allow Wireshark to compile with C++ wh
Date: Tue, 26 Mar 2013 01:06:56 +0000
Bug ID 8525
Summary Patch to allow Wireshark to compile with C++ when HAVE_GTKOSXAPPLICATION is defined
Classification Unclassified
Product Wireshark
Version 1.9.x (Experimental)
Hardware x86
OS Mac OS X 10.6
Status UNCONFIRMED
Severity Normal
Priority Low
Component Wireshark
Assignee bugzilla-admin@wireshark.org
Reporter jyoung@gsu.edu

Build Information:
wireshark 1.9.2 (SVN Rev 48554 from /trunk)

Copyright 1998-2013 Gerald Combs <gerald@wireshark.org> 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.13, with Cairo 1.12.6, with Pango 1.32.4, with
GLib 2.34.1, with libpcap, with libz 1.2.3, without POSIX capabilities, without
libnl, without SMI, without c-ares, without ADNS, without Lua, without Python,
without GnuTLS, without Gcrypt, with MIT Kerberos, without GeoIP, without
PortAudio, with AirPcap.

Running on Mac OS X 10.6.8, build 10K549 (Darwin 10.8.0), without locale, with
libpcap version 1.0.0, with libz 1.2.3, without AirPcap.
Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz

Built using gcc 4.2.1 (Apple Inc. build 5666) (dot 3).

--
When HAVE_GTKOSXAPPLICATION is defined Wireshark fails to compile:

> <snip>
> cc1: warnings being treated as errors
> drag_and_drop.c: In function ‘gtk_osx_openFile’:
> drag_and_drop.c:346: warning: request for implicit conversion from ‘gpointer’ to ‘gchar *’ not permitted in C++
> <snip>
> main.c: In function ‘main_capture_callback’:
> main.c:1890: warning: request for implicit conversion from ‘gpointer’ to ‘struct GtkosxApplication *’ not permitted in C++
> main.c:1917: warning: request for implicit conversion from ‘gpointer’ to ‘struct GtkosxApplication *’ not permitted in C++
> main.c: In function ‘main’:
> main.c:3210: warning: request for implicit conversion from ‘gpointer’ to ‘struct GtkosxApplication *’ not permitted in C++
> <snip>
> main_menubar.c: In function ‘main_menu_new’:
> main_menubar.c:3150: warning: request for implicit conversion from ‘gpointer’ to ‘struct GtkosxApplication *’ not permitted in C++
> <snip>

Attached patch allows successful compilation when HAVE_GTKOSXAPPLICATION is
defined.


You are receiving this mail because:
  • You are watching all bug changes.