PM98258: DUPLICATE DEFINITION BINDER ERROR

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Consider the following testcase:
    
    $cat test.C
    namespace std {
     namespace tr1 {
       void make_tuple() {}
     }
    }
    
    $cat m.C
    namespace std {
     namespace tr1 {
       void make_tuple() {}
     }
    }
    int main() { return 55; }
    
    Compile as:
    $xlCb test.C m.C
    
    Compiler issues the invalid warning:
    
     IEW2480W A711 EXTERNAL SYMBOL make_tuple__Q2_3std3tr1Fv OF
    TYPE LD WAS ALREADY
              DEFINED AS A SYMBOL OF TYPE LD IN SECTION $PRIV000010.
     IEW2482W A712 THE ORIGINAL DEFINITION WAS IN A MODULE
    IDENTIFIED BY DDNAME
              /0000001.  THE DUPLICATE DEFINITION IS IN SECTION
    $PRIV000012  IN A
              MODULE IDENTIFIED BY DDNAME /0000002.
    FSUM3065 The LINKEDIT step ended with return code 4.
    

Local fix

  • Mark the template functions as being inlined.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users who are using the standard header      *
    *                 file in multiple compilation units.          *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect warning message was emitted   *
    *                      due to strong definition in standard    *
    *                      header.                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM98258

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    770

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-01

  • Closed date

    2013-10-03

  • Last modified date

    2013-12-04

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

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

    UK98193 PI06225 PI07450

Modules/Macros

  •    CRTEC128 CRTEC64  CRTE128N CRTHB05D CRTHB074
    CRTIB05D CRTIB074
    

Fix information

  • Fixed component name

    ANSI C++ CLASS

  • Fixed component ID

    568819807

Applicable component levels

  • R770 PSY UK98193

       UP13/10/13 P F310

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.



Rate this page:

(0 users)Average rating

Document information


More support for:

z/OS XL C/C++

Software version:

7.7

Operating system(s):

z/OS

Reference #:

PM98258

Modified date:

2013-12-04

Translate my page

Machine Translation

Content navigation