IBM Support

IV58104: USING THE READLINKAT SUBROUTINE MAY FAIL WITH _XOPEN_SOURCE 700 APPLIES TO AIX 7100-02

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

    IV58104

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-03-28

  • Closed date

    2014-04-22

  • Last modified date

    2016-05-10

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

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

    IV59758 IV59824 U868604

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U868604

       UP15/01/19 I 1000



Document information

More support for: AIX Enterprise Edition

Software version: 710

Operating system(s): AIX

Reference #: IV58104

Modified date: 10 May 2016