Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Windows build failing on register.c

From: "Charles Kristofek" <ckristofek@xxxxxxxxxxxxx>
Date: Wed, 12 Aug 2009 21:59:32 -0400
I'm trying to build Wireshark for the first time and I’m getting the following error:

 

Regards,

Chuck

 

**************************************************************************************************************************

C:\wireshark>nmake -f Makefile.nmake verify_tools

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Checking for required applications:

        cl: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/cl

        link: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/link

 

        nmake: /cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/BIN/nmake

        mt: /cygdrive/c/Program Files/Microsoft SDKs/Windows/v6.0A/bin/mt

        bash: /usr/bin/bash

        bison: /usr/bin/bison

        flex: /usr/bin/flex

        env: /usr/bin/env

        grep: /usr/bin/grep

        /usr/bin/find: /usr/bin/find

        perl: /usr/bin/perl

        C:\Python26\python.exe: /cygdrive/c/Python26/python.exe

        sed: /usr/bin/sed

        unzip: /usr/bin/unzip

        wget: /usr/bin/wget

 

C:\wireshark>nmake -f Makefile.nmake all

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd tools

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd lemon

        ..\native-nmake "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nma

ke.exe" /                   -f Makefile.nmake

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd ..

        cd ..

        cd image

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd ..

        cd codecs

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

'codecs.lib' is up-to-date

        cd ..

        cd wsutil

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd ..

        cd wiretap

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd ..

        cd epan

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cd crc

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

'crc.lib' is up-to-date

        cd ..

        cd crypt

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

'airpdcap.lib' is up-to-date

        cd ..

        cd ftypes

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

'ftypes.lib' is up-to-date

        cd ..

        cd dfilter

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

'dfilter.lib' is up-to-date

        cd ..

        cd wslua

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

'wslua.lib' is up-to-date

        cd ..

        cd dissectors

        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /

            -f Makefile.nmake

 

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

Copyright (C) Microsoft Corporation.  All rights reserved.

 

        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DHAVE_CONFIG_H /I. /I.. /I../.. /I

C:\wireshark-win32-libs\glib\include\glib-2.0  /IC:\wireshark-win32-libs\glib\li

b\glib-2.0\include  /IC:\wireshark-win32-libs\zlib123\include  /IC:\wireshark-wi

n32-libs\pcre-7.0\include /IC:\wireshark-win32-libs\gnutls-2.8.1-1\include /DNOC

RYPT /DIMPORT_LIGNUTLSDLL   /IC:\wireshark-win32-libs\kfw-3.2.2-ws1\include  /IC

:\wireshark-win32-libs\GeoIP-1.4.5ws\libGeoIP  /IC:\wireshark-win32-libs\WPdpack

\include -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRE

CATE /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=1500 /D_BIND_TO_CURRENT_CRT_VERSIO

N=1 /MP -Fd.\ -c register.c

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

 

register.c

register.c(7) : error C2059: syntax error : 'type'

register.c(7) : error C2059: syntax error : ')'

register.c(8) : error C2059: syntax error : 'type'

register.c(8) : error C2059: syntax error : ')'

register.c(9) : error C2059: syntax error : 'type'

register.c(9) : error C2059: syntax error : ')'

register.c(10) : error C2059: syntax error : 'type'

register.c(10) : error C2059: syntax error : ')'

register.c(11) : error C2059: syntax error : 'type'

register.c(11) : error C2059: syntax error : ')'

register.c(12) : error C2059: syntax error : 'type'

register.c(12) : error C2059: syntax error : ')'

register.c(13) : error C2059: syntax error : 'type'

register.c(13) : error C2059: syntax error : ')'

register.c(14) : error C2059: syntax error : 'type'

register.c(14) : error C2059: syntax error : ')'

register.c(15) : error C2059: syntax error : 'type'

register.c(15) : error C2059: syntax error : ')'

register.c(16) : error C2059: syntax error : 'type'

register.c(16) : error C2059: syntax error : ')'

register.c(17) : error C2059: syntax error : 'type'

register.c(17) : error C2059: syntax error : ')'

register.c(18) : error C2059: syntax error : 'type'

register.c(18) : error C2059: syntax error : ')'

register.c(19) : error C2059: syntax error : 'type'

register.c(19) : error C2059: syntax error : ')'

register.c(20) : error C2059: syntax error : 'type'

register.c(20) : error C2059: syntax error : ')'

register.c(21) : error C2059: syntax error : 'type'

register.c(21) : error C2059: syntax error : ')'

register.c(22) : error C2059: syntax error : 'type'

register.c(22) : error C2059: syntax error : ')'

register.c(23) : error C2059: syntax error : 'type'

register.c(23) : error C2059: syntax error : ')'

register.c(24) : error C2059: syntax error : 'type'

register.c(24) : error C2059: syntax error : ')'

register.c(25) : error C2059: syntax error : 'type'

register.c(25) : error C2059: syntax error : ')'

register.c(26) : error C2059: syntax error : 'type'

register.c(26) : error C2059: syntax error : ')'

register.c(27) : error C2059: syntax error : 'type'

register.c(27) : error C2059: syntax error : ')'

register.c(28) : error C2059: syntax error : 'type'

register.c(28) : error C2059: syntax error : ')'

register.c(29) : error C2059: syntax error : 'type'

register.c(29) : error C2059: syntax error : ')'

register.c(30) : error C2059: syntax error : 'type'

register.c(30) : error C2059: syntax error : ')'

register.c(31) : error C2059: syntax error : 'type'

register.c(31) : error C2059: syntax error : ')'

register.c(32) : error C2059: syntax error : 'type'

register.c(32) : error C2059: syntax error : ')'

register.c(33) : error C2059: syntax error : 'type'

register.c(33) : error C2059: syntax error : ')'

register.c(34) : error C2059: syntax error : 'type'

register.c(34) : error C2059: syntax error : ')'

register.c(35) : error C2059: syntax error : 'type'

register.c(35) : error C2059: syntax error : ')'

register.c(36) : error C2059: syntax error : 'type'

register.c(36) : error C2059: syntax error : ')'

register.c(37) : error C2059: syntax error : 'type'

register.c(37) : error C2059: syntax error : ')'

register.c(38) : error C2059: syntax error : 'type'

register.c(38) : error C2059: syntax error : ')'

register.c(39) : error C2059: syntax error : 'type'

register.c(39) : error C2059: syntax error : ')'

register.c(40) : error C2059: syntax error : 'type'

register.c(40) : error C2059: syntax error : ')'

register.c(41) : error C2059: syntax error : 'type'

register.c(41) : error C2059: syntax error : ')'

register.c(42) : error C2059: syntax error : 'type'

register.c(42) : error C2059: syntax error : ')'

register.c(43) : error C2059: syntax error : 'type'

register.c(43) : error C2059: syntax error : ')'

register.c(44) : error C2059: syntax error : 'type'

register.c(44) : error C2059: syntax error : ')'

register.c(45) : error C2059: syntax error : 'type'

register.c(45) : error C2059: syntax error : ')'

register.c(46) : error C2059: syntax error : 'type'

register.c(46) : error C2059: syntax error : ')'

register.c(47) : error C2059: syntax error : 'type'

register.c(47) : error C2059: syntax error : ')'

register.c(48) : error C2059: syntax error : 'type'

register.c(48) : error C2059: syntax error : ')'

register.c(49) : error C2059: syntax error : 'type'

register.c(49) : error C2059: syntax error : ')'

register.c(50) : error C2059: syntax error : 'type'

register.c(50) : error C2059: syntax error : ')'

register.c(51) : error C2059: syntax error : 'type'

register.c(51) : error C2059: syntax error : ')'

register.c(52) : error C2059: syntax error : 'type'

register.c(52) : error C2059: syntax error : ')'

register.c(53) : error C2059: syntax error : 'type'

register.c(53) : error C2059: syntax error : ')'

register.c(54) : error C2059: syntax error : 'type'

register.c(54) : error C2059: syntax error : ')'

register.c(55) : error C2059: syntax error : 'type'

register.c(55) : error C2059: syntax error : ')'

register.c(56) : error C2059: syntax error : 'type'

register.c(56) : error C2059: syntax error : ')'

register.c(57) : error C2059: syntax error : 'type'

register.c(57) : fatal error C1003: error count exceeds 100; stopping compilatio

n

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN

\cl.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN

\nmake.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN

\nmake.exe"' : return code '0x2'

Stop.

 

C:\wireshark>