Wireshark-dev: [Wireshark-dev] Windows Build Error: ascend-scanner.c(1737) : error C2220: warni
From: "Edward king" <[email protected]>
Date: Wed, 23 Apr 2008 03:20:30 -0700
Hi,
I am trying to do my first build of Wireshark on Windows platform using:
  • VC6.0
  • Cygwin
  • GNU bash, version 3.2.33(18)-release (i686-pc-cygwin)
  • bison (GNU Bison) 2.3
  • flex 2.5.35
  • env (GNU coreutils) 6.10
  • perl, v5.8.8 built for cygwin-thread-multi-64int
  • Python 2.4.4
  • GNU Wget 1.10.2
verify tools checked out ok.
install libs checked out ok
distclean completes ok
but build fails.

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
        rc  /r ..\image\wiretap
        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DYYMALLOC=malloc -DYYFREE=free -DHAVE_CONFIG_H /I. /I..  /IC:\wireshark-win32-libs\glib\include\glib-2.0  /IC:\wireshark-win32-libs\glib\lib\glib-2.0\include /IC:\wireshark-win32-libs\zlib123\include /IC:\wireshark-win32-libs\WPdpack/include  -D_U_="" /Zi /W3 /MD /DMSC_VER_REQUIRED=1200 -Fd.\ -c catapult_dct2000.c erf.c eyesdn.c libpcap.c nettl.c pcapng.c wtap.c ascend-scanner.c k12text.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
catapult_dct2000.c
erf.c
eyesdn.c
libpcap.c
nettl.c
pcapng.c
wtap.c
ascend-scanner.c
ascend-scanner.c(1737) : error C2220: warning treated as error - no object file generated
ascend-scanner.c(1737) : warning C4003: not enough actual parameters for macro 'ascendwrap'
ascend-scanner.c(2072) : warning C4003: not enough actual parameters for macro 'ascendwrap'
k12text.c
k12text.c(967) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: 'cl' : return code '0x2'

Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MIAF9D~1\VC98\BIN\NMAKE.EXE' : return code '0x2'
Stop.

I know unistd.h is not a Windows platform file, but k12text seems to be generated from k21text.l ( not from SVN). I have been searching and verifying my tools, but I don't see a solution.....

thanks for the help in advance.
--Edward