Adding ifndef's seems to make it compile.
In epan/dissectors/packet-ipv6.h:
Change from:
#define INET6_ADDRSTRLEN 46
To:
#ifndef _WIN32
#define INET6_ADDRSTRLEN 46
#endif
--Andy
On Wed, Jul 9, 2008 at 9:24 AM, Martin Corraine (mcorrain) <
mcorrain@xxxxxxxxx> wrote:
ok, I got that error now. I wasn't using the 1.0.1 before.
Did you find a work around?
-martin
Sent: Tuesday, July 08, 2008 6:06 PM
To: Developer
support list for Wireshark
Subject: Re: [Wireshark-dev]
INET6_ADDRSTRLEN redefinition
Nope, I'm running on a 32bit version of Windows XP. The svn sources
can build without problems. It's only 1.0.1 that errors out with this
INET6_ADDRSTRLEN macro redefinition error.
--Andy
On Tue, Jul 8, 2008 at 2:25 PM, Martin Corraine
(mcorrain) <
mcorrain@xxxxxxxxx>
wrote:
It
complies fine on WinXP32 with VS2005EE. I've updated my sources this
morning. Are you on Win64?
Anyone else run into this issue while compiling Wireshark 1.0.1 on
Windows XP with VS2005?
The INET6_ADDRSTRLEN defined in packet-ipv6.h
seems to conflict with the INET6_ADDRSTRLEN of ws2tcpip.h in the Platform SDK.
A simple #ifndef _WIN32 block around that definition seems to fix the issue.
--Andy
Error Dump:
cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX
-DHAVE_CONFIG_H /I.. /I../wiretap
/IC:\wireshark-libs-1.0\glib\include\glib-2.0
/IC:\wireshark-libs-1.0\glib\lib\glib-2.0\include
/IC:\wireshark-libs-1.0\gtk+\include
/IC:\wireshark-libs-1.0\gtk+\include\gdk
/IC:\wireshark-libs-1.0\gtk+\lib\gtk+\include
/IC:\wireshark-libs-1.0\gnutls-2.3.8-1\include /DNOCRYPT
/IC:\wireshark-libs-1.0\WPdpack\WPCAP\LIBPCAP
/IC:\wireshark-libs-1.0\WPdpack\WPCAP\LIBPCAP\bpf
/IC:\wireshark-libs-1.0\WPdpack\WPCAP\LIBPCAP\lbl
/IC:\wireshark-libs-1.0\WPdpack\include /Zm800 -D_U_=""
-D_NEED_VAR_IMPORT_ /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE
/D_CRT_NONSTDC_NO_DEPRECATE /DMSC_VER_REQUIRED=1400
/IC:\wireshark-libs-1.0\portaudio_v19\include
/IC:\wireshark-libs-1.0\portaudio_v19\src\common -DHHC_DIR -Fd.\
-c follow_ssl.c
follow_ssl.c
C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\ws2tcpip.h(747) : error C2220: warning treated as
error - no 'object' file generated
C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\ws2tcpip.h(747) : warning C4005: 'INET6_ADDRSTRLEN' :
macro redefinition
C:\wireshark-1.0.1\epan/dissectors/packet-ipv6.h(37) : see previous definition
of 'INET6_ADDRSTRLEN
NMAKE : fatal error U1077: '"C:\Program
Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code
'0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
Visual Studio 8\VC\BIN\nmake.exe"' : return code
'0x2'
Stop
_______________________________________________
Wireshark-dev
mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
https://wireshark.org/mailman/listinfo/wireshark-dev