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.  yum update curl breaks curl for me

    Posted Tue April 06, 2021 02:51 AM

    bash-5.0# oslevel -s

    6100-04-03-1009

    I have run into an issue where I think I have library issue, in a nut shell after yum update I had a broken yum. After trying various things I removed all the RPM's back to the AIX_rpm and then reinstalled the newest rpm.rte just to try and start with blank slate.  I installed the packages from the yum_bundle.tar

    So far so good... 

    bash-5.0# curl --version

    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.52.1 OpenSSL/1.0.2t zlib/1.2.11

    Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 

    Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy 

    Now update curl

    bash-5.0# yum update curl

    Setting up Update Process
    .
    .

    Dependency Installed:

      cyrus-sasl.ppc 0:2.1.26-3     krb5-libs.ppc 0:1.18.3-1     libnghttp2.ppc 0:1.41.0-1     libssh2.ppc 0:1.9.0-1     openldap.ppc 0:2.4.56-1    

    Updated:

      curl.ppc 0:7.74.0-1                                                                                                                           

    Dependency Updated:

      db.ppc 1:5.3.28-1   


    Try to run curl.... broken


    bash-5.0# /opt/freeware/bin/curl

    exec(): 0509-036 Cannot load program /opt/freeware/bin/curl because of the following errors:

    0509-022 Cannot load module /opt/freeware/lib/libgssapi_krb5.a(libgssapi_krb5.so).

    0509-150   Dependent module /opt/freeware/lib/libkrb5.so could not be loaded.

    0509-103   The module has an invalid magic number.

    0509-022 Cannot load module curl_64.

    0509-150   Dependent module /opt/freeware/lib/libgssapi_krb5.a(libgssapi_krb5.so) could not be loaded.

    0509-022 Cannot load module .


    bash-5.0# /opt/freeware/bin/curl_32

    exec(): 0509-036 Cannot load program /opt/freeware/bin/curl_32 because of the following errors:

    0509-130 Symbol resolution failed for /opt/freeware/lib/libssh2.a(libssh2.so.1) because:

    0509-136   Symbol memset_s (number 39) is not exported from

      dependent module /usr/lib/libc.a(shr.o).

    0509-026 System error: Error 0

    0509-192 Examine .loader section symbols with the

    'dump -Tv' command.

    So revert to to old curl


    bash-5.0# rpm -Uvh --oldpackage curl-7.52.1-1.aix6.1.ppc.rpm 

    Preparing...                          ################################# [100%]

    Updating / installing...

       1:curl-7.52.1-1                    ################################# [ 50%]

    Cleaning up / removing...

       2:curl-7.74.0-1                    ################################# [100%]

    bash-5.0# which curl

    /usr/bin/curl

    bash-5.0# curl

    curl: try 'curl --help' or 'curl --manual' for more information

    bash-5.0# curl --version

    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.52.1 OpenSSL/1.0.2t zlib/1.2.11

    Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 

    Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy 


    Works fine....

    Any ideas on why this broken. I've tried with LIBPATH empty and with /opt/freeware first broken each time.

    -Mike

    ------------------------------
    Mike Tremaine
    ------------------------------


  • 2.  RE: yum update curl breaks curl for me

    Posted Tue April 06, 2021 08:10 AM
    Without setting any LIBPATH , can you list the below outputs ?
    ldd /opt/freeware/bin/curl
    rpm -qa

    Also , even if we fix the 64bit curl error, there will be memset_s missing from libc.a error ( seen from the 32bit curl ).
    For that you need to update the AIX 6.1 to the latest TL. You are running at TL4 which is very old


    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: yum update curl breaks curl for me

    Posted Fri April 09, 2021 09:13 AM

    Noted about the TL version. Below is the requested output what I did was get the ldd from the working curl then I update to the 7.74 curl and grabbed the ldd before reverting back to 7.52 curl.

    bash-5.0# echo $LIBPATH

    bash-5.0# rpm -q curl

    curl-7.52.1-1.ppc

    bash-5.0# ldd /opt/freeware/bin/curl

    /opt/freeware/bin/curl needs:

             /usr/lib/libc.a(shr.o)

             /opt/freeware/lib/libcurl.a(libcurl.so.4)

             /opt/freeware/lib/libz.a(libz.so.1)

             /unix

             /usr/lib/libcrypt.a(shr.o)

             /usr/lib/libcrypto.a(libcrypto.so)

             /usr/lib/libssl.a(libssl.so)

             /usr/lib/libcrypto.a(libcrypto.so.1.0.2)

    [The above works fine]

    [The below does not]

    Updated:

      curl.ppc 0:7.74.0-1

    bash-5.0# /opt/freeware/bin/curl --version

    exec(): 0509-036 Cannot load program /opt/freeware/bin/curl because of the following errors:

        0509-130 Symbol resolution failed for /opt/freeware/lib64/libssh2.a[libssh2.so.1] because:

        0509-136   Symbol memset_s (number 39) is not exported from

               dependent module /usr/lib/libc.a[shr_64.o].

        0509-026 System error: Error 0

        0509-192 Examine .loader section symbols with the

             'dump -Tv' command.

    bash-5.0# ldd /opt/freeware/bin/curl

    /opt/freeware/bin/curl needs:

         /usr/lib/libc.a(shr_64.o)

         /usr/lib/libpthreads.a(shr_xpg5_64.o)

         /opt/freeware/lib64/libcurl.a(libcurl.so.4)

         /opt/freeware/lib/libz.a(libz.so.1)

         /opt/freeware/lib64/libnghttp2.a(libnghttp2.so.14)

         /opt/freeware/lib64/libssh2.a(libssh2.so.1)

         /opt/freeware/lib/libgssapi_krb5.a(libgssapi_krb5.so)

         /opt/freeware/lib/libkrb5.a(libkrb5.so)

         /opt/freeware/lib/libk5crypto.a(libk5crypto.so)

         /opt/freeware/lib/libcom_err.a(libcom_err.so)

         /opt/freeware/lib64/libldap.a(libldap-2.4.so.2)

         /opt/freeware/lib64/liblber.a(liblber-2.4.so.2)

         /unix

         /usr/lib/libcrypt.a(shr_64.o)

         /opt/freeware/lib64/libgcc_s.a(shr.o)

         /usr/lib/libcrypto.a(libcrypto.so.1.0.2)

         /usr/lib/libssl.a(libssl.so.1.0.2)

         /usr/lib/libc.a(shr.o)

         /opt/freeware/lib64/libkrb5.so

         /opt/freeware/lib64/libk5crypto.so

         /opt/freeware/lib64/libcom_err.so

         /opt/freeware/lib64/libkrb5support.so

         /opt/freeware/lib64/libintl.a(libintl.so.8)

         /usr/lib/libpthreads.a(shr_xpg5.o)

         /usr/lib/librtl.a(shr.o)

         /opt/freeware/lib64/libsasl2.a

         /usr/lib/libs.a(shr_64.o)

         /usr/lib/libcrypt.a(shr.o)

         /opt/freeware/lib/libiconv.a(libiconv.so.2)

         /usr/lib/libpthreads.a(shr_comm.o)

         /usr/lib/libdl.a(shr_64.o)

    bash-5.0# rpm -qa

    AIX-rpm-6.1.4.0-9.ppc

    sqlite-3.15.2-1.ppc

    gdbm-1.8.3-5.ppc

    python-2.7.10-1.ppc

    python-iniparse-0.4-1.noarch

    python-urlgrabber-3.10.1-1.noarch

    python-devel-2.7.10-1.ppc

    libgcc8-8.3.0-4.ppc

    libstdc++8-8.3.0-4.ppc

    libstdc++-8-1.ppc

    libgomp8-8.3.0-4.ppc

    xz-libs-5.2.5-1.ppc

    libtextstyle-0.20.2-1.ppc

    glib2-2.56.1-3.ppc

    bash-5.0.18-1.ppc

    gettext-0.20.2-1.ppc

    wget-1.20.3-1.ppc

    p11-kit-tools-0.23.16-1.ppc

    db-5.3.28-1.ppc

    openldap-2.4.56-1.ppc

    libnghttp2-1.41.0-1.ppc

    less-557-1.ppc

    gmp-6.1.2-1.ppc

    expat-2.2.9-2.ppc

    libtasn1-4.16.0-1.ppc

    cups-libs-2.2.3-3.ppc

    tcl-8.6.8-3.ppc

    lz4-1.9.2-1.ppc

    popt-1.18-1.ppc

    readline-6.1-2.ppc

    yum-metadata-parser-1.1.4-2.ppc

    pysqlite-1.1.7-2.ppc

    python-pycurl-7.19.3-1.ppc

    yum-3.4.3-8.noarch

    python-tools-2.7.10-1.ppc

    libgcc-8-1.ppc

    zlib-1.2.11-2.ppc

    ncurses-6.2-2.ppc

    libgomp-8-1.ppc

    libffi-3.2.1-3.ppc

    libunistring-0.9.10-1.ppc

    libxml2-2.9.10-1.ppc

    libiconv-1.16-1.ppc

    info-6.6-2.ppc

    p11-kit-0.23.16-1.ppc

    ca-certificates-2020.06.01-1.ppc

    cyrus-sasl-2.1.26-3.ppc

    krb5-libs-1.18.3-1.ppc

    libssh2-1.9.0-1.ppc

    curl-7.52.1-1.ppc

    cdrtools-3.01-3.ppc

    nettle-3.6-1.ppc

    dbus-1.13.18-1.ppc

    gnutls-3.6.15-1.ppc

    cups-2.2.3-3.ppc

    expect-5.45.4-1.ppc

    rsync-3.2.3-1.ppc

    logrotate-3.14.0-4.ppc




    ------------------------------
    Mike Tremaine
    ------------------------------