You need
#include <afs/stds.h>
to get typedef of u_int32. 

I got the same errors you did without it.


Jeff Blaine wrote:
> 
> Any ideas anyone?  I have diffed my local include files with the ones
> in Transarc's cell and they don't differ (they're not corrupted locally).
> 
> /*
> ** Begin afstest.c
> */
> #include <afs/kautils.h>
> 
> int main(void) {
>     return(1);
> }
> /*
> ** End afstest.c
> */
> 
> ============================================================================
> 
> [ cc is Sun SPARCWorks Compiler 4.2 ]
> 
> % cc -o afstest -I/usr/afsws/include afstest.c
> "/usr/afsws/include/rx/rxkad.h", line 103: syntax error before or at: u_int32
> "/usr/afsws/include/rx/rxkad.h", line 103: cannot recover from previous errors
> cc: acomp failed for afstest.c
> 
> [ now GNU CC 2.95.1 ]
> 
> % gcc -o afstest -I/usr/afsws/include afstest.c
> In file included from /usr/afsws/include/afs/auth.h:19,
>                  from /usr/afsws/include/afs/kautils.h:30,
>                  from afstest.c:1:
> /usr/afsws/include/rx/rxkad.h:103: parse error before `u_int32'
> /usr/afsws/include/rx/rxkad.h:103: warning: no semicolon at end of struct or union
> /usr/afsws/include/rx/rxkad.h:104: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:105: parse error before `destroyClient'
> /usr/afsws/include/rx/rxkad.h:105: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:106: parse error before `destroyUnused'
> /usr/afsws/include/rx/rxkad.h:106: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:107: parse error before `destroyUnauth'
> /usr/afsws/include/rx/rxkad.h:107: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:108: parse error before `destroyConn'
> /usr/afsws/include/rx/rxkad.h:108: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:109: parse error before `expired'
> /usr/afsws/include/rx/rxkad.h:109: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:110: parse error before `challengesSent'
> /usr/afsws/include/rx/rxkad.h:110: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:111: parse error before `challenges'
> /usr/afsws/include/rx/rxkad.h:111: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:112: parse error before `responses'
> /usr/afsws/include/rx/rxkad.h:112: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:113: parse error before `preparePackets'
> /usr/afsws/include/rx/rxkad.h:113: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:114: parse error before `checkPackets'
> /usr/afsws/include/rx/rxkad.h:114: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:115: parse error before `bytesEncrypted'
> /usr/afsws/include/rx/rxkad.h:115: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:116: parse error before `bytesDecrypted'
> /usr/afsws/include/rx/rxkad.h:116: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:117: parse error before `fc_encrypts'
> /usr/afsws/include/rx/rxkad.h:117: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:118: parse error before `fc_key_scheds'
> /usr/afsws/include/rx/rxkad.h:118: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:119: parse error before `des_encrypts'
> /usr/afsws/include/rx/rxkad.h:119: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:120: parse error before `des_key_scheds'
> /usr/afsws/include/rx/rxkad.h:120: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:121: parse error before `des_randoms'
> /usr/afsws/include/rx/rxkad.h:121: warning: data definition has no type or storage 
>class
> /usr/afsws/include/rx/rxkad.h:123: parse error before `}'
> In file included from /usr/afsws/include/afs/kautils.h:30,
>                  from afstest.c:1:
> /usr/afsws/include/afs/auth.h:25: parse error before `int32'
> /usr/afsws/include/afs/auth.h:25: warning: no semicolon at end of struct or union
> /usr/afsws/include/afs/auth.h:26: warning: data definition has no type or storage 
>class
> /usr/afsws/include/afs/auth.h:31: parse error before `}'

-- 

 Douglas E. Engert  <[EMAIL PROTECTED]>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439 
 (630) 252-5444

Reply via email to