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