[19621] in Kerberos_V5_Development
Issue with GCC 6.3.0 and krb5 1.15.1 on AIX: redefinition of a GCC
daemon@ATHENA.MIT.EDU (REIX, Tony)
Wed Aug 23 09:22:56 2017
From: "REIX, Tony" <tony.reix@atos.net>
To: "krbdev@mit.edu" <krbdev@mit.edu>
Date: Wed, 23 Aug 2017 13:22:43 +0000
Message-ID: <B37989F2852398498001550C29155BE5178BBACB@FRCRPVV9EX3MSX.ww931.my-it-solutions.net>
Content-Language: fr-FR
Content-Type: multipart/mixed;
boundary="_004_B37989F2852398498001550C29155BE5178BBACBFRCRPVV9EX3MSXw_"
MIME-Version: 1.0
Errors-To: krbdev-bounces@mit.edu
--_004_B37989F2852398498001550C29155BE5178BBACBFRCRPVV9EX3MSXw_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 mayb=
e 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 =C9chirolles - France
www.atos.net<http://www.atos.net/>
--_004_B37989F2852398498001550C29155BE5178BBACBFRCRPVV9EX3MSXw_
Content-Type: text/x-patch; name="krb5-1.15.1-token.patch"
Content-Description: krb5-1.15.1-token.patch
Content-Disposition: attachment; filename="krb5-1.15.1-token.patch"; size=300;
creation-date="Wed, 23 Aug 2017 13:21:23 GMT";
modification-date="Wed, 23 Aug 2017 13:21:23 GMT"
Content-Transfer-Encoding: base64
LS0tIC4vc3JjL2xpYi9rcmI1L29zL2V4cGFuZF9wYXRoLmMuT1JJR0lOCTIwMTctMDgtMjMgMTQ6
NTg6MjcgKzAyMDAKKysrIC4vc3JjL2xpYi9rcmI1L29zL2V4cGFuZF9wYXRoLmMJMjAxNy0wOC0y
MyAxNDo1OTowMCArMDIwMApAQCAtMzUxLDcgKzM1MSw3IEBACiAgICAgcmV0dXJuIDA7CiB9CiAK
LXN0YXRpYyBjb25zdCBzdHJ1Y3QgdG9rZW4geworc3RhdGljIGNvbnN0IHN0cnVjdCBrcmI1X3Rv
a2VuIHsKICAgICBjb25zdCBjaGFyICp0b2s7CiAgICAgUFRZUEUgcGFyYW07CiAgICAgY29uc3Qg
Y2hhciAqcG9zdGZpeDsK
--_004_B37989F2852398498001550C29155BE5178BBACBFRCRPVV9EX3MSXw_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev
--_004_B37989F2852398498001550C29155BE5178BBACBFRCRPVV9EX3MSXw_--