AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 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
    ------------------------------


  • 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
    ------------------------------