How to include Header File <kadm5/admin.h> for KADM5 API

Gerd Pokorra gz016 at appl2.hrz.uni-siegen.de
Fri Nov 14 07:39:21 EST 2003


     Hello,
I want to use the KDAM5 API. I want to use the Header File "kadm5/admin.h"
how it is written in the documention "KADM5 API Funktional Specification".
But if I include if in my source that way

   #define USE_KADM5_API_VERSION 2
   #include <kadm5/admin.h>

I get the following mistakes during compiling

> cc simple.c -I/home/gz016/krb5-1.3.1/src/include -I/home/gz016/krb5-1.3.1/src/include/krb5 -o simple.o
In file included from /home/gz016/krb5-1.3.1/src/include/k5-int.h:125,
                 from /home/gz016/krb5-1.3.1/src/include/kadm5/admin.h:43,
                 from simple.c:2:
/home/gz016/krb5-1.3.1/src/include/krb5/autoconf.h:167:1: warning: "KRB5_DEPRECATED" redefined
In file included from /home/gz016/krb5-1.3.1/src/include/kadm5/admin.h:42,
                 from simple.c:2:
/home/gz016/krb5-1.3.1/src/include/krb5.h:65:1: warning: this is the location of the previous definition
In file included from /home/gz016/krb5-1.3.1/src/include/k5-int.h:125,
                 from /home/gz016/krb5-1.3.1/src/include/kadm5/admin.h:43,
                 from simple.c:2:
/home/gz016/krb5-1.3.1/src/include/krb5/autoconf.h:182:1: warning: "KRB5_PRIVATE" redefined
In file included from /home/gz016/krb5-1.3.1/src/include/kadm5/admin.h:42,
                 from simple.c:2:
/home/gz016/krb5-1.3.1/src/include/krb5.h:69:1: warning: this is the location of the previous definition
In file included from /home/gz016/krb5-1.3.1/src/include/kadm5/admin.h:43,
                 from simple.c:2:
/home/gz016/krb5-1.3.1/src/include/k5-int.h:1783: parse error before "krb5_donot_replay"


More information about the krbdev mailing list