Re: [Bug-tar] Fw: tar 1.27.1 compile error on AIX 7.1 TL2 SP3 and AIX 6.
From:
yaberger
Subject:
Re: [Bug-tar] Fw: tar 1.27.1 compile error on AIX 7.1 TL2 SP3 and AIX 6.1 TL8 SP3 with IBM XL C/C++
Date:
Tue, 7 Jan 2014 12:55:47 -0500
Hi Paul,
Your suggested workaround also works.
I'll inform IBM support of your concern
regarding the compiler C standard and will see what they say.
Best regards,
Yannick Bergeron
Advisory IT Specialist
From:
Paul Eggert <address@hidden>
To:
Yannick Y Bergeron/Bromont/address@hidden,
Cc:
address@hidden
Date:
01/06/2014 07:13 PM
Subject:
Re: Fw: [Bug-tar]
tar 1.27.1 compile error on AIX 7.1 TL2 SP3 and AIX 6.1 TL8 SP3 with IBM
XL C/C++
Thanks, but your patch would make the resulting program
fail to conform
to C89, as C89 requires array sizes to be constant expressions.
> I'm still waiting to see if they will consider this as a compiler
defect
> and if an APAR will be created to eventually.
> I'll let you and the mailing list know once I receive this answer.
It's pretty clear that the compiler fails to conform
to the C standard here (C89, C99, C11, whichever version you like),
as the size is an integer constant _expression_.
Does the following alternative patch work around the problem for you?
If so, I can install it, as it should work regardless of the C
standard version.