In perl.git, the branch khw/ebcdic has been updated <http://perl5.git.perl.org/perl.git/commitdiff/6d4b52d1cc9836f1929b2e0f4a55df9cb914351c?hp=6de7e69170633d25c4e8da7f4fff1aff4a5d4411>
- Log ----------------------------------------------------------------- commit 6d4b52d1cc9836f1929b2e0f4a55df9cb914351c Author: Andy Dougherty <[email protected]> Date: Wed Feb 27 13:06:07 2013 -0500 Disable gcc-style function attributes on z/OS. John Goodyear <[email protected]> reports that the z/OS C compiler supports the attribute keyword, but not exactly the same as gcc. Instead of a "warning", the compiler emits an "INFORMATIONAL" message that Configure fails to detect. Until Configure is fixed, just disable the attributes altogether. John Goodyear ----------------------------------------------------------------------- Summary of changes: hints/os390.sh | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/hints/os390.sh b/hints/os390.sh index 892d36d..d9b0f8a 100644 --- a/hints/os390.sh +++ b/hints/os390.sh @@ -231,3 +231,22 @@ d_gethostbyaddr_r='undef' d_gethostbyname_r='undef' d_gethostent_r='undef' +# The z/OS C compiler compiler supports the attribute keyword, but in a +# limited manner. +# +# Ideally, Configure's tests should test the attributes as they are expected +# to be used in perl, and, ideally, those tests would fail on z/OS. +# Until then, just tell Configure to ignore the attributes. Currently, +# Configure thinks attributes are supported because it does not recognize +# warning messages like this: +# +# INFORMATIONAL CCN4108 ./proto.h:4534 Â The use of keyword '__attribute__' is non-portable. + +d_attribute_deprecated='undef' +d_attribute_format='undef' +d_attribute_malloc='undef' +d_attribute_nonnull='undef' +d_attribute_noreturn='undef' +d_attribute_pure='undef' +d_attribute_unused='undef' +d_attribute_warn_unused_result='undef' -- Perl5 Master Repository
