Wireshark-dev: [Wireshark-dev] wireshark-0.99.7 compiling error, The file contains a character

From: "Juntao Lv" <lvjuntao2008@xxxxxxxxx>
Date: Wed, 23 Jan 2008 23:10:13 +0800
hi
   I download the wireshark-0.99.7.tar.gz to compile on winxp .There are some errors .
can any people give me some suggestions?


compiling error below:
F:\wireshark\wireshark-0.99.7\wireshark-0.99.7>d:

D:\>cd d:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\

D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2>SetEnv.Cmd

Attempting to detect a Microsoft Visual Studio installation


Targeting Windows XP 32 DEBUG


D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2>d:

D:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2>cd d:\Program
 Files\Microsoft Visual Studio 8\VC\bin\

D:\Program Files\Microsoft Visual Studio 8\VC\bin>vcvars32.bat

D:\Program Files\Microsoft Visual Studio 8\VC\bin>"D:\Program Files\Microsoft Vi
sual Studio 8\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.

D:\Program Files\Microsoft Visual Studio 8\VC\bin>f:

F:\wireshark\wireshark-0.99.7\wireshark-0.99.7>cd F:\wireshark\wireshark-0.99.7\
wireshark-0.99.7

F:\wireshark\wireshark-0.99.7\wireshark-0.99.7>nmake -f Makefile.nmake verify_to
ols

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

Checking for required applications:
        cl: /cygdrive/d/Program Files/Microsoft Visual Studio 8/VC/BIN/cl
        link: /cygdrive/d/Program Files/Microsoft Visual Studio 8/VC/BIN/link
        nmake: /cygdrive/d/Program Files/Microsoft Visual Studio 8/VC/BIN/nmake

        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:/python24/python.exe: /cygdrive/c/python24/python.exe
        sed: /usr/bin/sed
        unzip: /usr/bin/unzip
        wget: /usr/bin/wget

F:\wireshark\wireshark-0.99.7\wireshark-0.99.7>nmake -f Makefile.nmake all

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd tools
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd lemon
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..
        cd ..
        cd image
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..
        cd codecs
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

'codecs.lib' is up-to-date
        cd ..
        cd wiretap
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..
        cd epan
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd crypt
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

'airpdcap.lib' is up-to-date
        cd ..
        cd ftypes
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

'ftypes.lib' is up-to-date
        cd ..
        cd dfilter
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

'dfilter.lib' is up-to-date
        cd ..
        cd wslua
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

'wslua.lib' is up-to-date
        cd ..
        cd dissectors
        "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
          -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
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-6.4\include /IC:\wireshark-win32-libs\gnutls-1.6.1-1\include /DNOC
RYPT   /IC:\wireshark-win32-libs\kfw-2.5\inc   /IC:\wireshark-win32-libs\WPdpack
\include -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRE
CATE -Fd.\ -c packet-bacapp.c packet-cisco-erspan.c packet-e212.c packet-per.c p
acket-ansi_map.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

packet-bacapp.c
f:\wireshark\wireshark-0.99.7\wireshark-0.99.7\epan\dissectors\packet-bacapp.h(1
045) : error C2220: warning treated as error - no 'object' file generated
f:\wireshark\wireshark-0.99.7\wireshark-0.99.7\epan\dissectors\packet-bacapp.h(1
045) : warning C4819: The file contains a character that cannot be represented i
n the current code page (936). Save the file in Unicode format to prevent data l
oss
packet-cisco-erspan.c
packet-cisco-erspan.c : error C2220: warning treated as error - no 'object' file
 generated
packet-cisco-erspan.c : warning C4819: The file contains a character that cannot
 be represented in the current code page (936). Save the file in Unicode format
to prevent data loss
packet-e212.c
packet-e212.c : error C2220: warning treated as error - no 'object' file generat
ed
packet-e212.c : warning C4819: The file contains a character that cannot be repr
esented in the current code page (936). Save the file in Unicode format to preve
nt data loss
packet-per.c
packet-per.c(948) : error C2220: warning treated as error - no 'object' file gen
erated
packet-per.c(948) : warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to p
revent data loss
packet-ansi_map.c
packet-ansi_map-template.c(1718) : error C2220: warning treated as error - no 'o
bject' file generated
packet-ansi_map-template.c(1718) : warning C4819: The file contains a character
that cannot be represented in the current code page (936). Save the file in Unic
ode format to prevent data loss
Generating Code...
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.

F:\wireshark\wireshark-0.99.7\wireshark-0.99.7>