Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Curl cannot load program Symbol resolution failed for /opt/freeware/lib/libssh2.a(libssh2.so.1

  • 1.  Curl cannot load program Symbol resolution failed for /opt/freeware/lib/libssh2.a(libssh2.so.1

    Posted Tue December 12, 2023 04:32 PM

    While running curl, getting below error, Could someone please help on this issue. 

    curl 
    exec(): 0509-036 Cannot load program curl because of the following errors:
            0509-130 Symbol resolution failed for /opt/freeware/lib/libssh2.a(libssh2.so.1) because:
            0509-136   Symbol strcmp (number 40) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.1).
            0509-136   Symbol memmove (number 55) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.1).
            0509-136   Symbol strncpy (number 64) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.1).
            0509-136   Symbol bcopy (number 109) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.1).
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.



    ------------------------------
    Ramesh Ganesan
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Curl cannot load program Symbol resolution failed for /opt/freeware/lib/libssh2.a(libssh2.so.1

    Posted Wed December 13, 2023 03:19 AM

    You have wrong OpenSSL library.

    Check that you have openssl rpm installed:

    rpm -q openssl

    If it is installed, remove it

    If it is not installed, check which packages provide /opt/freeware/lib/libcrypto.a:

    rpm -qf /opt/freeware/lib/libcrypto.a

    If you found them, uninstall the packages.

    If you don't find them, remove wrong OpenSSL libraries from /opt/freeware/lib and use IBM OpenSSL.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------