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-7.61.0-1 fails with Member libcrypto64.so is not found

  • 1.  curl-7.61.0-1 fails with Member libcrypto64.so is not found

    Posted Thu September 06, 2018 01:56 PM

    Originally posted by: COApowersw


    AIX LPAR, oslevel -s:7100-03-03-1415

    Installed curl-7.61.0-1 with no dependency errors, but when I execute it, I received these errors:

    # curl -vki  --ssl-allow-beast https://at.gov/financeonline/account_services/registration/str_hotel/update_payment_status>
    exec(): 0509-036 Cannot load program curl because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib64/libcurl.a(libcurl.so.4).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto64.so) could not be loaded.
            0509-152   Member libcrypto64.so is not found in archive
            0509-022 Cannot load module curl_64.
            0509-150   Dependent module /opt/freeware/lib64/libcurl.a(libcurl.so.4) could not be loaded.
            0509-022 Cannot load module .
    

    There is no "libcrypto64" RPM install package, and installing the 'libgcrypt-1.8.2-1' RPM package has no effect on the error.

    From basic research on Google, the "libcrypto64" library is supposed to be contained in the 'AIX-rpm-7.1.2.15-1' package, as shown here:

    # rpm -q AIX-rpm-7.1.2.15-1 --provides | grep cry
    libcrypt.a(shr.o)
    libcrypt.a(shr_64.o)
    libcrypto.a(libcrypto.so)
    libcrypto.a(libcrypto.so.0.9.8)
    libcrypto.a(libcrypto.so.1.0.0)
    libcrypto.a(
    libcrypto64.so)
    libcrypto.a(
    libcrypto64.so.0.9.8)
    libcrypto.a(
    libcrypto64.so.1.0.0)
    libcrypto_compat.a(libcrypto.so.0.9.8)
    libcrypto_compat.a(
    libcrypto64.so.0.9.8)
    libxcrypt.a(shr.o)
    libxcrypt.a(shr_64.o)
    liby4crypt.a(shr.o)
    liby4crypt.a(shr_64.o)
    

    However, it appears that curl-7.61.0-1 is unable to *see* those libraries?  Is this as something as simple as just updating my 'AIX-rpm-7.1.2.15-1' package to a higher level on the system?

    Further research seems to indicate that I have to create "libcrypto64" symbolic links in the /opt/freeware/lib64 and /usr/lib directories on the system?

    # find /opt/freeware -type f -name "libcrypto*"
    /opt/freeware/lib/libcrypto.a
    /opt/freeware/lib/libcrypto.so.0.9.7
    /opt/freeware/lib/libcrypto.so.0.9.8
    /opt/freeware/lib/libcrypto.so.1.0.0
    /opt/freeware/lib/libcrypto.so.1.0.1
    /opt/freeware/lib64/libcrypto.so.0.9.7
    /opt/freeware/lib64/libcrypto.so.0.9.8
    /opt/freeware/lib64/libcrypto.so.1.0.0
    /opt/freeware/lib64/libcrypto.so.1.0.1
    
    # find /usr/lib -type f -name "libcrypto*"
    /usr/lib/libcrypto.a
    /usr/lib/libcrypto_compat.a
    /usr/lib/nsr/lib64/cst/libcryptocme.sig
    /usr/lib/nsr/lib64/cst/libcryptocme.so
    

    Any assistance in debugging/rectifying this issue would be appreciated since IBM AIX Support washes their hands of the problem with the "AS IS" boilerplate...



  • 2.  Re: curl-7.61.0-1 fails with Member libcrypto64.so is not found

    Posted Fri September 07, 2018 09:42 AM

    Originally posted by: AyappanP


    AIX Toolbox packages depends on the openssl lpp package that ships with AIX Base. One can download it from AIX Expansion pack programs also. 

    In your case, it seems like you have openssl rpm installed (either from bull freeware or Perzl). AIX Toolbox doesn't provide openssl rpm.

    I suggest you to remove the openssl rpm and better reinstall the openssl lpp package folllowed by "updtvpkg" command. 



  • 3.  Re: curl-7.61.0-1 fails with Member libcrypto64.so is not found

    Posted Thu September 20, 2018 03:22 PM

    Originally posted by: COApowersw


     

       Thank you for your answer.

     

    I did some experimenting, and upgraded the LPAR to 7.1_TL04_SP03, which comes with Openssl1.0.2.

     

    I then ran the

    '/usr/sbin/updtvpkg'
    

    command with no errors or output, and then tried the 7.61 version of 'curl' again.  Same results:

    > / # curl -vki  --ssl-allow-beast https://at.gov/financeonline/account>
    exec(): 0509-036 Cannot load program curl because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib64/libcurl.a(libcurl.so.4).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto64.so) could not be loaded.
            0509-152   Member libcrypto64.so is not found in archive
            0509-022 Cannot load module curl_64.
            0509-150   Dependent module /opt/freeware/lib64/libcurl.a(libcurl.so.4) could not be loaded.
            0509-022 Cannot load module .
    > / #
    

     



  • 4.  Re: curl-7.61.0-1 fails with Member libcrypto64.so is not found

    Posted Fri September 21, 2018 02:21 AM

    Originally posted by: AyappanP


    Make sure you uninstall the openssl rpm as well. 

    This will remove libcrypto , libssl libraries from /opt/freeware/lib.