Ethereal-dev: [Ethereal-dev] Cannot compile wiretap (cvs) on Win32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Mike Frisch <mfrisch@xxxxxxxxxx>
Date: Thu, 20 Jun 2002 12:58:54 -0400
Is anybody else having a problem compiling wiretap on Win32?  Something
has changed in the past 2 or 3 weeks that causes a winsock header file
conflict.  Previous to this change, I was able to compile wiretap
without incident.

Environment: Windows 2000, VC6 (SP5), November 2001 Platform SDK

I have enclosed the log.

Mike.
	cl -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -DHAVE_CONFIG_H /Ie:\ethereal\src\glib /Ie:\ethereal\src\zlib-1.1.3 /Ie:\ethereal\src\wpdpack/include  -D_U_="" -Zi -Fd.\ -c libpcap.c 
libpcap.c
e:\ethereal\src\wpdpack/include\gnuc.h(18) : warning C4005: 'inline' : macro redefinition
        e:\ethereal\src\glib\gutils.h(95) : see previous definition of 'inline'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(83) : see previous definition of 'FD_SET'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(212) : error C2011: 'netent' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(219) : error C2011: 'servent' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(226) : error C2011: 'protoent' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(310) : error C2011: 'in_addr' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(368) : error C2011: 'sockaddr_in' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(378) : error C2011: 'WSAData' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(430) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(391) : see previous definition of 'SO_DONTLINGER'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(483) : warning C4005: 'AF_IPX' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(449) : see previous definition of 'AF_IPX'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(506) : warning C4005: 'AF_MAX' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(468) : see previous definition of 'AF_MAX'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(512) : error C2011: 'sockaddr' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(521) : error C2011: 'sockproto' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(560) : error C2011: 'linger' : 'struct' type redefinition
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(573) : warning C4005: 'SOMAXCONN' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(533) : see previous definition of 'SOMAXCONN'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(598) : warning C4005: 'FD_READ' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(551) : see previous definition of 'FD_READ'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(601) : warning C4005: 'FD_WRITE' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(552) : see previous definition of 'FD_WRITE'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(604) : warning C4005: 'FD_OOB' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(553) : see previous definition of 'FD_OOB'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(607) : warning C4005: 'FD_ACCEPT' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(554) : see previous definition of 'FD_ACCEPT'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(610) : warning C4005: 'FD_CONNECT' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(555) : see previous definition of 'FD_CONNECT'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(613) : warning C4005: 'FD_CLOSE' : macro redefinition
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(556) : see previous definition of 'FD_CLOSE'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1427) : error C2375: 'accept' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(707) : see declaration of 'accept'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1448) : error C2375: 'bind' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(710) : see declaration of 'bind'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1467) : error C2375: 'closesocket' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(712) : see declaration of 'closesocket'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1486) : error C2375: 'connect' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(714) : see declaration of 'connect'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1507) : error C2375: 'ioctlsocket' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(716) : see declaration of 'ioctlsocket'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1528) : error C2375: 'getpeername' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(718) : see declaration of 'getpeername'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1549) : error C2375: 'getsockname' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(721) : see declaration of 'getsockname'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1572) : error C2375: 'getsockopt' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(724) : see declaration of 'getsockopt'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1593) : error C2375: 'htonl' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(727) : see declaration of 'htonl'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1610) : error C2375: 'htons' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(729) : see declaration of 'htons'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1627) : error C2375: 'inet_addr' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(731) : see declaration of 'inet_addr'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1644) : error C2375: 'inet_ntoa' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(733) : see declaration of 'inet_ntoa'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1662) : error C2375: 'listen' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(735) : see declaration of 'listen'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1680) : error C2375: 'ntohl' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(737) : see declaration of 'ntohl'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1697) : error C2375: 'ntohs' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(739) : see declaration of 'ntohs'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1717) : error C2375: 'recv' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(741) : see declaration of 'recv'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1742) : error C2375: 'recvfrom' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(743) : see declaration of 'recvfrom'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1768) : error C2375: 'select' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(746) : see declaration of 'select'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1792) : error C2375: 'send' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(749) : see declaration of 'send'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1817) : error C2375: 'sendto' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(751) : see declaration of 'sendto'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1843) : error C2375: 'setsockopt' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(754) : see declaration of 'setsockopt'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1865) : error C2375: 'shutdown' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(757) : see declaration of 'shutdown'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1885) : error C2375: 'socket' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(759) : see declaration of 'socket'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1908) : error C2375: 'gethostbyaddr' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(763) : see declaration of 'gethostbyaddr'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1927) : error C2375: 'gethostbyname' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(766) : see declaration of 'gethostbyname'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1945) : error C2375: 'gethostname' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(768) : see declaration of 'gethostname'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1964) : error C2375: 'getservbyport' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(770) : see declaration of 'getservbyport'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(1983) : error C2375: 'getservbyname' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(772) : see declaration of 'getservbyname'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2001) : error C2375: 'getprotobynumber' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(775) : see declaration of 'getprotobynumber'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2018) : error C2375: 'getprotobyname' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(777) : see declaration of 'getprotobyname'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2038) : error C2375: 'WSAStartup' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(781) : see declaration of 'WSAStartup'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2056) : error C2375: 'WSACleanup' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(783) : see declaration of 'WSACleanup'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2073) : error C2375: 'WSASetLastError' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(785) : see declaration of 'WSASetLastError'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2090) : error C2375: 'WSAGetLastError' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(787) : see declaration of 'WSAGetLastError'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2107) : error C2375: 'WSAIsBlocking' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(789) : see declaration of 'WSAIsBlocking'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2124) : error C2375: 'WSAUnhookBlockingHook' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(791) : see declaration of 'WSAUnhookBlockingHook'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2141) : error C2375: 'WSASetBlockingHook' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(793) : see declaration of 'WSASetBlockingHook'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2158) : error C2375: 'WSACancelBlockingCall' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(795) : see declaration of 'WSACancelBlockingCall'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2180) : error C2375: 'WSAAsyncGetServByName' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(797) : see declaration of 'WSAAsyncGetServByName'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2207) : error C2375: 'WSAAsyncGetServByPort' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(802) : see declaration of 'WSAAsyncGetServByPort'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2233) : error C2375: 'WSAAsyncGetProtoByName' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(806) : see declaration of 'WSAAsyncGetProtoByName'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2258) : error C2375: 'WSAAsyncGetProtoByNumber' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(810) : see declaration of 'WSAAsyncGetProtoByNumber'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2283) : error C2375: 'WSAAsyncGetHostByName' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(814) : see declaration of 'WSAAsyncGetHostByName'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2310) : error C2375: 'WSAAsyncGetHostByAddr' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(818) : see declaration of 'WSAAsyncGetHostByAddr'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2333) : error C2375: 'WSACancelAsyncRequest' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(822) : see declaration of 'WSACancelAsyncRequest'
D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock2.h(2353) : error C2375: 'WSAAsyncSelect' : redefinition; different linkage
        D:\PROGRA~1\MICROS~2\VC98\INCLUDE\winsock.h(824) : see declaration of 'WSAAsyncSelect'