IBM Support

IZ72949: -WE OPTIONS TO CREATEEXPORTLIST IGNORED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • -WE is supposed to pass CreateExportList parameters from the xlC
    invocation to the script.
    
    But it apprears that it's not. This could be seen by adding -V
    to the compile.
    
    Invoking CreateExportList script directly, one can see the
    script itself is working fine.
    
    
    xlc/xlC is not recognizing the -WE, options.
    
    
    ===== TESTCASE:
    Use -V to show the problem.
    
    To demonstrate that CreateExportList is working fine, one could
    try the -WE,-w option with a .C file that has an inline function
    so that the symbol will be weak.
    
    $cat t.C
    #include <stdio.h>
    int foo(int);
    int main( )
    {
    int x=1;
    printf("foo=%d\n", foo(x));
    return 0;
    }
    
    inline int foo(int x1)
    {
    return 5*x1;
    }
    
    
    $xlC t.C -c -o t.o
    
    $xlC -qmkshrobj -WE,-w -qexpfile=exp t.o
    $cat exp
    foo__Fi
    main
    
    Symbol foo_Fi is weak. It shall not appear in the exp file since
    -WE,-w is present.
    
    Invoke createExportList directly to pass the -w option, foo_Fi
    will be removed from the exp file.
    
    
    $/usr/vac/bin/CreateExportList exp t.o -w
    $cat exp
    main
    

Local fix

  • Use createExportList script directly.
    

Problem summary

  • PROBLEM DESCRIPTION: Options specified via -WE are not passed
    to CreateExportList
    
    USERS AFFECTED: Any user who tries to pass option to
    CreateExportList
    

Problem conclusion

  • Problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ72949

  • Reported component name

    XL C++ AIX

  • Reported component ID

    5724U8100

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-16

  • Closed date

    2010-06-03

  • Last modified date

    2010-06-03

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

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

    IZ76855

Fix information

  • Fixed component name

    XL C AIX

  • Fixed component ID

    5724U8000

Applicable component levels

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1"}]

Document Information

Modified date:
07 October 2021