IBM Support

LI77812: EXTRA (I) MESSAGES WHEN COMPILING SYS/STAT.H

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Many useless warning messages are emitted for the below test
    case.
    
    $cat t3.c
    
    #define _FILE_OFFSET_BITS   64  /* Offset bits for long lseek */
    #define _LARGEFILE64_SOURCE     1   /* Set to 0 or 1 */
    
    #include <sys/stat.h>
    
    int main()
    {
      return 0;
    }
    
    $ xlc t3.c
    "/usr/include/sys/stat.h", line 218.78: 1506-377 (I) The type
    "struct stat* restrict" of parameter 2 differs from the
    previous type "struct stat64* restrict".
    "/usr/include/sys/stat.h", line 220.79: 1506-377 (I) The type
    "struct stat*" of parameter 2 differs from the previous type
    "struct stat64*".
    "/usr/include/sys/stat.h", line 246.42: 1506-377 (I) The type
    "struct stat* restrict" of parameter 3 differs from the
    previous type "struct stat64* restrict".
    "/usr/include/sys/stat.h", line 269.73: 1506-377 (I) The type
    "struct stat* restrict" of parameter 2 differs from the
    previous type "struct stat64* restrict".
    "/usr/include/sys/stat.h", line 411.80: 1506-377 (I) The type
    "struct stat*" of parameter 3 differs from the previous type
    "struct stat64*".
    "/usr/include/sys/stat.h", line 414.78: 1506-377 (I) The type
    "struct stat*" of parameter 3 differs from the previous type
    "struct stat64*".
    "/usr/include/sys/stat.h", line 417.80: 1506-377 (I) The type
    "struct stat*" of parameter 3 differs from the previous type
    "struct stat64*".
    "/usr/include/sys/stat.h", line 422.45: 1506-377 (I) The type
    "struct stat*" of parameter 4 differs from the previous type
    "struct stat64*".
    

Local fix

  • Use -qsuppress to suppress the info message
    

Problem summary

  • PROBLEM DESCRIPTION: compiler issues some info messages when
    symbols being mapped  with pragma map do not have the same type
    
    USERS AFFECTED: Users or pragma map who map a symbol to another
    with different type.
    

Problem conclusion

  • The extra warning messages are surpressed now. One can still
    recover the warning message with -qinfo=gen.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77812

  • Reported component name

    XL C/C++ RHEL52

  • Reported component ID

    5724U8310

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-01-15

  • Closed date

    2014-01-15

  • Last modified date

    2014-01-15

  • APAR is sysrouted FROM one or more of the following:

    LI77598

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL C/C++ RHEL52

  • Fixed component ID

    5724U8310

Applicable component levels

  • RA10 PSY

       UP



Document information

More support for: XL C/C++

Software version: A.1

Reference #: LI77812

Modified date: 15 January 2014