[cfarm-users] AIX portability

Jonathan Wakely jwakely.gcc at gmail.com
Wed Sep 21 11:49:53 CEST 2022


On Wed, 21 Sept 2022 at 04:19, Kaz Kylheku via cfarm-users
<cfarm-users at lists.tetaneutral.net> wrote:
>
> On 2022-09-20 14:29, Bruno Haible wrote:
> > This is on gcc119.fsffrance.org (AIX 7.2). About which AIX and GCC versions
> > were you complaining?
>
> I neglected to mention: there are two areas in the <netinet/in.h> header file
> which define that same structure, with different member names and different
> definitions of the macros. One uses a u8_ naming on the right hand sides of
> the macro.
>
> No problem case:
>
> kaz at gcc119:[/home/kaz]echo '#include <netinet/in.h>
> foo->s6_addr' | gcc -E - | tail -3
> foo->
> # 2 "<stdin>" 3 4
>     u6_addr.u6_addr8
>
> Repro case:
>
> kaz at gcc119:[/home/kaz]echo '#include <netinet/in.h>
> foo->s6_addr' | gcc -E - -D_XOPEN_SOURCE=500 | tail -3
> foo->
> # 2 "<stdin>" 3 4
>     s6_addr.s6_addr.s6_addr8

Well this is just user error. Unless I'm mistaken, _XOPEN_SOURCE=500
selects a standard that doesn't even define struct in6_addr.


More information about the cfarm-users mailing list