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.  I just successfully installed dnf. but dnf update fails

    Posted Fri December 22, 2023 11:59 AM

    root@lp102:/# dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib/libdnf.a(libdnf.so.2).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            0509-152   Member libcrypto.so.1.1 is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            0509-150   Dependent module /opt/freeware/lib/libdnf.a(libdnf.so.2) could not be loaded.



    ------------------------------
    Michael Sly
    ------------------------------


  • 2.  RE: I just successfully installed dnf. but dnf update fails

    Posted Fri December 22, 2023 03:53 PM

    Michael

    Check

    rpm -q openssl

    It looks like you have a non-AIX openssl package installed in /opt/freeware/lib

    The AIX Toolbox packages are built against the AIX openssl.base file set libraries.

    On my 72 system:

    # ldd /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so | grep -i crypto
             /usr/lib/libcrypt.a(shr.o)
             /usr/lib/libcrypto.a(libcrypto.so.1.1)
             /opt/freeware/lib/libk5crypto.a(libk5crypto.so)
             /opt/freeware/lib/libk5crypto.so

    See the November 23 2023 section in What's New page:
    NOTE: You should remove any non-AIX openssl packages that deliver related libraries to /opt/freeware/lib. These files conflicts with rpm. These files have caused issues for some packages for some time, but certainly cause rpm failures now, due to missing libcrypto.so.3
    If you have non-AIX openssl packages installed, you can move this file out of the path, then use rpm -e to remove the package.

    mv /opt/freeware/lib/libcrypto.a /opt/freeware/lib/libcrypto.a.old
    rpm -qa | grep openssl
    rpm -e <the name of the package>





    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 3.  RE: I just successfully installed dnf. but dnf update fails

    Posted Tue January 02, 2024 03:25 PM

    I did have a non openssl.base rpm installed (came along with wget), but I removed it and I'm still getting the same error:

    xxx:/aix_backup/scripts/instri_clone# rpm -q openssl
    package openssl is not installed
    xxx:/aix_backup/scripts/instri_clone# lslpp -L|grep -i openssl
      openssl.base            1.1.1.1201    C     F    Open Secure Socket Layer
      openssl.license         1.1.1.1201    C     F    Open Secure Socket License
    xxx:/aix_backup/scripts/instri_clone# dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0).
            0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
            0509-152   Member libintl.so.8 is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            0509-150   Dependent module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0) could not be loaded.



    ------------------------------
    Michael Sly
    ------------------------------



  • 4.  RE: I just successfully installed dnf. but dnf update fails

    Posted Wed January 03, 2024 01:05 PM

    It looks like you might have non-AIX Toolbox /opt/freeware/lib/libintl.a.

    On my 72 system:

    # rpm -q --whatprovides "libintl.a(libintl.so.8)"
    gettext-0.21-2.ppc
    AIX-rpm-7.2.5.200-2.ppc

    So I have this in the rpm.rte provided /usr/opt/rpm/lib/libintl.a as well as the /opt/freeware/lib/libintl.a from gettext.

    # ar -tv  /usr/opt/rpm/lib/libintl.a; ar -tv /opt/freeware/lib/libintl.a
    rwxr-xr-x     0/0      93072 May 28 04:38 2022 libintl.so.8
    rw-r-----     0/0     114582 May 28 04:52 2022 libintl.so.1
    rwxr-xr-x   203/1      74754 Oct 20 05:39 2022 libintl.so.8
    rwxr-xr-x   203/1     114582 Oct 20 05:45 2022 libintl.so.1



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 5.  RE: I just successfully installed dnf. but dnf update fails

    Posted Thu January 04, 2024 09:05 AM

    Here's what that command shows on my system:

    rpm -q --whatprovides "libintl.a(libintl.so.8)"
    AIX-rpm-7.2.5.101-13.ppc



    ------------------------------
    Michael Sly
    ------------------------------



  • 6.  RE: I just successfully installed dnf. but dnf update fails

    Posted Thu January 04, 2024 10:32 AM

    Right - we already know you don't have libintl.a(libintl.so.8) in the /opt/freeware/lib path - that is why this error occurs:

       0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
            0509-152   Member libintl.so.8 is not found in archive

    so whatever provided /opt/freeware/lib/libintl.a is not compatible with the AIX Toolbox DNF.

    You probably have a non-Toolbox gettext package. 

    As noted on the Get Started with the AIX Toolbox for Open Source Software page:

    • Non-AIX Toolbox packages that deliver files available in AIX file sets or AIX Toolbox packages might result in unexpected behavior. It is recommended to remove those non-AIX Toolbox packages.
      • Some common packages include openssl, gcc, db, and libiconv.

    You can check all your packages with: 

    # rpm -qai  | egrep "Name|Install Date|Build Date|Build Host"

    If you do not see IBM build hosts

    For example:

    Build Host  : aixoss2-lp3.pok.stglabs.ibm.com

    You should consider reinstalling those packages.



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 7.  RE: I just successfully installed dnf. but dnf update fails

    Posted Thu January 04, 2024 02:03 PM
    So based on the below output I need to remove and re-install everything except for bzip2, gettext mtools and librepo?


    rpm -qai  | egrep "Name|Install Date|Build Date|Build Host"
    Name        : info
    Install Date: Sat Dec 12 22:44:00 CST 2015
    Build Date  : Wed Dec  4 11:34:38 CST 2013
    Build Host  : aix51.perzl.org
    Name        : libidn
    Install Date: Sat Dec 12 22:44:01 CST 2015
    Build Date  : Sun Aug  2 14:55:25 CDT 2015
    Build Host  : aix51.perzl.org
    Summary     : Internationalized Domain Name support library
    Names (IDN) working group, used for internationalized domain
    Name        : readline
    Install Date: Sat Dec 12 22:44:17 CST 2015
    Build Date  : Fri Aug 15 09:43:23 CDT 2014
    Build Host  : aix51.perzl.org
    Name        : gpe-agent-comm
    Name        : gdbm
    Install Date: Sat Dec 12 22:43:59 CST 2015
    Build Date  : Sun Dec 29 16:14:44 CST 2013
    Build Host  : aix51.perzl.org
    Name        : gzip
    Install Date: Sat Dec 12 22:44:00 CST 2015
    Build Date  : Wed Apr  3 18:50:31 CDT 2013
    Build Host  : aix51.perzl.org
    Name        : libiconv
    Install Date: Sat Dec 12 22:44:01 CST 2015
    Build Date  : Wed May 16 15:53:39 CDT 2012
    Build Host  : aix51
    Name        : perl
    Install Date: Sat Dec 12 22:44:17 CST 2015
    Build Date  : Thu Jan 14 14:34:33 CST 2010
    Build Host  : aix51.perzl.org
    Name        : bzip2
    Install Date: Sat Dec 12 22:43:59 CST 2015
    Build Date  : Thu Nov 18 23:58:30 CST 2010
    Build Host  : dennis01.in.ibm.com
    Name        : unzip
    Install Date: Thu Apr 11 10:02:44 CDT 2013
    Build Date  : Thu Feb  2 03:55:05 CST 2012
    Build Host  : tbx3.coopibm.frec.bull.fr
    Name        : gettext
    Install Date: Sat Dec 12 22:43:59 CST 2015
    Build Date  : Fri Jan  4 14:41:20 CST 2008
    Build Host  : delrio.austin.ibm.com
    Name        : pcre
    Install Date: Sat Dec 12 22:44:04 CST 2015
    Build Date  : Fri Jul 24 05:47:16 CDT 2015
    Build Host  : aix51.perzl.org
    Name        : zlib
    Install Date: Sat Dec 12 22:44:18 CST 2015
    Build Date  : Tue Oct  9 05:17:59 CDT 2012
    Build Host  : aix51.perzl.org
    Name        : mtools
    Install Date: Thu Feb 27 11:13:52 CST 2003
    Build Date  : Thu Sep  6 16:08:52 CDT 2001
    Build Host  : emperor.austin.ibm.com
    Name        : libgcc
    Install Date: Sat Dec 12 22:44:00 CST 2015
    Build Date  : Sat Aug 23 05:41:51 CDT 2014
    Build Host  : aix71.perzl.org
    Name        : bash
    Install Date: Sat Dec 12 22:43:58 CST 2015
    Build Date  : Sun Aug 16 05:16:52 CDT 2015
    Build Host  : aix51.perzl.org
    Name        : librepo
    Install Date: Fri Dec 22 10:45:15 CST 2023
    Build Date  : Thu Apr  6 14:01:38 CDT 2023
    Build Host  : aixoss2-lp2.pok.stglabs.ibm.com


    Thanks,

        Mike





  • 8.  RE: I just successfully installed dnf. but dnf update fails

    Posted Thu January 04, 2024 02:22 PM

    The  "ibm" ones you have listed are all *really *old.  I would remove them as well



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------