IBM Support

IV52646: UNSATISIFIED LINK ERROR IF LD_LIBRARY_PATH CONTAINS CONFLICTING LIBRARY WITH JAVA LIBRARIES ON LINUX

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.UnsatisfiedLinkError: nio:-
    (/tmp/install.dir.31437/Linux/resource/jre/lib/i386/libnio.so:
    symbol
    NET_Bind, version SUNWprivate_1.1 not defined in file libnet.so
    with
    link time reference)
    .
    Stack Trace:
    java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1213)
    at
    java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.jav
    a:1177)
    at java.lang.System.loadLibrary(System.java:530)
    .
    

Local fix

  • - Move the conflicting library to a different path which is not
    in the LD_LIBRARY_PATH.
    OR
    - Remove the path which contains conflicting library from the
    LD_LIBRARY_PATH.
    

Problem summary

  • The compiler (gcc) version used for generating JDK 7 libraries
    used the option runpath by default. Runpath gives precedence to
    LD_LIBRARY_PATH rather than the JDK relative path which Java
    uses to search for its libraries. Hence, any library name which
    is conflicting with JDK library exists in LD_LIBRARY_PATH can
    result in the Unsatisified link error.
    

Problem conclusion

  • This APAR will be fixed in the following Java Releases:
       7    SR7       (7.0.7.0)
       7 R1 SR1       (7.1.1.0)
    .
    The JDK libraries have been generated by disabling the runpath
    option.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV52646

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-29

  • Closed date

    2014-04-16

  • Last modified date

    2014-04-16

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

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

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
22 February 2022