[krbdev.mit.edu #1675] Windows build needs Feb 2003 Platform SDK

via RT rt-comment at krbdev.mit.edu
Tue Jul 22 18:08:14 EDT 2003


socklen_t was introduced into the Platform SDK with the August 2001
release of the Platform SDK.  

There is an alternate possible cause of the reported compilation errors:

  The compilation environment was incorrectly configured.  It is required
  that the Platform SDK environment take precedence over the Visual C++ 
  6.0 environment.

To properly construct the build environment the following commands should 
be issued to enable construction of Krb5 for all 32-bit Windows
operating systems:

  c:\program files\microsoft visual studio\vc98\bin\vcvars32.bat
  c:\program files\microsoft sdk\setenv.bat /2000 /RETAIL
  SET APPVER=4.0
  SET TARGETOS=BOTH
  SET _WIN32_IE=0x0400

replace /RETAIL with /DEBUG for debug builds.

NOTE: krb5 when built standalone uses a file based credentials cache. 
KfW should be used to construct the full set of executables and
libraries including the in-memory credential cache.

I believe the applied change should be removed.

Jeffrey Altman



[rmdyer at uncc.edu - Thu Jul 17 19:08:34 2003]:

> Hi,
> 
> I just downloaded version 5-1.3.  When trying to compile the sources
> under
> Windows XP I get the following compile errors...
> 
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> 
> 	cl    -I.\..\..\..\include -I.\..\..\..\include\krb5
> -DKRB5_PRIVATE=1
> -DWIN32_LEAN_AND_MEAN -DKRB5_DEPRECATED=1 /Od /ZI /MDd -nologo /W3
> -Fdobj\i386\dbg\\ -FD  -Foobj\i386\dbg\\ -c ...
> crc32.c
> c:\temp\krb5-1.3\src\include\k5-int.h(509) : error C2143: syntax error
> :
> missing ')' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(509) : error C2081: 'socklen_t'
> :
> name in formal parameter list illegal
> c:\temp\krb5-1.3\src\include\k5-int.h(509) : error C2143: syntax error
> :
> missing '{' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(509) : error C2059: syntax error
> : ')'
> c:\temp\krb5-1.3\src\include\k5-int.h(509) : error C2059: syntax error
> : ';'
> c:\temp\krb5-1.3\src\include\k5-int.h(1674) : error C2143: syntax
> error :
> missing ')' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1674) : error C2081: 'socklen_t'
> :
> name in formal parameter list illegal
> c:\temp\krb5-1.3\src\include\k5-int.h(1674) : error C2143: syntax
> error :
> missing ';' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1674) : error C2059: syntax
> error : '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1674) : error C2059: syntax
> error : ')'
> c:\temp\krb5-1.3\src\include\k5-int.h(1691) : error C2059: syntax
> error : '}'
> c:\temp\krb5-1.3\src\include\k5-int.h(1698) : error C2143: syntax
> error :
> missing ')' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1698) : error C2143: syntax
> error :
> missing '{' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1698) : error C2059: syntax
> error : ','
> c:\temp\krb5-1.3\src\include\k5-int.h(1698) : error C2059: syntax
> error : ')'
> c:\temp\krb5-1.3\src\include\k5-int.h(1721) : error C2143: syntax
> error :
> missing ')' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1721) : error C2081: 'socklen_t'
> :
> name in formal parameter list illegal
> c:\temp\krb5-1.3\src\include\k5-int.h(1721) : error C2143: syntax
> error :
> missing '{' before '*'
> c:\temp\krb5-1.3\src\include\k5-int.h(1721) : error C2059: syntax
> error : ')'
> c:\temp\krb5-1.3\src\include\k5-int.h(1721) : error C2059: syntax
> error : ';'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
> Studio\VC98\bin\NMAKE.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
> Studio\VC98\bin\NMAKE.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
> Studio\VC98\bin\NMAKE.EXE"' : return code '0x2'
> Stop.
> 
> 
> Help is appreciated.
> 
> Thanks,
> 
> Rodney
> 
> Rodney M. Dyer
> Windows Systems Programmer
> Mosaic Computing Group
> William States Lee College of Engineering
> University of North Carolina at Charlotte
> Email: rmdyer at uncc.edu
> Web: http://www.coe.uncc.edu/~rmdyer
> Phone (704)687-3518
> Help Desk Line (704)687-3150
> FAX (704)687-2352
> Office  267 Smith Building
> 




More information about the krb5-bugs mailing list