AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Operatingsystems
#Servers
#AIX
#AIX
#AIX
#AIX
#AppPerformanceManagement
 View Only
Expand all | Collapse all

AIX 7.1 Installation of Python3 Symbol Resolution Issue

  • 1.  AIX 7.1 Installation of Python3 Symbol Resolution Issue

    Posted Tue July 25, 2023 01:05 PM

    I'm trying to install and run Python 3.9 on one of our AIX Operating Systems.

    I used yum to install Python 3.9.

    '''

    Current OS Level:
    root@our_AIX_host:/opt/freeware/libexec > oslevel -s
    7100-05-11-2246

    '''

    Initially, there were some unresolved pathing issues that I had to rectify by adding to PATH and LIBPATH.

    '''

    root@our_AIX_host:/opt/freeware/libexec > echo $LIBPATH
    /usr/lib:/usr/local/lib:/opt/freeware/lib64

    root@our_AIX_host:/opt/freeware/libexec > echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/usr/local/bin:/erac/sysadmin/roster/bin:/usr/local/bin:/etc/emc/bin:/opt/LicenseUseManagement/bin:/opt/freeware/bin

    '''

    When I try to run python3:

    '''

    root@our_AIX_host:/opt/freeware/libexec > python3
    exec(): 0509-036 Cannot load program python3 because of the following errors:
            0509-130 Symbol resolution failed for /usr/lib/libpython3.9.a[libpython3.9.so] because:
            0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 284) is not exported from
                       dependent module /usr/lib/libintl.a[libintl.so.8].
            0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 285) is not exported from
                       dependent module /usr/lib/libintl.a[libintl.so.8].
            0509-026 System error: Error 0
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    '''

    After learning that dnf was the successor to yum, I installed dnf using 'dnf_aixtoolbox.sh'. Any attempt to run dnf results in the below:

    '''

    root@our_AIX_host:/opt/freeware/libexec > dnf
    exec(): 0509-036 Cannot load program /opt/freeware/libexec/python3.9_32 because of the following errors:
            0509-130 Symbol resolution failed for /usr/lib/libpython3.9.a(libpython3.9.so) because:
            0509-136   Symbol _GLOBAL__AIXI_libintl_so (number 281) is not exported from
                       dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
            0509-136   Symbol _GLOBAL__AIXD_libintl_so (number 282) is not exported from
                       dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
            0509-026 System error: Error 0
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    '''

    I did run the below, and frankly I don't understand how to troubleshoot the output from here. I recognize that 'libintl.so.8' is a commonality between the above two outputs, but I don't understand what exactly it
    's trying to tell me.

    '''

    root@our_AIX_host:/opt/freeware/libexec > dump -Tv -X32_64 python3

    '''

    I'm providing the final 10 lines of the output of the above command since there are ~1700 lines total. I can provide more if requested:

    '''
    [1670]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) _Py_Sigset_Converter
    [1671]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) _PyErr_CheckSignals
    [1672]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) PyErr_SetInterrupt
    [1673]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) PyOS_InitInterrupts
    [1674]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) PyOS_InterruptOccurred
    [1675]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) _PyOS_IsMainThread
    [1676]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) PyTraceMalloc_Track
    [1677]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) PyTraceMalloc_Untrack
    [1678]  0x00000000    undef   ImpExp     DS EXTref libpython3.9.a(libpython3.9.so) _PyTraceMalloc_GetTraceback
    [1679]  0x00000000    undef      IMP     DS EXTref libintl.a(libintl.so.8) _GLOBAL__AIXI_libintl_so
    [1680]  0x00000000    undef      IMP     DS EXTref libintl.a(libintl.so.8) _GLOBAL__AIXD_libintl_so
    [1681]  0x20000ff8    .data    ENTpt     DS SECdef        [noIMid] __start
    '''

    Thank you in advance for your assistance.



    ------------------------------
    Jesse Coffey
    ------------------------------


  • 2.  RE: AIX 7.1 Installation of Python3 Symbol Resolution Issue

    Posted Tue July 25, 2023 01:44 PM
    Hi

    Please confirm you are running rpm.rte 4.15

    [ / ]lslpp -l rpm.rte
      Fileset                      Level  State      Description
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      rpm.rte                   4.15.1.3  COMMITTED  RPM Package Manager

    Path: /etc/objrepos
      rpm.rte                   4.15.1.3  COMMITTED  RPM Package Manager

    and then please run the following command:

    [ / ]lslpp -f rpm.rte | grep -i upd
                            /usr/sbin/updtvpkg


    HTH