IBM Support

PH46883: LANGUAGE ENVIRONMENT DEFECT FIX 22/06/01 PTF PECHANGE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Language Environment defect fix
    Syntax errors are reported in
    /usr/include/sys/socket.h:939 by the C/C++ compiler if a 64bit C
     program which includes <sys/socket.h> was compiled with
    _ALL_SOURCE feature test macro defined.
    
    PE information:
    User's Affected:
    PH41221: HLE77C0 UI78913  HLE77D0 UI78912
    Option 1: (Specific)
    Users of IBM z/OS XL C/C++, and IBM Open XL C/C++ for z/OS
    who compile a 64bit C program with <sys/socket.h> included
    with _ALL_SOURCE, _OPEN_SOURCE=3 or
    _OPEN_SYS_SOCK_EXT2 feature test macro defined.
    
    User Impact:
    APAR PH41221 updated C header files to support IBM Open XL C/C++
     1.1 for z/OS but introduced a problem where syntax errors were
    reported by IBM z/OS XL C/C++ compiler causing a 64bit C/C++
    program with <sys/socket.h> included cannot be correctly
    complied
    

Local fix

  • - Remove/do not apply offending PTF (if possible)
    - To include <sys/types.h> before <sys/socket.h> will circumvent
    this problem.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of IBM z/OS XL C/C++, and IBM Open XL                  *
    * C/C++ for z/OS who compile a 64bit C                         *
    * program with <sys/socket.h> included with                    *
    * _ALL_SOURCE, _OPEN_SOURCE=3 or                               *
    * _OPEN_SYS_SOCK_EXT2 feature test macro                       *
    * defined.                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * APAR PH41221 updated C header files to                       *
    * support IBM Open XL C/C++ 1.1 for                            *
    * z/OS, but introduced a problem where                         *
    * syntax errors in                                             *
    * /usr/include/sys/socket.h:939                                *
    * were reported by the C/C++ compiler                          *
    * when compiling a 64bit C program                             *
    * which included <sys/socket.h> with                           *
    * _ALL_SOURCE, _OPEN_SOURCE=3 or                               *
    * _OPEN_SYS_SOCK_EXT2                                          *
    * feature test macro defined.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See the problem description.
    

Problem conclusion

  • The code has been changed to fix the problem.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH46883

  • Reported component name

    LE C LIB FOR Z/

  • Reported component ID

    568819805

  • Reported release

    7D0

  • Status

    CLOSED PER

  • PE

    YesPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-05-31

  • Closed date

    2022-06-20

  • Last modified date

    2022-08-02

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

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

    UI81095 UI81096

Modules/Macros

  • EDC4H00C EDC4H0A4 EDC4H00B EDC4H00A EDC4H0A2 EDC4H0A1 EDC4H0A8
    EDC4H00F EDC4H0A7 EDC4H00E EDC4H0A6 EDC4H00D EDC4H0A5 EDC4H009
    EDC4H008 EDC4H0A0 EDC4H014 EDC4H0AD EDC4H013 EDC4H0AC EDC4H012
    EDC4H0AB EDC4H011 EDC4H099 EDC4H018 EDC4H017 EDC4H016 EDC4H0AF
    EDC4H015 EDC4H0AE EDC4H0A9 EDC4H010 EDC4H07B EDC4H07F EDC4H07E
    EDC4H07D EDC4H07C EDC4H003 EDC4H002 EDC4H001 EDC4H006 EDC4H005
    EDC4H004 EDC4H02E EDC4H02D EDC4H02C EDC4H02B EDC4H02F EDC4H02A
    EDC4H036 EDC4H034 EDC4H033 EDC4H039 EDC4H037 EDC4H032 EDC4H031
    EDC4H030 EDC4H01D EDC4H01C EDC4H0B4 EDC4H01B EDC4H0B3 EDC4H01A
    EDC4H0B2 EDC4H01F EDC4H01E EDC4H019 EDC4H0B1 EDC4H0B0 EDC4H09F
    EDC4H09E EDC4H025 EDC4H023 EDC4H022 EDC4H028 EDC4H027 EDC4H026
    EDC4H021 EDC4H020 EDC4H04F EDC4H04E EDC4H04D EDC4H04C EDC4H04B
    EDC4H04A EDC4H058 EDC4H057 EDC4H056 EDC4H055 EDC4H059 EDC4H050
    EDC4H054 EDC4H053 EDC4H052 EDC4H051 EDC4H03F EDC4H03A EDC4H047
    EDC4H046 EDC4H045 EDC4H044 EDC4H049 EDC4H048 EDC4H043 EDC4H042
    EDC4H041 EDC4H040 EDC4H06F EDC4H06A EDC4H06E EDC4H06D EDC4H06C
    EDC4H06B EDC4H078 EDC4H077 EDC4H072 EDC4H071 EDC4S062 EDC4H070
    EDC4H076 EDC4H075 EDC4H073 EDC4H05F EDC4H05E EDC4H05D EDC4H05C
    EDC4H05B EDC4H05A EDC4H067 EDC4H066 EDC4H061 EDC4H065 EDC4H064
    EDC4H063 EDC4H062
    

Fix information

  • Fixed component name

    LE C LIB FOR Z/

  • Fixed component ID

    568819805

Applicable component levels

  • R7D0 PSY UI81095

       UP22/07/06 P F207 {

  • R7C0 PSY UI81096

       UP22/07/07 P F207 {

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"z\/OS XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7D0"}]

Document Information

Modified date:
02 August 2022