Discussion:
Issue with GCC 6.3.0 and krb5 1.15.1 on AIX: redefinition of a GCC structure
REIX, Tony
2017-08-23 13:22:43 UTC
Permalink
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/>

Loading...