|
|
|
|
||||||
| comp.mail.imap Discussion of IMAP-based mail systems. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
After I installed the platform sdk with all the necesary features, and
setup the environment variables, I tried doing "nmake -f Makefile.w2k", unfortunately I got the following: mkdir c-client copy src\c-client\*.* c-client src\c-client\auth_gss.c src\c-client\auth_log.c src\c-client\auth_md5.c src\c-client\auth_pla.c src\c-client\c-client.h src\c-client\env.h src\c-client\flstring.c src\c-client\flstring.h src\c-client\fs.h src\c-client\ftl.h src\c-client\imap4r1.c src\c-client\imap4r1.h src\c-client\mail.c src\c-client\mail.h src\c-client\misc.c src\c-client\misc.h src\c-client\netmsg.c src\c-client\netmsg.h src\c-client\newsrc.c src\c-client\newsrc.h src\c-client\nl.h src\c-client\nntp.c src\c-client\nntp.h src\c-client\pop3.c src\c-client\rfc822.c src\c-client\rfc822.h src\c-client\smanager.c src\c-client\smtp.c src\c-client\smtp.h src\c-client\sslio.h src\c-client\tcp.h src\c-client\utf8.c src\c-client\utf8.h 33 file(s) copied. copy src\charset\*.* c-client src\charset\big5.c src\charset\cns11643.c src\charset\gb_12345.c src\charset\gb_2312.c src\charset\ibm.c src\charset\iso_8859.c src\charset\jis_0208.c src\charset\jis_0212.c src\charset\koi8_r.c src\charset\koi8_u.c src\charset\ksc_5601.c src\charset\tis_620.c src\charset\viscii.c src\charset\windows.c 14 file(s) copied. copy src\osdep\nt\*.* c-client src\osdep\nt\drivers.bat src\osdep\nt\drivraux.bat src\osdep\nt\dummy.h src\osdep\nt\dummynt.c src\osdep\nt\env_nt.c src\osdep\nt\env_nt.h src\osdep\nt\fdstring.c src\osdep\nt\fdstring.h src\osdep\nt\fs_nt.c src\osdep\nt\ftl_nt.c src\osdep\nt\ip4_nt.c src\osdep\nt\ip6_nt.c src\osdep\nt\kerb_mit.c src\osdep\nt\kerb_w2k.c src\osdep\nt\mailfile.h src\osdep\nt\makefile.nt src\osdep\nt\makefile.ntk src\osdep\nt\makefile.old src\osdep\nt\makefile.w2k src\osdep\nt\mbxnt.c src\osdep\nt\mbxnt.h src\osdep\nt\mkautaux.bat src\osdep\nt\mkauths.bat src\osdep\nt\mtxnt.c src\osdep\nt\nl_nt.c src\osdep\nt\os_nt.c src\osdep\nt\os_nt.h src\osdep\nt\os_ntk.c src\osdep\nt\os_old.c src\osdep\nt\os_w2k.c src\osdep\nt\pmatch.c src\osdep\nt\pseudo.c src\osdep\nt\pseudo.h src\osdep\nt\setproto.bat src\osdep\nt\ssl_none.c src\osdep\nt\ssl_nt.c src\osdep\nt\ssl_old.c src\osdep\nt\ssl_w2k.c src\osdep\nt\tcp_nt.c src\osdep\nt\tcp_nt.h src\osdep\nt\tenexnt.c src\osdep\nt\unixnt.c src\osdep\nt\unixnt.h src\osdep\nt\write.c src\osdep\nt\yunchan.c src\osdep\nt\yunchan.h 46 file(s) copied. mkdir mtest copy src\mtest\*.* mtest src\mtest\Makefile src\mtest\makefile.nt src\mtest\makefile.ntk src\mtest\makefile.os2 src\mtest\makefile.w2k src\mtest\mtest.c src\mtest\mtest.def 7 file(s) copied. mkdir mailutil copy src\mailutil\*.* mailutil src\mailutil\mailutil.1 src\mailutil\mailutil.c src\mailutil\mailutil.def src\mailutil\Makefile src\mailutil\makefile.nt src\mailutil\makefile.ntk src\mailutil\makefile.os2 src\mailutil\makefile.w2k 8 file(s) copied. mkdir imapd copy src\imapd\*.* imapd src\imapd\imapd.8 src\imapd\imapd.c src\imapd\imapd.def src\imapd\Makefile src\imapd\makefile.nt src\imapd\makefile.ntk src\imapd\makefile.w2k 7 file(s) copied. mkdir ipopd copy src\ipopd\*.* ipopd src\ipopd\ipop2d.c src\ipopd\ipop2d.def src\ipopd\ipop3d.c src\ipopd\ipop3d.def src\ipopd\ipopd.8 src\ipopd\Makefile src\ipopd\makefile.nt src\ipopd\makefile.ntk src\ipopd\makefile.w2k 9 file(s) copied. cd c-client nmake /nologo /f makefile.w2k IP=4 copy os_nt.h osdep.h 1 file(s) copied. drivers imap nntp pop3 mbx mtx tenex unix dummy setproto mbx unix echo ssl_onceonlyinit (); >> linkage.c mkauths gss md5 pla log cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. mail.c mail.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. misc.c misc.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. fdstring.c fdstring.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. flstring.c flstring.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. netmsg.c netmsg.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. newsrc.c newsrc.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. rfc822.c rfc822.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. smanager.c smanager.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. utf8.c utf8.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. imap4r1.c imap4r1.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. nntp.c nntp.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. pop3.c pop3.c cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. smtp.c smtp.c copy ip4_nt.c ip_nt.c 1 file(s) copied. cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. os_w2k.c os_w2k.c kerb_w2k.c(241) : error C2065: 'MICROSOFT_KERBEROS_NAME_A' : undeclared identifier kerb_w2k.c(241) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int ' kerb_w2k.c(241) : warning C4024: 'AcquireCredentialsHandleA' : different types for formal and actual parameter 2 kerb_w2k.c(376) : error C2065: 'SEC_E_CERT_EXPIRED' : undeclared identifier kerb_w2k.c(376) : error C2051: case expression not constant kerb_w2k.c(506) : error C2065: 'SECBUFFER_PADDING' : undeclared identifier kerb_w2k.c(561) : error C2065: 'SECBUFFER_STREAM' : undeclared identifier auth_gss.c(236) : error C2051: case expression not constant C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(144) : error C2061: syntax error : identifier 'ALG_ID' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(145) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(163) : error C2061: syntax error : identifier 'PCERT_NAME_BLOB' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(165) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(171) : error C2061: syntax error : identifier 'ALG_ID' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(173) : error C2061: syntax error : identifier 'aiHash' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(173) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(175) : error C2061: syntax error : identifier 'aiExch' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(175) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(177) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(230) : error C2061: syntax error : identifier 'PCCERT_CONTEXT' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(231) : error C2061: syntax error : identifier 'hRootStore' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(231) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(237) : error C2143: syntax error : missing '{' before '*' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(245) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(258) : error C2061: syntax error : identifier 'HCRYPTPROV' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(260) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(556) : error C2061: syntax error : identifier 'HCRYPTPROV' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(558) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(590) : error C2061: syntax error : identifier 'HCRYPTPROV' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(592) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(608) : error C2061: syntax error : identifier 'ALG_ID' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(614) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(642) : error C2143: syntax error : missing ')' before '*' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(642) : error C2081: 'PX509Certificate' : name in formal parameter list illegal C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(642) : error C2143: syntax error : missing '{' before '*' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(643) : error C2059: syntax error : ')' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(649) : error C2146: syntax error : missing ')' before identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(649) : error C2061: syntax error : identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(649) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(650) : error C2059: syntax error : ')' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(673) : error C2143: syntax error : missing ')' before '*' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(673) : error C2081: 'PX509Certificate' : name in formal parameter list illegal C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(673) : error C2143: syntax error : missing '{' before '*' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(674) : error C2059: syntax error : ')' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(682) : error C2146: syntax error : missing ')' before identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(682) : error C2061: syntax error : identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(682) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\.\schannel.h(683) : error C2059: syntax error : ')' ssl_w2k.c(138) : error C2065: 'SCHANNEL_CRED' : undeclared identifier ssl_w2k.c(138) : error C2146: syntax error : missing ';' before identifier 'tlscred' ssl_w2k.c(138) : error C2065: 'tlscred' : undeclared identifier ssl_w2k.c(139) : error C2065: 'CERT_CONTEXT' : undeclared identifier ssl_w2k.c(139) : error C2065: 'cert' : undeclared identifier ssl_w2k.c(139) : warning C4552: '*' : operator has no effect; expected operator with side-effect ssl_w2k.c(140) : error C2065: 'CERT_CHAIN_PARA' : undeclared identifier ssl_w2k.c(140) : error C2146: syntax error : missing ';' before identifier 'chparam' ssl_w2k.c(140) : error C2065: 'chparam' : undeclared identifier ssl_w2k.c(141) : error C2065: 'CERT_CHAIN_CONTEXT' : undeclared identifier ssl_w2k.c(141) : error C2065: 'chain' : undeclared identifier ssl_w2k.c(141) : warning C4552: '*' : operator has no effect; expected operator with side-effect ssl_w2k.c(142) : error C2065: 'SSL_EXTRA_CERT_CHAIN_POLICY_PARA' : undeclared identifier ssl_w2k.c(142) : error C2146: syntax error : missing ';' before identifier 'policy' ssl_w2k.c(142) : error C2065: 'policy' : undeclared identifier ssl_w2k.c(143) : error C2065: 'CERT_CHAIN_POLICY_PARA' : undeclared identifier ssl_w2k.c(143) : error C2146: syntax error : missing ';' before identifier 'polparam' ssl_w2k.c(143) : error C2065: 'polparam' : undeclared identifier ssl_w2k.c(144) : error C2065: 'CERT_CHAIN_POLICY_STATUS' : undeclared identifier ssl_w2k.c(144) : error C2146: syntax error : missing ';' before identifier 'status' ssl_w2k.c(144) : error C2065: 'status' : undeclared identifier ssl_w2k.c(145) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(146) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(147) : error C2275: 'ULONG' : illegal use of this type as an expression C:\PROGRA~1\MICROS~4\VC98\INCLUDE\windef.h(43) : see declaration of 'ULONG' ssl_w2k.c(147) : error C2146: syntax error : missing ';' before identifier 'req' ssl_w2k.c(147) : error C2065: 'req' : undeclared identifier ssl_w2k.c(150) : error C2065: 'ISC_REQ_MANUAL_CRED_VALIDATION' : undeclared identifier ssl_w2k.c(151) : error C2275: 'LPSTR' : illegal use of this type as an expression C:\PROGRA~1\MICROS~4\VC98\INCLUDE\winnt.h(166) : see declaration of 'LPSTR' ssl_w2k.c(151) : error C2146: syntax error : missing ';' before identifier 'usage' ssl_w2k.c(151) : error C2065: 'usage' : undeclared identifier ssl_w2k.c(151) : error C2059: syntax error : ']' ssl_w2k.c(156) : error C2275: 'PWSTR' : illegal use of this type as an expression C:\PROGRA~1\MICROS~4\VC98\INCLUDE\winnt.h(154) : see declaration of 'PWSTR' ssl_w2k.c(156) : error C2146: syntax error : missing ';' before identifier 'whost' ssl_w2k.c(156) : error C2065: 'whost' : undeclared identifier ssl_w2k.c(157) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(158) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(159) : error C2275: 'sslcertificatequery_t' : illegal use of this type as an expression mail.h(1262) : see declaration of 'sslcertificatequery_t' ssl_w2k.c(159) : error C2146: syntax error : missing ';' before identifier 'scq' ssl_w2k.c(159) : error C2065: 'scq' : undeclared identifier ssl_w2k.c(160) : warning C4047: '=' : 'int ' differs in levels of indirection from 'long (__cdecl *)(char *,char *,char *)' ssl_w2k.c(161) : error C2275: 'sslfailure_t' : illegal use of this type as an expression mail.h(1263) : see declaration of 'sslfailure_t' ssl_w2k.c(161) : error C2146: syntax error : missing ';' before identifier 'sf' ssl_w2k.c(161) : error C2065: 'sf' : undeclared identifier ssl_w2k.c(161) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void (__cdecl *)(char *,char *,unsigned long )' ssl_w2k.c(162) : error C2275: 'SSLSTREAM' : illegal use of this type as an expression ssl_w2k.c(44) : see declaration of 'SSLSTREAM' ssl_w2k.c(162) : error C2065: 'stream' : undeclared identifier ssl_w2k.c(164) : error C2223: left of '->tcpstream' must point to struct/union ssl_w2k.c(167) : error C2224: left of '.dwVersion' must have struct/union type ssl_w2k.c(168) : error C2224: left of '.grbitEnabledProtocols' must have struct/union type ssl_w2k.c(173) : error C2223: left of '->cred' must point to struct/union ssl_w2k.c(173) : warning C4133: 'function' : incompatible types - from 'union _LARGE_INTEGER *' to 'struct _SecHandle *' ssl_w2k.c(173) : error C2198: 'AcquireCredentialsHandleA' : too few actual parameters ssl_w2k.c(174) : error C2065: 'reason' : undeclared identifier ssl_w2k.c(174) : warning C4047: '=' : 'int ' differs in levels of indirection from 'char [34]' ssl_w2k.c(177) : error C2065: 'size' : undeclared identifier ssl_w2k.c(177) : error C2065: 'buf' : undeclared identifier ssl_w2k.c(177) : warning C4047: '=' : 'void *' differs in levels of indirection from 'int ' ssl_w2k.c(188) : error C2223: left of '->cred' must point to struct/union ssl_w2k.c(188) : error C2223: left of '->context' must point to struct/union ssl_w2k.c(188) : warning C4133: 'function' : incompatible types - from 'char *' to 'struct _SecHandle *' ssl_w2k.c(188) : warning C4047: 'function' : 'struct _SecHandle *' differs in levels of indirection from 'int ' ssl_w2k.c(188) : warning C4024: 'InitializeSecurityContextA' : different types for formal and actual parameter 2 ssl_w2k.c(189) : warning C4047: 'function' : 'unsigned long ' differs in levels of indirection from 'struct _SecBufferDesc *' ssl_w2k.c(189) : warning C4024: 'InitializeSecurityContextA' : different types for formal and actual parameter 5 ssl_w2k.c(189) : error C2223: left of '->context' must point to struct/union ssl_w2k.c(189) : warning C4047: 'function' : 'unsigned long ' differs in levels of indirection from 'unsigned long *' ssl_w2k.c(189) : warning C4024: 'InitializeSecurityContextA' : different types for formal and actual parameter 8 ssl_w2k.c(189) : warning C4133: 'function' : incompatible types - from 'union _LARGE_INTEGER *' to 'struct _SecHandle *' ssl_w2k.c(189) : error C2198: 'InitializeSecurityContextA' : too few actual parameters ssl_w2k.c(192) : error C2223: left of '->tcpstream' must point to struct/union ssl_w2k.c(192) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'unsigned long ' ssl_w2k.c(192) : warning C4024: 'tcp_sout' : different types for formal and actual parameter 2 ssl_w2k.c(192) : error C2198: 'tcp_sout' : too few actual parameters ssl_w2k.c(192) : fatal error C1003: error count exceeds 100; stopping compilation |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
You, or some other person, made at least one change to the software
(changing IP=6 to IP=4). That change was completely unnecessary. What other changes did you make? Did you use Microsoft's scripts (which are installed in the Start menu as part of the Platform SDK installation), or did you set up the environment variables manually? I suspect that you set up the environment variables manually, and you got the order of the includes wrong. Specifically, I suspect that your build got an ancient security.h from Windows 98 instead of the Platform SDK version. You shouldn't need the Platform SDK if you use Visual C.NET 2003; it's just older versions (or C#) that you need it. -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Dear Mark,
Thank you for your and I truly appreciate you taking from your time to reply to my post. All your guesses were correct, I changed the IP, I set the environment variables manually. Tomorrow I will try to change the include orders. Thank you, Mark Crispin wrote: > You, or some other person, made at least one change to the software > (changing IP=6 to IP=4). That change was completely unnecessary. What > other changes did you make? > > Did you use Microsoft's scripts (which are installed in the Start menu as > part of the Platform SDK installation), or did you set up the environment > variables manually? > > I suspect that you set up the environment variables manually, and you got > the order of the includes wrong. Specifically, I suspect that your build > got an ancient security.h from Windows 98 instead of the Platform SDK > version. > > You shouldn't need the Platform SDK if you use Visual C.NET 2003; it's > just older versions (or C#) that you need it. > > -- Mark -- > > http://panda.com/mrc > Democracy is two wolves and a sheep deciding what to eat for lunch. > Liberty is a well-armed sheep contesting the vote. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On another computer, where I also have visual c++ 6.0 installed. I
installed the platform sdk and ran the windows xp build environment. I then changed directory to "c:\Program Files\Microsoft Visual Studio\VC98\Bin\" and ran vcvars32.bat. next I changed directory to c:\imap-2004g and executed "nmake -f Makefile.w2k". I will paste "set lib" and "set include" then paste the result of nmake. Any further suggestions? Thank you, set lib: LIB=C:\PROGRA~1\MICROS~2\VC98\LIB;C:\PROGRA~1\MICR OS~2\VC98\MFC\LIB;C:\Program Files\Microsoft Platform SDK\Lib;C:\Program Files\Microsoft Platform SDK\Lib\. set include INCLUDE=C:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;C:\P ROGRA~1\MICROS~2\VC98\INCLUDE;C:\PROGRA~1\MICROS~2 \VC98\MFC\INCLUDE;C:\Program Files\Microsoft Platform SDK\Include;C:\Program Files\Microsoft Platform SDK\Include\. the compilation result is: cd c-client nmake /nologo /f makefile.w2k IP=6 cl -c /MT /W3 /Ox /DWIN32 -nologo /I.. os_w2k.c os_w2k.c kerb_w2k.c(241) : error C2065: 'MICROSOFT_KERBEROS_NAME_A' : undeclared identifier kerb_w2k.c(241) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int ' kerb_w2k.c(241) : warning C4024: 'AcquireCredentialsHandleA' : different types for formal and actual parameter 2 kerb_w2k.c(376) : error C2065: 'SEC_E_CERT_EXPIRED' : undeclared identifier kerb_w2k.c(376) : error C2051: case expression not constant kerb_w2k.c(506) : error C2065: 'SECBUFFER_PADDING' : undeclared identifier kerb_w2k.c(561) : error C2065: 'SECBUFFER_STREAM' : undeclared identifier auth_gss.c(236) : error C2051: case expression not constant C:\Program Files\Microsoft Platform SDK\Include\schannel.h(144) : error C2061: syntax error : identifier 'ALG_ID' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(145) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(163) : error C2061: syntax error : identifier 'PCERT_NAME_BLOB' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(165) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(171) : error C2061: syntax error : identifier 'ALG_ID' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(173) : error C2061: syntax error : identifier 'aiHash' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(173) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(175) : error C2061: syntax error : identifier 'aiExch' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(175) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(177) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(230) : error C2061: syntax error : identifier 'PCCERT_CONTEXT' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(231) : error C2061: syntax error : identifier 'hRootStore' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(231) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(237) : error C2143: syntax error : missing '{' before '*' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(245) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(258) : error C2061: syntax error : identifier 'HCRYPTPROV' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(260) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(556) : error C2061: syntax error : identifier 'HCRYPTPROV' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(558) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(590) : error C2061: syntax error : identifier 'HCRYPTPROV' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(592) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(608) : error C2061: syntax error : identifier 'ALG_ID' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(614) : error C2059: syntax error : '}' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(642) : error C2143: syntax error : missing ')' before '*' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(642) : error C2081: 'PX509Certificate' : name in formal parameter list illegal C:\Program Files\Microsoft Platform SDK\Include\schannel.h(642) : error C2143: syntax error : missing '{' before '*' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(643) : error C2059: syntax error : ')' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(649) : error C2146: syntax error : missing ')' before identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(649) : error C2061: syntax error : identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(649) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(650) : error C2059: syntax error : ')' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(673) : error C2143: syntax error : missing ')' before '*' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(673) : error C2081: 'PX509Certificate' : name in formal parameter list illegal C:\Program Files\Microsoft Platform SDK\Include\schannel.h(673) : error C2143: syntax error : missing '{' before '*' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(674) : error C2059: syntax error : ')' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(682) : error C2146: syntax error : missing ')' before identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(682) : error C2061: syntax error : identifier 'pCertificate' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(682) : error C2059: syntax error : ';' C:\Program Files\Microsoft Platform SDK\Include\schannel.h(683) : error C2059: syntax error : ')' ssl_w2k.c(138) : error C2065: 'SCHANNEL_CRED' : undeclared identifier ssl_w2k.c(138) : error C2146: syntax error : missing ';' before identifier 'tlscred' ssl_w2k.c(138) : error C2065: 'tlscred' : undeclared identifier ssl_w2k.c(139) : error C2065: 'CERT_CONTEXT' : undeclared identifier ssl_w2k.c(139) : error C2065: 'cert' : undeclared identifier ssl_w2k.c(139) : warning C4552: '*' : operator has no effect; expected operator with side-effect ssl_w2k.c(140) : error C2065: 'CERT_CHAIN_PARA' : undeclared identifier ssl_w2k.c(140) : error C2146: syntax error : missing ';' before identifier 'chparam' ssl_w2k.c(140) : error C2065: 'chparam' : undeclared identifier ssl_w2k.c(141) : error C2065: 'CERT_CHAIN_CONTEXT' : undeclared identifier ssl_w2k.c(141) : error C2065: 'chain' : undeclared identifier ssl_w2k.c(141) : warning C4552: '*' : operator has no effect; expected operator with side-effect ssl_w2k.c(142) : error C2065: 'SSL_EXTRA_CERT_CHAIN_POLICY_PARA' : undeclared identifier ssl_w2k.c(142) : error C2146: syntax error : missing ';' before identifier 'policy' ssl_w2k.c(142) : error C2065: 'policy' : undeclared identifier ssl_w2k.c(143) : error C2065: 'CERT_CHAIN_POLICY_PARA' : undeclared identifier ssl_w2k.c(143) : error C2146: syntax error : missing ';' before identifier 'polparam' ssl_w2k.c(143) : error C2065: 'polparam' : undeclared identifier ssl_w2k.c(144) : error C2065: 'CERT_CHAIN_POLICY_STATUS' : undeclared identifier ssl_w2k.c(144) : error C2146: syntax error : missing ';' before identifier 'status' ssl_w2k.c(144) : error C2065: 'status' : undeclared identifier ssl_w2k.c(145) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(146) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(147) : error C2275: 'ULONG' : illegal use of this type as an expression C:\PROGRA~1\MICROS~2\VC98\INCLUDE\windef.h(43) : see declaration of 'ULONG' ssl_w2k.c(147) : error C2146: syntax error : missing ';' before identifier 'req' ssl_w2k.c(147) : error C2065: 'req' : undeclared identifier ssl_w2k.c(150) : error C2065: 'ISC_REQ_MANUAL_CRED_VALIDATION' : undeclared identifier ssl_w2k.c(151) : error C2275: 'LPSTR' : illegal use of this type as an expression C:\PROGRA~1\MICROS~2\VC98\INCLUDE\winnt.h(166) : see declaration of 'LPSTR' ssl_w2k.c(151) : error C2146: syntax error : missing ';' before identifier 'usage' ssl_w2k.c(151) : error C2065: 'usage' : undeclared identifier ssl_w2k.c(151) : error C2059: syntax error : ']' ssl_w2k.c(156) : error C2275: 'PWSTR' : illegal use of this type as an expression C:\PROGRA~1\MICROS~2\VC98\INCLUDE\winnt.h(154) : see declaration of 'PWSTR' ssl_w2k.c(156) : error C2146: syntax error : missing ';' before identifier 'whost' ssl_w2k.c(156) : error C2065: 'whost' : undeclared identifier ssl_w2k.c(157) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(158) : error C2143: syntax error : missing ';' before 'type' ssl_w2k.c(159) : error C2275: 'sslcertificatequery_t' : illegal use of this type as an expression mail.h(1262) : see declaration of 'sslcertificatequery_t' ssl_w2k.c(159) : error C2146: syntax error : missing ';' before identifier 'scq' ssl_w2k.c(159) : error C2065: 'scq' : undeclared identifier ssl_w2k.c(160) : warning C4047: '=' : 'int ' differs in levels of indirection from 'long (__cdecl *)(char *,char *,char *)' ssl_w2k.c(161) : error C2275: 'sslfailure_t' : illegal use of this type as an expression mail.h(1263) : see declaration of 'sslfailure_t' ssl_w2k.c(161) : error C2146: syntax error : missing ';' before identifier 'sf' ssl_w2k.c(161) : error C2065: 'sf' : undeclared identifier ssl_w2k.c(161) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void (__cdecl *)(char *,char *,unsigned long )' ssl_w2k.c(162) : error C2275: 'SSLSTREAM' : illegal use of this type as an expression ssl_w2k.c(44) : see declaration of 'SSLSTREAM' ssl_w2k.c(162) : error C2065: 'stream' : undeclared identifier ssl_w2k.c(164) : error C2223: left of '->tcpstream' must point to struct/union ssl_w2k.c(167) : error C2224: left of '.dwVersion' must have struct/union type ssl_w2k.c(168) : error C2224: left of '.grbitEnabledProtocols' must have struct/union type ssl_w2k.c(173) : error C2223: left of '->cred' must point to struct/union ssl_w2k.c(173) : warning C4133: 'function' : incompatible types - from 'union _LARGE_INTEGER *' to 'struct _SecHandle *' ssl_w2k.c(173) : error C2198: 'AcquireCredentialsHandleA' : too few actual parameters ssl_w2k.c(174) : error C2065: 'reason' : undeclared identifier ssl_w2k.c(174) : warning C4047: '=' : 'int ' differs in levels of indirection from 'char [34]' ssl_w2k.c(177) : error C2065: 'size' : undeclared identifier ssl_w2k.c(177) : error C2065: 'buf' : undeclared identifier ssl_w2k.c(177) : warning C4047: '=' : 'void *' differs in levels of indirection from 'int ' ssl_w2k.c(188) : error C2223: left of '->cred' must point to struct/union ssl_w2k.c(188) : error C2223: left of '->context' must point to struct/union ssl_w2k.c(188) : warning C4133: 'function' : incompatible types - from 'char *' to 'struct _SecHandle *' ssl_w2k.c(188) : warning C4047: 'function' : 'struct _SecHandle *' differs in levels of indirection from 'int ' ssl_w2k.c(188) : warning C4024: 'InitializeSecurityContextA' : different types for formal and actual parameter 2 ssl_w2k.c(189) : warning C4047: 'function' : 'unsigned long ' differs in levels of indirection from 'struct _SecBufferDesc *' ssl_w2k.c(189) : warning C4024: 'InitializeSecurityContextA' : different types for formal and actual parameter 5 ssl_w2k.c(189) : error C2223: left of '->context' must point to struct/union ssl_w2k.c(189) : warning C4047: 'function' : 'unsigned long ' differs in levels of indirection from 'unsigned long *' ssl_w2k.c(189) : warning C4024: 'InitializeSecurityContextA' : different types for formal and actual parameter 8 ssl_w2k.c(189) : warning C4133: 'function' : incompatible types - from 'union _LARGE_INTEGER *' to 'struct _SecHandle *' ssl_w2k.c(189) : error C2198: 'InitializeSecurityContextA' : too few actual parameters ssl_w2k.c(192) : error C2223: left of '->tcpstream' must point to struct/union ssl_w2k.c(192) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'unsigned long ' ssl_w2k.c(192) : warning C4024: 'tcp_sout' : different types for formal and actual parameter 2 ssl_w2k.c(192) : error C2198: 'tcp_sout' : too few actual parameters ssl_w2k.c(192) : fatal error C1003: error count exceeds 100; stopping compilation |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Sat, 8 Apr 2006, halayli@gmail.com wrote:
> On another computer, where I also have visual c++ 6.0 installed. I > installed the platform sdk and ran the windows xp build environment. I > then changed directory to "c:\Program Files\Microsoft Visual > Studio\VC98\Bin\" and ran vcvars32.bat. next I changed directory to > c:\imap-2004g and executed "nmake -f Makefile.w2k". I will paste "set > lib" and "set include" then paste the result of nmake. Any further > suggestions? Did it work when you used VCVARS32.BAT instead of doing it manually? -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Nope it didnt work, I didnt change any of the environment variable
manually. I started the windows xp build environment script from the start menu and changed directory to vc98\bin and executed VCVARS32.BAT then changed directory to imap-2004 and ran the nmake command as in the BUILD file. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On Sat, 8 Apr 2006, halayli@gmail.com wrote:
> Nope it didnt work, I didnt change any of the environment variable > manually. I started the windows xp build environment script from the > start menu and changed directory to vc98\bin and executed VCVARS32.BAT > then changed directory to imap-2004 and ran the nmake command as in the > BUILD file. VC98 is an old version of Microsoft C. I haven't used it in some years. The compile error messages indicate that you do not have the current SDK; or at least that the security.h file that was picked up by the compiler isn't the current version. My recommendation is to buy a modern copy of Visual C++ to replace your ancient VC98 installation. Then you wouldn't need to worry about the SDK install, since modern versions have the modern includes and libraries. The problem which you have is a C build environment setup problem on your Windows system, not an IMAP problem. To build the UW IMAP software on Windows, you have to have a modern C build environment, with the symbols for Kerberos and SSL. It is possible, with enough work, to figure out what you did wrong with your SDK installation in VC98 and get it to work. However, I can't do that work for you. I suspect that the labor cost to fix the old compiler would be quite a bit greater than that of buying the new compiler. -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote. |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
Finally it worked, thank you alot. I opened the build environment in
the platform sdk, and ran vcvars32.bat ... then I copied the paths that were added and set them in the environment variables of all the sessions (my computer -> properties ->advanced ...) however I made sure they are added after the platofrm sdk paths, because the problem was when I run vcvars32 they get added at the beginning. Then I opened a new build environment and compiled it successfully. Thanks again. |
|
![]() |
| Outils de la discussion | |
|
|