IBM Support

IV59758: USING THE READLINKAT SUBROUTINE MAY FAIL WITH _XOPEN_SOURCE 700 APPLIES TO AIX 7100-03

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If the source code holds the XOPEN_SOURCE Feature Test
    Macro
    with a value of 700, e.g.:
    
    #define _XOPEN_SOURCE 700
    
    includes
    #include <unistd.h>
    
    and then calls the "readlinkat" subroutine, e.g.
    
      rc = readlinkat( fd, path2,  buf, sizeof(buf));
    
    the compilation may fail with an error message similar to
    
    ld: 0711-317 ERROR: Undefined symbol: .__readlink64at
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to
    obtain
        more information.
    

Local fix

  • Do not use the XOPEN_SOURCE Feature Test Macro
    by removing line
    
    #define _XOPEN_SOURCE 700
    
    from the source code.
    This will create code which does not comply to the
    definition. Therefore this approach is only valid if
    this definition is not needed.
    

Problem summary

  • READLINKAT() MAY FAIL TO LINK WITH _XOPEN_SOURCE 700 AND 64-bit
    

Problem conclusion

  • Export the __readlink64at symbol
    

Temporary fix

Comments

  • 7100-02 - use AIX APAR IV58104
    7100-03 - use AIX APAR IV59758
    7100-04 - use AIX APAR IV59824
    

APAR Information

  • APAR number

    IV59758

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-04-24

  • Closed date

    2014-04-24

  • Last modified date

    2016-05-10

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

    IV58104

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

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U868052

       UP14/10/29 I 1000

[{"Business Unit":{"code":"BU009","label":"Systems - Cognitive"},"Product":{"code":"SSMV87","label":"AIX Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":""},{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":""},{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SG11R","label":"APARs - AIX 7.1 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":""}]

Document Information

Modified date:
10 May 2016