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
  • 1.  Update curl on AIX 7.1

    Posted Mon September 16, 2019 03:33 AM

    Originally posted by: emil.mazurkiewicz


    Hello,

     I needed to upgrade curl on Customer AIX VM with oslevel 7100-05-04-1914. I downloaded curl-7.65.1-1.ppc from the AIX Toolbox website. I received notice of several dependencies and installed those (downloaded from same site). I now receive this error when doing a curl -V:

     curl -V
    exec(): 0509-036 Cannot load program curl because of the following errors:
            0509-150   Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
            0509-153   File /usr/lib/libldap.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.
    09:24:17 root@srtchvus9006: /sds/aix/aixtoolbox/RPMS/ppc/openldap 
     

    The dependency packages that I installed are:
    ca-certificates-2017.07.17-1.ppc.rpm

    libssh2-1.8.0-3.aix6.1.ppc.rpm

     

    Than I added LIBPATH=/usr/lib to the /etc/environment file and updated openldap to required version: openldap-2.4.45-1.ppc

    But the error is still the same.

     

    Could someone help me to resolve the issue?



  • 2.  Re: Update curl on AIX 7.1

    Posted Mon September 16, 2019 05:59 AM

    Originally posted by: AyappanP


    Curl is built against OpenLDAP rpm . The /usr/lib/libldap.a comes from IBM LDAP. 

    So setting LIBPATH=/usr/lib is problematic.

    Don't set any LIBPATH and try once again.



  • 3.  Re: Update curl on AIX 7.1

    Posted Mon September 16, 2019 06:17 AM

    Originally posted by: emil.mazurkiewicz


    Thanks for your response.

     

    First I tried without adding LIBPATH=/usr/lib to  /etc/environment  but the issue was the same.

     

    I found this topic:
    https://www.ibm.com/developerworks/community/forums/html/topic?id=2f4e4cde-db90-4a3d-aa20-fe2e51b097fe

     

    and thats why I decidaded to add  LIBPATH=/usr/lib

    Now when I removed it I get:
    # curl -V
    exec(): 0509-036 Cannot load program curl because of the following errors:
            0509-150   Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
            0509-153   File /usr/lib/libldap.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.
     

    Do you have any other idea



  • 4.  Re: Update curl on AIX 7.1

    Posted Mon September 16, 2019 08:20 AM

    Originally posted by: AyappanP


    The issue cannot be the same with LIBPATH unset. 

    Can you try this and paste the output here ?

    unset LIBPATH

    ldd /opt/freeware/bin/curl



  • 5.  Re: Update curl on AIX 7.1

    Posted Mon September 16, 2019 08:24 AM

    Originally posted by: emil.mazurkiewicz


    I did what you suggested. Here is the output:

    14:22:56 root@srtchvus9006: /home/root 
    # unset LIBPATH
    14:22:58 root@srtchvus9006: /home/root 
    # ldd /opt/freeware/bin/curl
    /opt/freeware/bin/curl needs:
             /opt/freeware/lib64/libcurl.a(libcurl.so.4)
             /opt/freeware/lib64/libssh2.a(libssh2.so.1)
             /usr/lib/libpthreads.a(shr_xpg5_64.o)
             /opt/freeware/lib64/libgssapi_krb5.so
             /opt/freeware/lib64/libkrb5.so
             /opt/freeware/lib64/libk5crypto.so
             /opt/freeware/lib64/libcom_err.so
             /opt/freeware/lib64/libldap.a(libldap-2.4.so.2)
             /opt/freeware/lib64/liblber.a(liblber-2.4.so.2)
             /opt/freeware/lib/libz.a(libz.so.1)
             /usr/lib/libc.a(shr_64.o)
             /opt/freeware/lib64/libgcc_s.a(shr.o)
             /opt/freeware/lib64/libgssapi_krb5.a(libgssapi_krb5.so)
             /opt/freeware/lib64/libkrb5.a(libkrb5.so)
             /opt/freeware/lib64/libk5crypto.a(libk5crypto.so)
             /opt/freeware/lib64/libcom_err.a(libcom_err.so)
             /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.2)
    ar: 0707-109 Member name libcrypto.so.1.0.2 does not exist.
    dump: /tmp/tmpdir17891400/extract/libcrypto.so.1.0.2: 0654-106 Cannot open the specified file.
             /opt/freeware/lib/libssl.a(libssl.so.1.0.2)
    ar: 0707-109 Member name libssl.so.1.0.2 does not exist.
    dump: /tmp/tmpdir17891400/extract/libssl.so.1.0.2: 0654-106 Cannot open the specified file.
             /opt/freeware/lib/libcrypto.a(libcrypto64.so)
    ar: 0707-109 Member name libcrypto64.so does not exist.
    dump: /tmp/tmpdir17891400/extract/libcrypto64.so: 0654-106 Cannot open the specified file.
             /unix
             /opt/freeware/lib64/libkrb5support.so
             /opt/freeware/lib64/libintl.a(libintl.so.8)
             /opt/freeware/lib/libcrypto.a(libcrypto64.so.1.0.0)
    ar: 0707-109 Member name libcrypto64.so.1.0.0 does not exist.
    dump: /tmp/tmpdir17891400/extract/libcrypto64.so.1.0.0: 0654-106 Cannot open the specified file.
             /usr/lib/libs.a(shr_64.o)
             /opt/freeware/lib/libssl.a(libssl64.so)
    ar: 0707-109 Member name libssl64.so does not exist.
    dump: /tmp/tmpdir17891400/extract/libssl64.so: 0654-106 Cannot open the specified file.
             /usr/lib/libcrypt.a(shr_64.o)
    14:23:06 root@srtchvus9006: /home/root 

     

    and output of curl -V:

    # curl -V
    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(libcrypto.so.1.0.2) could not be loaded.
            0509-152   Member libcrypto.so.1.0.2 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 .



  • 6.  Re: Update curl on AIX 7.1

    Posted Mon September 16, 2019 08:30 AM

    Originally posted by: AyappanP


    You seem to have openssl rpm. AIX Toolbox packages are built against openssl installp fileset.

    You need to either remove openssl rpm or try with the latest openssl rpm from bull freeware/perzl.

    The former is always recommended.  



  • 7.  Re: Update curl on AIX 7.1

    Posted Mon September 16, 2019 08:46 AM

    Originally posted by: emil.mazurkiewicz


    Looks like there was the issue, I had openssl-1.0.1g-1.ppc installed.

     

    I have send mail to Customer for confirmation that all work fine now.

     

    Many thanks for your help Ayappan. I very appreciate it! 

     

    I will post an info once Customer will reply.