[OpenAFS-devel] silly question

Renato Arruda rla9216@osfmail.rit.edu
Thu, 4 Jul 2002 03:40:55 -0400


Hi,

I am sure this is not the correct place to ask this question, but i am no=
t=20
sure if the other mailing lists would be more helpful. I am trying to=20
implement a really simple program that will manage afs tickets, but i can=
't=20
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=20
complains with the the error message at the end. I looked at all the file=
s=20
involved and there doesn't seem to be any problems there at all. since i =
am=20
not extremely familiar with development using the openafs libraries, i wa=
s=20
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 uni=
on
/usr/include/rx/rxkad.h:98: warning: data definition has no type or stora=
ge=20
class
/usr/include/rx/rxkad.h:99: parse error before `destroyClient'
/usr/include/rx/rxkad.h:99: warning: data definition has no type or stora=
ge=20
class
/usr/include/rx/rxkad.h:100: parse error before `destroyUnused'
/usr/include/rx/rxkad.h:100: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:101: parse error before `destroyUnauth'
/usr/include/rx/rxkad.h:101: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:102: parse error before `destroyConn'
/usr/include/rx/rxkad.h:102: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:103: parse error before `expired'
/usr/include/rx/rxkad.h:103: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:104: parse error before `challengesSent'
/usr/include/rx/rxkad.h:104: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:105: parse error before `challenges'
/usr/include/rx/rxkad.h:105: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:106: parse error before `responses'
/usr/include/rx/rxkad.h:106: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:107: parse error before `preparePackets'
/usr/include/rx/rxkad.h:107: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:108: parse error before `checkPackets'
/usr/include/rx/rxkad.h:108: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:109: parse error before `bytesEncrypted'
/usr/include/rx/rxkad.h:109: warning: data definition has no type or stor=
age=20
class
/usr/include/rx/rxkad.h:110: parse error before `bytesDecrypted'
/usr/include/rx/rxkad.h:110: warning: data definition has no type or stor=
age=20
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 stor=
age=20
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 stor=
age=20
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 stor=
age=20
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 stor=
age=20
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 stor=
age=20
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 uni=
on
/usr/include/afs/auth.h:26: warning: data definition has no type or stora=
ge=20
class
/usr/include/afs/auth.h:31: parse error before `}'
[rarruda@res140b-205 org]$


--=20
Renato Arruda <rla9216@rit.edu> http://www.rarruda.org/