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

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


Hi

The "token" structure defined in:
    src/lib/krb5/os/expand_path.c
conflicts with a structure generated by GCC 6.3.0 on AIX which appears in:
    /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed/net/if_arp.h

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 {


Regards,

Tony

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  {
          ^[

Cordialement,

Tony Reix

Bull - ATOS
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France
www.atos.net<http://www.atos.net/>
-------------- 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 : http://mailman.mit.edu/pipermail/krbdev/attachments/20170823/ae0e89da/attachment.bin


More information about the krbdev mailing list