Wireshark-dev: Re: [Wireshark-dev] build wireshark on Windows xp with VC 6.0 failed
From: "yiren" <shcniat2008@xxxxxxxxxxx>
Date: Mon, 23 Nov 2009 19:54:09 +0800
Hi, Kovarththanan Rajaratnam

I have already made my building environment work, and I have identified the problem.
for the wireshark release 1.2.3, the compiler on windows xp must be VC9.0(VS2008)
So, previously I just use the vc6.0 compiler and got the problems described below:

The error message is same as the mailinglist: 
"packet-kerberos.c
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\win-mac.h(92) : error C2054:
expected '(' to follow '_W64'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\win-mac.h(92) : error C2085:
'ssize_t' : not in formal parameter lis
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(104) : error C2085: '_beginthread'
: not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(105) : error C2085: '_endthread' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(107) : error C2085:
'_beginthreadex' : not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(108) : error C2085: '_endthreadex'
: not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(112) : error C2082: redefinition of
formal parameter 'abort'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(113) : error C2082: redefinition of
formal parameter 'exit'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(114) : error C2082: redefinition of
formal parameter '_exit'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(120) : error C2085: '_cexit' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(121) : error C2085: '_c_exit' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(122) : error C2085: '_getpid' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(126) : error C2085: '_cwait' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(127) : error C2085: '_execl' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(128) : error C2085: '_execle' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(129) : error C2085: '_execlp' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(130) : error C2085: '_execlpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(131) : error C2085: '_execv' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(132) : error C2085: '_execve' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(133) : error C2085: '_execvp' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(134) : error C2085: '_execvpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(135) : error C2085: '_spawnl' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(136) : error C2085: '_spawnle' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(137) : error C2085: '_spawnlp' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(138) : error C2085: '_spawnlpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(139) : error C2085: '_spawnv' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(141) : error C2085: '_spawnve' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(142) : error C2085: '_spawnvp' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(144) : error C2085: '_spawnvpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(145) : error C2082: redefinition of
formal parameter 'system'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(156) : error C2085: '_wexecl' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(157) : error C2085: '_wexecle' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(158) : error C2085: '_wexeclp' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(159) : error C2085: '_wexeclpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(160) : error C2085: '_wexecv' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(161) : error C2085: '_wexecve' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(162) : error C2085: '_wexecvp' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(163) : error C2085: '_wexecvpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(164) : error C2085: '_wspawnl' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(165) : error C2085: '_wspawnle' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(166) : error C2085: '_wspawnlp' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(167) : error C2085: '_wspawnlpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(168) : error C2085: '_wspawnv' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(170) : error C2085: '_wspawnve' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(171) : error C2085: '_wspawnvp' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(173) : error C2085: '_wspawnvpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(174) : error C2082: redefinition of
formal parameter '_wsystem'
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(184) : error C2085: '_loaddll' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(185) : error C2085: '_unloaddll' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(186) : error C2085:
'_getdllprocaddr' : not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(240) : error C2085: 'cwait' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(241) : error C2085: 'execl' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(242) : error C2085: 'execle' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(243) : error C2085: 'execlp' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(244) : error C2085: 'execlpe' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(245) : error C2085: 'execv' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(246) : error C2085: 'execve' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(247) : error C2085: 'execvp' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(248) : error C2085: 'execvpe' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(249) : error C2085: 'spawnl' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(250) : error C2085: 'spawnle' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(251) : error C2085: 'spawnlp' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(252) : error C2085: 'spawnlpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(253) : error C2085: 'spawnv' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(255) : error C2085: 'spawnve' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(256) : error C2085: 'spawnvp' : not
in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(258) : error C2085: 'spawnvpe' :
not in formal parameter list
C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\process.h(262) : error C2085: 'getpid' : not
in formal parameter list
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\win-mac.h(203) : error C2085:
'get_lib_instance' : not in formal par
list
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(127) : error C2085:
'krb5_octet' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(133) : error C2085:
'krb5_int16' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(134) : error C2085:
'krb5_ui_2' : not in formal paramete

C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(140) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(141) : error C2085:
'krb5_ui_4' : not in formal paramete

C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(184) : error C2085:
'krb5_boolean' : not in formal param
ist
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(185) : error C2085:
'krb5_msgtype' : not in formal param
ist
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(186) : error C2085:
'krb5_kvno' : not in formal paramete

C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(188) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(188) : error C2146:
syntax error : missing ',' before id
er 'krb5_addrtype'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(189) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(189) : error C2146:
syntax error : missing ',' before id
er 'krb5_enctype'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(190) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(190) : error C2146:
syntax error : missing ',' before id
er 'krb5_cksumtype'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(191) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(191) : error C2146:
syntax error : missing ',' before id
er 'krb5_authdatatype'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(192) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(192) : error C2146:
syntax error : missing ',' before id
er 'krb5_keyusage'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(194) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(194) : error C2146:
syntax error : missing ',' before id
er 'krb5_preauthtype'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(195) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(195) : error C2146:
syntax error : missing ',' before id
er 'krb5_flags'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(196) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(196) : error C2146:
syntax error : missing ',' before id
er 'krb5_timestamp'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(197) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(197) : error C2146:
syntax error : missing ',' before id
er 'krb5_error_code'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(198) : error C2085:
'krb5_int32' : not in formal paramet
t
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(198) : error C2146:
syntax error : missing ',' before id
er 'krb5_deltat'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(200) : error C2085:
'krb5_error_code' : not in formal pa
r list
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(200) : error C2146:
syntax error : missing ',' before id
er 'krb5_magic'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(203) : error C2061:
syntax error : identifier 'krb5_magi
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(206) : error C2059:
syntax error : '}'
C:\wireshark-win32-libs\kfw-3.2.2-ws1\include\krb5/krb5.h(206) : fatal error
C1003: error count exceeds 100; stopp
mpilation
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.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MIAF9D~1\VC98\BIN\NMAKE.EXE' : return
code '0x2'
Stop.
"


Thanks very much!


------------------
Yiren
 
 
 
 
------------------ Original ------------------
Date:  Sat, Nov 14, 2009 04:29 PM
To:  "yiren"<shcniat2008@xxxxxxxxxxx>; "wireshark-dev"<wireshark-dev@xxxxxxxxxxxxx>;
Subject:  Re: [Wireshark-dev] build wireshark on Windows xp with VC 6.0 failed
 
Hey,

yiren wrote:
>
> Hi, Kovarththanan Rajaratnam
>
>       I have installed the SDK, and the problem still occured. So,
> what can I do for this? does anything go wrong or this header gets
> some problem.
>
Can you post the exact error message?

Thanks.

--
Best regards,
Kovarththanan Rajaratnam