[prev in list] [next in list] [prev in thread] [next in thread]
List: krbdev
Subject: Issue with GCC 6.3.0 and krb5 1.15.1 on AIX: redefinition of a GCC structure
From: "REIX, Tony" <tony.reix () atos ! net>
Date: 2017-08-23 13:22:43
Message-ID: B37989F2852398498001550C29155BE5178BBACB () FRCRPVV9EX3MSX ! ww931 ! my-it-solutions ! net
[Download RAW message or body]
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/>
["krb5-1.15.1-token.patch" (text/x-patch)]
--- ./src/lib/krb5/os/expand_path.c.ORIGIN 2017-08-23 14:58:27 +0200
+++ ./src/lib/krb5/os/expand_path.c 2017-08-23 14:59:00 +0200
@@ -351,7 +351,7 @@
return 0;
}
-static const struct token {
+static const struct krb5_token {
const char *tok;
PTYPE param;
const char *postfix;
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic