ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] problem in building ethereal when using winsock2.h and ws2tcpip -

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

From: Masoud Kalali <security@xxxxxxxxxxxx>
Date: Tue, 05 Aug 2003 22:59:56 +0430
Hi People
There is a problem in building ethereal nightly build ethereal-2003-08-03.tar.gz
in win32 using MS-VC++  6
I attach  the err messege to this file , does any1 know solution for this?
Best regards
Masoud Kalali

cd ..
cl -DWIN32 -DNULL=0 -D_MT -D_DLL -DHAVE_CONFIG_H -Zi /IG:\ethereal\ether eal-win32-libs\glib_dir\include\glib-2.0 /IG:\ethereal\ethereal-win32-libs\glib _dir\lib\glib-2.0\include /IG:\ethereal\ethereal-win32-libs\gtk_dir /IG:\etherea l\ethereal-win32-libs\gtk_dir\gdk /I. /Iwiretap /IG:\ethereal\ethereal-win32-li bs\zlib /IG:\ethereal\ethereal-win32-libs\wpdpack\include /IG:\ethereal\etherea l-win32-libs\net-snmp-5.0.6\include /IG:\ethereal\ethereal-win32-libs\net-snmp-5 .0.6\win32 /IG:\ethereal\ethereal-win32-libs\adns\src /IG:\ethereal\ethereal-wi
n32-libs\adns\adns_win32 -D_U_="" -Fd.\ -c util.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

util.c
e:\MICROS~1\VC98\INCLUDE\winsock2.h(99) : error C2011: 'fd_set' : 'struct' type
redefinition
e:\MICROS~1\VC98\INCLUDE\winsock2.h(143) : error C2011: 'timeval' : 'struct' typ
e redefinition
e:\MICROS~1\VC98\INCLUDE\winsock2.h(199) : error C2011: 'hostent' : 'struct' typ
e redefinition
e:\MICROS~1\VC98\INCLUDE\winsock2.h(212) : error C2011: 'netent' : 'struct' type
redefinition
e:\MICROS~1\VC98\INCLUDE\winsock2.h(219) : error C2011: 'servent' : 'struct' typ
e redefinition
e:\MICROS~1\VC98\INCLUDE\winsock2.h(226) : error C2011: 'protoent' : 'struct' ty
pe redefinition
e:\MICROS~1\VC98\INCLUDE\winsock2.h(310) : error C2011: 'in_addr' : 'struct' typ
e redefinition
.
.
.
.