[OpenAFS] Windows client source build problem...

Derrick J Brashear shadow@dementia.org
Sun, 10 Feb 2002 13:15:21 -0500 (EST)


On Sat, 9 Feb 2002, Rodney M Dyer wrote:


> There appears to be a build problem with the latest version of OpenAFS 
> client 1.2.3 for NT/Windows.  In both the "checked" and "free" 
> configurations the following error is returned after some compile time has 
> elapsed...
> 
> cm_scache.c
> cm_scache.c(809) : error C2039: 'ResidencyMask' : is not a member of 
> 'AFSFetchStatus'
>          c:\temp\OpenAF~1.3\DEST\include\afs/afsint.h(341) : see 
> declaration of 'AFSFetchStatus'
> cm_scache.c(967) : warning C4047: 'return' : 'int ' differs in levels of 
> indirection from 'void *'
> 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.

Apply this patch to src/WINNT/afsd/cm_scache.c
--- cm_scache.c 2002/01/08 20:44:37     1.5
+++ cm_scache.c 2002/02/10 18:15:19
@@ -806,7 +806,7 @@
                statusp->UnixModeBits = 0x1ff;
                statusp->ParentVnode = 0x1;
                statusp->ParentUnique = 0x1;
-               statusp->ResidencyMask = 0;
+               statusp->SegSize = 0;
                statusp->ClientModTime = 0x3b49f6e2;
                statusp->ServerModTime = 0x3b49f6e2;
                statusp->Group = 0;