AIX Open Source

 View Only
Expand all | Collapse all

Yum update error - Symbol resolution failed

  • 1.  Yum update error - Symbol resolution failed

    Posted Mon July 12, 2021 01:26 PM
    Encountered this error on a yum update command:

    # yum udpate
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
    0509-136 Symbol _GLOBAL__AIXI_libffi_so (number 212) is not exported from
    dependent module /opt/freeware/lib/libffi.a(libffi.so.6).
    0509-136 Symbol _GLOBAL__AIXD_libffi_so (number 213) is not exported from
    dependent module /opt/freeware/lib/libffi.a(libffi.so.6).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.


    Thanks

    ------------------------------
    John Dimock
    ------------------------------


  • 2.  RE: Yum update error - Symbol resolution failed

    Posted Tue July 13, 2021 12:51 AM
    Hi John,

    Please let me know the output of "rpm -qi libffi"


    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: Yum update error - Symbol resolution failed

    Posted Tue July 13, 2021 08:11 AM
    Hello Sangamesh:
    Here is the output of the command you requested:

    # rpm -qi libffi
    Name : libffi
    Version : 3.2.1
    Release : 3
    Architecture: ppc
    Install Date: Mon Jul 12 11:30:52 CDT 2021
    Group : System Environment/Libraries
    Size : 137186
    License : BSD
    Signature : (none)
    Source RPM : libffi-3.2.1-3.src.rpm
    Build Date : Wed Feb 27 23:27:09 CST 2019
    Build Host : pokndd10.pok.stglabs.ibm.com
    Relocations : (not relocatable)
    URL : http://sourceware.org/libffi
    Summary : A portable foreign function interface library
    Description :
    Compilers for high level languages generate code that follow certain
    conventions. These conventions are necessary, in part, for separate
    compilation to work. One such convention is the "calling convention".
    The calling convention is a set of assumptions made by the compiler
    about where function arguments will be found on entry to a function.
    A calling convention also specifies where the return value for a function
    is found.

    Some programs may not know at the time of compilation what arguments
    are to be passed to a function. For instance, an interpreter may be
    told at run-time about the number and types of arguments used to call a
    given function. `Libffi' can be used in such programs to provide a
    bridge from the interpreter program to compiled code.

    The `libffi' library provides a portable, high level programming
    interface to various calling conventions. This allows a programmer to
    call any function specified by a call interface description at run time.

    FFI stands for Foreign Function Interface. A foreign function
    interface is the popular name for the interface that allows code
    written in one language to call code written in another language.
    The `libffi' library really only provides the lowest, machine dependent
    layer of a fully featured foreign function interface. A layer must
    exist above `libffi' that handles type conversions for values passed
    between the two languages.

    ------------------------------
    John Dimock
    ------------------------------



  • 4.  RE: Yum update error - Symbol resolution failed

    Posted Wed July 14, 2021 06:30 AM
    Hi John,

    Version of libffi present seems to be correct.
    could you please run "rpm -V libffi" and check if it throughs any error ?
    Please provided the output of "rpm -qa | grep python"

    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: Yum update error - Symbol resolution failed

    Posted Wed July 14, 2021 08:12 AM
    Strange, the first command returns no output --

    # rpm -V libffi
    No output from command
    =========================================

    root@:/
    # rpm -qa | grep python
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    python-pycurl-7.43.0-1.ppc
    python-devel-2.7.16-1.ppc
    python-2.7.16-1.ppc
    samba-python-4.10.6-1.ppc
    python-tools-2.7.16-1.ppc
    ============================

    ------------------------------
    John Dimock
    ------------------------------



  • 6.  RE: Yum update error - Symbol resolution failed

    Posted Thu July 15, 2021 10:04 AM

    Sangamesh

     

    Looking at installed RPM's noticed this:

     

    $rpm -qi glib2

    Name        : glib2

    Version     : 2.48.1

    Release     : 2

    Architecture: ppc

    Install Date: Tue Apr 24 14:49:14 CDT 2018

    Group       : System Environment/Libraries

    Size        : 63368973

    License     : LGPLv2+

    Signature   : (none)

    Source RPM  : glib2-2.48.1-2.src.rpm

    Build Date  : Mon Mar 20 12:47:28 CDT 2017

    Build Host  : castor1.coopibm.frec.bull.fr

    Relocations : (not relocatable)

    URL         : http://www.gtk.org

    Summary     : A library of handy utility functions

    Description :

    GLib is the low-level core library that forms the basis

    for projects such as GTK+ and GNOME. It provides data structure

    handling for C, portability wrappers, and interfaces for such runtime

    functionality as an event loop, threads, dynamic loading, and an

    object system.

     

     

    The library is available as 32-bit and 64-bit.

    Name        : glib2

    Version     : 2.56.1

    Release     : 2

    Architecture: ppc

    Install Date: Thu Feb  6 14:13:06 CST 2020

    Group       : System Environment/Libraries

    Size        : 120897839

    License     : LGPLv2+

    Signature   : (none)

    Source RPM  : glib2-2.56.1-2.src.rpm

    Build Date  : Tue Aug  7 01:58:07 CDT 2018

    Build Host  : pokndd10.pok.stglabs.ibm.com

    Relocations : (not relocatable)

    URL         : http://www.gtk.org

    Summary     : A library of handy utility functions

    Description :

    GLib is the low-level core library that forms the basis

    for projects such as GTK+ and GNOME. It provides data structure

    handling for C, portability wrappers, and interfaces for such runtime

    functionality as an event loop, threads, dynamic loading, and an

    object system.

     

     

    The library is available as 32-bit and 64-bit.

     

    $rpm -qi zlib

    Name        : zlib

    Version     : 1.2.11

    Release     : 1

    Architecture: ppc

    Install Date: Tue Apr 24 14:48:13 CDT 2018

    Group       : System Environment/Libraries

    Size        : 887550

    License     : zlib

    Signature   : (none)

    Source RPM  : zlib-1.2.11-1.src.rpm

    Build Date  : Wed Apr 11 08:25:00 CDT 2018

    Build Host  : hardy1.coopibm.frec.bull.fr

    Relocations : (not relocatable)

    URL         : http://www.gzip.org/zlib/

    Summary     : The zlib compression and decompression library

    Description :

    Zlib is a general-purpose, patent-free, lossless data compression

    library which is used by many different programs.

     

    The library is available as 32-bit and 64-bit.

     

    John Dimock
    Sr. Systems Administrator
    Texas Children's Hospital
    2450 Holcombe Blvd.

    Houston, TX 77030
    832-824-4110

     


    ______________________________________________________________________
    CONFIDENTIALITY NOTICE:
    The information in this e-mail may be confidential and/or
    privileged. If you are not the intended recipient or an
    authorized representative of the intended recipient, you
    are hereby notified that any review, dissemination, or
    copying of this e-mail and its attachments, if any, or
    the information contained herein is prohibited. If you
    have received this e-mail in error, please immediately
    notify the sender by return e-mail and delete this e-mail
    from your computer system. Thank you.
    ______________________________________________________________________





  • 7.  RE: Yum update error - Symbol resolution failed

    Posted Tue July 20, 2021 02:49 PM
    Edited by SANGAMESH MALLAYYA Tue July 20, 2021 02:49 PM
    Hi John,

    Please run the below command and confirm if they are same in your case.

    # sum /opt/freeware/lib/libffi.a
    40567 62 /opt/freeware/lib/libffi.a

    # dump -Tov /opt/freeware/lib/libffi.a | egrep "_GLOBAL__AIXI_libffi_so|_GLOBAL__AIXD_libffi_so"
    [28] 0x20000c10 .data EXP DS Ldef [noIMid] _GLOBAL__AIXI_libffi_so
    [29] 0x20000c1c .data EXP DS Ldef [noIMid] _GLOBAL__AIXD_libffi_so

    If they are different then probably you may need to reinstall libffi.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 8.  RE: Yum update error - Symbol resolution failed

    Posted Tue July 20, 2021 03:27 PM

    $sum /opt/freeware/lib/libffi.a

    40567    62 /opt/freeware/lib/libffi.a

     

    $dump -Tov /opt/freeware/lib/libffi.a | egrep "_GLOBAL__AIXI_libffi_so|_GLOBAL__AIXD_libffi_so"

    [28]    0x20000c10    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXI_libffi_so

    [29]    0x20000c1c    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXD_libffi_so

     

    Appear to match your example.

     

     

    John Dimock
    Sr. Systems Administrator
    Texas Children's Hospital
    2450 Holcombe Blvd.

    Houston, TX 77030
    832-824-4110

     






  • 9.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 09:37 AM
    Any update on this issue I am experiencing? Thanks

    ------------------------------
    John Dimock
    ------------------------------



  • 10.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 10:03 AM
    Do you have LIBPATH exported or any other libffi library present in any other library path ?
    Share the output of the below commands
    echo $LIBPATH 
    ls -l /usr/lib/libffi.a

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



  • 11.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 10:22 AM

    # echo $LIBPATH

                                                    ß blank output

    root@:/

    # ls -l /usr/lib/libffi.a

    lrwxrwxrwx    1 root     system           31 Jul 12 11:30 /usr/lib/libffi.a -> ../../opt/freeware/lib/libffi.a

    root@:/

     

    John Dimock
    Sr. Systems Administrator
    Texas Children's Hospital
    2450 Holcombe Blvd.

    Houston, TX 77030
    832-824-4110

     






  • 12.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 10:42 AM
    Looks okay.
    From the error it looks like , python2 itself is broken.
    Are you able to run /opt/freeware/bin/python2 ? 

    Are you sure that the below error still exist ?

    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
    0509-136 Symbol _GLOBAL__AIXI_libffi_so (number 212) is not exported from
    dependent module /opt/freeware/lib/libffi.a(libffi.so.6).
    0509-136 Symbol _GLOBAL__AIXD_libffi_so (number 213) is not exported from
    dependent module /opt/freeware/lib/libffi.a(libffi.so.6).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

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



  • 13.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 10:49 AM

    $/opt/freeware/bin/python2 --version

    Python 2.7.10

     

    John Dimock
    Sr. Systems Administrator
    Texas Children's Hospital
    2450 Holcombe Blvd.

    Houston, TX 77030
    832-824-4110

     






  • 14.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 10:55 AM
    Trying running "yum update" and see whether you are still getting the same error which you mentioned in the first thread here.

    I also see the "rpm -qa | grep python" output shows the version as 2.7.16 but the python version here shows as 2.7.10 which should not be the case.

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



  • 15.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 11:03 AM

    # yum update

    There was a problem importing one of the Python modules

    required to run yum. The error leading to this problem was:

     

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

            0509-150   Dependent module libldap.a(libldap-2.4.so.2) could not be loaded.

            0509-022 Cannot load module libldap.a(libldap-2.4.so.2).

            0509-026 System error: A file or directory in the path name does not exist.

            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.

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

     

    Please install a package which provides this module, or

    verify that the module is installed correctly.

     

    It's possible that the above module doesn't match the

    current version of Python, which is:

    2.7.16 (default, Mar 12 2019, 21:23:24)

    [GCC 6.3.0]

     

    If you cannot solve this problem yourself, please go to

    the yum faq at:

      http://yum.baseurl.org/wiki/Faq

     

    John Dimock
    Sr. Systems Administrator
    Texas Children's Hospital
    2450 Holcombe Blvd.

    Houston, TX 77030
    832-824-4110

     






  • 16.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 11:10 AM
    So the error is a different one. 
    You need to install openldap rpm.

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



  • 17.  RE: Yum update error - Symbol resolution failed

    Posted Tue August 03, 2021 11:19 AM

    Getting closer:

     

    # rpm -ivh openldap-2.4.58-1.aix6.1.ppc.rpm

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

    3004-686 Group "ldap" does not exist.

    Updating / installing...

       1:openldap-2.4.58-1                ################################# [100%]

    rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.

    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.

    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.

    root@tcucad1042:/home/jldimock/downloads/yum

    # yum update

    https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml: [Errno 14] curl#60 - "SSL certificate problem: self signed certificate in certificate chain"

    Trying other mirror.

    https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml: [Errno 14] curl#60 - "SSL certificate problem: self signed certificate in certificate chain"

    Trying other mirror.

    https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml: [Errno 14] curl#60 - "SSL certificate problem: self signed certificate in certificate chain"

    Trying other mirror.

    Setting up Update Process

    No Packages marked for Update

     

    John Dimock
    Sr. Systems Administrator
    Texas Children's Hospital
    2450 Holcombe Blvd.

    Houston, TX 77030
    832-824-4110

     






  • 18.  RE: Yum update error - Symbol resolution failed

    Posted Wed August 04, 2021 02:12 AM
    Please check whether ca-certificates rpm is installed. If not , install it.
    If already installed , try to reinstall it and check whether /var/ssl/certs have hashes (files ending with .0) created for the .crt files.

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



  • 19.  RE: Yum update error - Symbol resolution failed

    Posted Wed August 04, 2021 10:34 AM
    Thank you Ayappan, looks like the yum issue is resolved. The ca-certificates rpm required several other rpm's and created a dependency issue but I was able to manually install individual rpm's as required: 

    openldap-2.4.58-1.aix6.1.ppc.rpm
    libtasn1-4.16.0-1.aix6.1.ppc.rpm
    p11-kit-0.23.22-1.aix6.1.ppc.rpm
    p11-kit-tools-0.23.22-1.aix6.1.ppc.rpm

    Able to execute yum update successfully:
    --------------------------------------
    yum update
    ......
    ......
    Complete!
    ------------------------------------------------------------------------------------------
    And did not see the "whichfs" error message that I was seeing before.

    Again, thanks so much for your help.





    ------------------------------
    John Dimock
    ------------------------------