Issue with GCC 6.3.0 and krb5 1.15.1 on AIX: redefinition of a GCC structure

REIX, Tony tony.reix at
Wed Aug 23 09:22:43 EDT 2017


The "token" structure defined in:
conflicts with a structure generated by GCC 6.3.0 on AIX which appears in:

I've attached a very simple patch that suppress this issue on AIX (and maybe on other OS).

-static const struct token {
+static const struct krb5_token {



Error message on AIX:

gcc -maix64 ...  -c expand_path.c
expand_path.c:354:21: error: redefinition of 'struct token'
 static const struct token {
In file included from /usr/include/net/if.h:921:0,
                from ../../../include/port-sockets.h:169,
                from ../../../include/k5-int.h:164,
                from expand_path.c:33:
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed/net/if_arp.h:108:11: note: originally defined here
 struct   token  {


Tony Reix

Bull - ATOS
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France<>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: krb5-1.15.1-token.patch
Type: text/x-patch
Size: 300 bytes
Desc: krb5-1.15.1-token.patch
Url :

More information about the krbdev mailing list