[OpenAFS-devel] silly question
Derek Atkins
warlord@MIT.EDU
05 Jul 2002 10:32:12 -0400
Try #include <afs/param.h> before <afs/kautils.h>
-derek
Renato Arruda <rla9216@rit.edu> writes:
> Hi,
>
> I am sure this is not the correct place to ask this question, but i am not
> sure if the other mailing lists would be more helpful. I am trying to
> implement a really simple program that will manage afs tickets, but i can't
> get to compile even a simple piece of code...
>
>
> #include <afs/kautils.h>
> main()
> {
> ka_Init( 0 );
> return 0;
> }
> I have the devel package instaled for redhat 7.3, but when compiling gcc
> complains with the the error message at the end. I looked at all the files
> involved and there doesn't seem to be any problems there at all. since i am
> not extremely familiar with development using the openafs libraries, i was
> just wondering if anyone could give me some insight or some pointers...
>
> Thanks,
> []'s
> Renato Arruda
>
> [rarruda@res140b-205 org]$ gcc temp.c -o temp
> In file included from /usr/include/afs/auth.h:19,
> from /usr/include/afs/kautils.h:30,
> from temp.c:4:
> /usr/include/rx/rxkad.h:97: parse error before `afs_uint32'
> /usr/include/rx/rxkad.h:97: warning: no semicolon at end of struct or union
> /usr/include/rx/rxkad.h:98: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:99: parse error before `destroyClient'
> /usr/include/rx/rxkad.h:99: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:100: parse error before `destroyUnused'
> /usr/include/rx/rxkad.h:100: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:101: parse error before `destroyUnauth'
> /usr/include/rx/rxkad.h:101: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:102: parse error before `destroyConn'
> /usr/include/rx/rxkad.h:102: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:103: parse error before `expired'
> /usr/include/rx/rxkad.h:103: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:104: parse error before `challengesSent'
> /usr/include/rx/rxkad.h:104: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:105: parse error before `challenges'
> /usr/include/rx/rxkad.h:105: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:106: parse error before `responses'
> /usr/include/rx/rxkad.h:106: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:107: parse error before `preparePackets'
> /usr/include/rx/rxkad.h:107: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:108: parse error before `checkPackets'
> /usr/include/rx/rxkad.h:108: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:109: parse error before `bytesEncrypted'
> /usr/include/rx/rxkad.h:109: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:110: parse error before `bytesDecrypted'
> /usr/include/rx/rxkad.h:110: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:111: parse error before `fc_encrypts'
> /usr/include/rx/rxkad.h:111: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:112: parse error before `fc_key_scheds'
> /usr/include/rx/rxkad.h:112: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:113: parse error before `des_encrypts'
> /usr/include/rx/rxkad.h:113: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:114: parse error before `des_key_scheds'
> /usr/include/rx/rxkad.h:114: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:115: parse error before `des_randoms'
> /usr/include/rx/rxkad.h:115: warning: data definition has no type or storage
> class
> /usr/include/rx/rxkad.h:117: parse error before `}'
> In file included from /usr/include/afs/kautils.h:30,
> from temp.c:4:
> /usr/include/afs/auth.h:25: parse error before `afs_int32'
> /usr/include/afs/auth.h:25: warning: no semicolon at end of struct or union
> /usr/include/afs/auth.h:26: warning: data definition has no type or storage
> class
> /usr/include/afs/auth.h:31: parse error before `}'
> [rarruda@res140b-205 org]$
>
>
> --
> Renato Arruda <rla9216@rit.edu> http://www.rarruda.org/
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available