AIX

 View Only
  • 1.  AIX 7.2 DNF Dependency Issue

    Posted Fri February 17, 2023 05:17 PM

    Hi Team, I need assistance getting dnf up & running. I have downloaded and installed the latest dnf_aixtoolbox.sh script and installed it successfully. Executing dnf results in the following:

    AIXADVNYC10>root>/tmp/rpms>>dnf list
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python3_32 because of the following errors:
    rtld: 0712-001 Symbol _GLOBAL__AIXI_libexpat_so was referenced
          from module python3_32(), but a runtime definition
          of the symbol was not found.
    rtld: 0712-001 Symbol _GLOBAL__AIXD_libexpat_so was referenced
          from module python3_32(), but a runtime definition
          of the symbol was not found.
    AIXADVNYC10>root>/tmp/rpms>>

    My main goal is to be able to install and/or update libstdc and libgcc packages (for a customer) while avoiding dependency issues. I've spent several days reading articles regarding this issue and similar issues and have to admit that all my efforts to resolve this have failed thus far. I am not really clear if this is package issue, PATH issue or python issue. I will post some details below. I am suspecting that either the expat package needs to get updated or python may not be properly linked.  I have tried with LIBPATH set and unset.  I understand that my AIX machine may contain a mix of AIX Toolbox and non-toolbox packages.  I have updated to the latest rpm-rte fileset (rpm.rte.4.15.1.1006).  I did inherit this machine from another team.  Any advice is greatly appreciated.  I'm happy to provide any more details needed.

    Oslevel = 7200-05-03-2135

    AIXADVNYC10>root>/tmp/rpms>>ll /usr/bin/python
    lrwxrwxrwx    1 root     system           29 Apr 11 2022  /usr/bin/python -> ../../opt/freeware/bin/python
    AIXADVNYC10>root>/tmp/rpms>>ll /opt/freeware/bin/python
    lrwxrwxrwx    1 root     system            7 Apr 11 2022  /opt/freeware/bin/python -> python2
    AIXADVNYC10>root>/tmp/rpms>>

    AIXADVNYC10>root>/tmp/rpms>>ll /opt/freeware/bin|grep -i python
    -rwxr-xr-x    1 root     system       173308 May 31 2021  python2.7_64
    -rw-r--r--    1 root     system         1693 May 31 2021  python2.7_64-config
    -rwxr-xr-x    1 root     system       170357 May 31 2021  python2.7
    -rwxr-xr-x    1 root     system         1690 May 31 2021  python2.7-config
    -rwxr-xr-x    1 root     system       493079 Dec 15 2021  python3.7m_64
    -rwxr-xr-x    1 root     system       477917 Dec 15 2021  python3.7m_32
    lrwxrwxrwx    1 root     system            7 Apr 11 2022  python -> python2
    lrwxrwxrwx    1 root     system           14 Apr 11 2022  python-config -> python2-config
    lrwxrwxrwx    1 root     system            9 Apr 11 2022  python2 -> python2.7
    lrwxrwxrwx    1 root     system           16 Apr 11 2022  python2-config -> python2.7-config
    lrwxrwxrwx    1 root     system           12 Apr 11 2022  python2_64 -> python2.7_64
    lrwxrwxrwx    1 root     system           19 Apr 11 2022  python2_64-config -> python2.7_64-config
    lrwxrwxrwx    1 root     system           10 Apr 11 2022  python_64 -> python2_64
    lrwxrwxrwx    1 root     system           17 Apr 11 2022  python_64-config -> python2_64-config
    lrwxrwxrwx    1 root     system           10 Apr 11 2022  python3 -> python3_64
    lrwxrwxrwx    1 root     system           12 Apr 11 2022  python3.7 -> python3.7_64
    lrwxrwxrwx    1 root     system           13 Apr 11 2022  python3.7_32 -> python3.7m_32
    lrwxrwxrwx    1 root     system           13 Apr 11 2022  python3.7_64 -> python3.7m_64
    lrwxrwxrwx    1 root     system           13 Apr 11 2022  python3.7m -> python3.7m_64
    lrwxrwxrwx    1 root     system           12 Apr 11 2022  python3_32 -> python3.7_32
    lrwxrwxrwx    1 root     system           12 Apr 11 2022  python3_64 -> python3.7_64
    AIXADVNYC10>root>/tmp/rpms>>

    AIXADVNYC10>root>/tmp/rpms>>echo $LIBPATH

    AIXADVNYC10>root>/tmp/rpms>>

    AIXADVNYC10>root>/tmp/rpms>>rpm -qa|grep -i expat
    expat-2.2.4-1.ppc
    expat-devel-2.4.4-1.ppc
    AIXADVNYC10>root>/tmp/rpms>>ll
    total 302808
    -rw-r--r--    1 root     system       300311 Dec 29 13:02 expat-devel-2.4.9-1.aix7.1.ppc.rpm
    -rw-r--r--    1 root     system      1011738 Dec 29 13:03 expat-2.4.9-1.aix7.1.ppc.rpm
    -rw-r--r--    1 root     system       997108 Dec 29 13:05 libgcc8-8.3.0-6.aix7.2.ppc.rpm
    -rwxr--r--    1 root     system         7204 Dec 29 13:46 dnf_aixtoolbox.sh
    -rw-r--r--    1 root     system     22591248 Dec 29 14:01 python-2.7.18-4.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system     28114944 Dec 29 14:03 python3-3.7.15-2.aix7.1.ppc.rpm
    -rw-r--r--    1 root     system     59867262 Dec 29 14:15 python3.9-3.9.6-1.aix7.1.ppc.rpm
    -rwxr--r--    1 root     system           29 Feb 17 11:38 installp_rpm_rte.sh
    -rw-r--r--    1 root     system     42088448 Feb 17 11:40 rpm.rte.4.15.1.1006
    -rw-r--r--    1 root     system         8327 Feb 17 11:40 .toc
    -rwxr--r--    1 root     system         8525 Feb 17 14:22 dnf_aixtoolbox2.sh
    AIXADVNYC10>root>/tmp/rpms>>rpm -e expat-2.2.4-1.ppc
    error: Failed dependencies:
            expat is needed by (installed) fontconfig-2.11.95-3.ppc
            libexpat.a(libexpat.so.1) is needed by (installed) expat-devel-2.4.4-1.ppc
            libexpat.a(libexpat.so.1) is needed by (installed) python-2.7.18-3.ppc
            libexpat.a(libexpat.so.1) is needed by (installed) python3-3.7.12-1.ppc
            libexpat.a(libexpat.so.1) is needed by (installed) fontconfig-2.11.95-3.ppc
    AIXADVNYC10>root>/tmp/rpms>>

    -rw-r--r--    1 root     system     42088448 Feb 17 11:40 rpm.rte.4.15.1.1006



    ------------------------------
    Steven Ochs
    ------------------------------


  • 2.  RE: AIX 7.2 DNF Dependency Issue

    Posted Tue February 21, 2023 09:11 AM

    Hi,

    Not an expert here and never tried to do that, but issues that could be worth investigating...

    The error seems to be from trying to execute python 3 32bit. 
    "Cannot load program /opt/freeware/bin/python3_32"
    Firstly I'd really want to use python 64 bit which does appear to be installed.

    But more significantly, it looks like /usr/bin/python is linked to python 2
      lrwxrwxrwx    1 root     system            7 Apr 11 2022  /opt/freeware/bin/python -> python2

    You might try fixing that and pointing it at where ever python3.7m_32 is installed (or better python3.7m_64 if that will work)

    Executing python -V should tell you when you have that sorted.  Not saying that is going to resolve your problem but it's a good start.  Make sure you record all your changes so you can back them out if needed.

    Good luck.



    ------------------------------
    Daryl Bickley
    ------------------------------



  • 3.  RE: AIX 7.2 DNF Dependency Issue

    Posted Wed February 22, 2023 07:24 AM

    Looks like the expat rpm installed in the machine may not be from Toolbox. Can you share the below outputs ?
    rpm -qi expat 
    dump -Tov /opt/freeware/lib/libexpat.a | grep AIX

    Also we have a separate forum to discuss Opensource issues in AIX --> https://community.ibm.com/community/user/power/communities/community-home?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9



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



  • 4.  RE: AIX 7.2 DNF Dependency Issue

    Posted Wed February 22, 2023 02:46 PM

    Thanks for the reply.  Here is the requested output.  And let me know if I should repost this issue at the Opensource link you provided.

    AIXADVNYC10>root>/tmp>>rpm -qi expat
    Name        : expat
    Version     : 2.2.4
    Release     : 1
    Architecture: ppc
    Install Date: Mon Apr 11 18:07:12 CDT 2022
    Group       : System Environment/Libraries
    Size        : 1906871
    License     : MIT
    Signature   : (none)
    Source RPM  : expat-2.2.4-1.src.rpm
    Build Date  : Thu Apr 12 04:38:53 CDT 2018
    Build Host  : pokndd10.pok.stglabs.ibm.com
    URL         : http://www.libexpat.org/
    Summary     : An XML parser library
    Description :
    This is expat, the C library for parsing XML, written by James Clark. Expat
    is a stream oriented XML parser. This means that you register handlers with
    the parser prior to starting the parse. These handlers are called when the
    parser discovers the associated structures in the document being parsed. A
    start tag is an example of the kind of structures for which you may
    register handlers.

    The library is available as 32-bit and 64-bit.
    AIXADVNYC10>root>/tmp>>dump -Tov /opt/freeware/lib/libexpat.a | grep AIX
    AIXADVNYC10>root>/tmp>>



    ------------------------------
    Steven Ochs
    ------------------------------



  • 5.  RE: AIX 7.2 DNF Dependency Issue

    Posted Thu February 23, 2023 03:02 AM

    expat 2.2.4 is pretty old and built using xlc, So it won't have those reported missing symbols. 
    Please install the recent expat version 2.5.0 from Toolbox and try again. 



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