This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

build error for 1.8 with VS 2013

0

Hi,

Started testing builds with VS 2013 Pro (nmake build), complaints about redefinitions:

C:\Program Files (x86)\Windows Kits\8.1\include\um\ws2tcpip.h(531) : error
C2373: 'ws_inet_pton' : redefinition; different type modifiers

E:\Wireshark\trunk\wsutil/inet_v6defs.h(44) : see declaration of 'ws_inet_pton'

C:\Program Files (x86)\Windows Kits\8.1\include\um\ws2tcpip.h(548) : error C2373: 'ws_inet_ntop' : redefinition; different type modifiers

E:\Wireshark\trunk\wsutil/inet_v6defs.h(46) : see declaration of 'ws_inet_ntop'

Looking at the definitions of these I can’t see what’s up.

asked 18 Nov ‘15, 17:16

Govindarao%20Bandaru's gravatar image

Govindarao B…
1111
accept rate: 0%

edited 19 Nov ‘15, 03:50

grahamb's gravatar image

grahamb ♦
19.8k330206

Note that if you’re trying to build 2.0, then the Windows build system has switched to CMake.

(19 Nov ‘15, 02:11) grahamb ♦


One Answer:

0

What version of the Wireshark source are you building from ?.

This problem was fixed in Dec 2013. The fix appeared in Wireshark-1.12 sources.

(See the wireshark-dev message thread beginning at: https://www.wireshark.org/lists/wireshark-dev/201312/msg00066.html

The actual commit: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3ccec6e23b8fa7f2601118660a1f01d325eb2dd4

answered 18 Nov '15, 19:50

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

I am using wireshark- 1.8.15

(19 Nov '15, 02:52) Govindarao B...
I am using wireshark- 1.8.15

OK, VS2013 isn't supported for that version.

(19 Nov '15, 03:15) grahamb ♦