IBM Support

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

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

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



Document information

More support for: Runtimes for Java Technology
Java Class Libraries

Software version: 700

Reference #: IV52646

Modified date: 16 April 2014