Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Not able to run dnf update command in AIX 7.3 - HZN

    Posted Sun July 06, 2025 05:12 AM

    Hi Team,

    I am not able to run dnf update command. Getting following error. Kindly help.

    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, 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/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-130 Symbol resolution failed for /opt/freeware/lib64/libglib-2.0.a[libglib-2.0.so.0] because:
            0509-136   Symbol _GLOBAL__AIXI_libatomic_so (number 215) is not exported from
                       dependent module /usr/lib/libatomic.a[libatomic.so.1].
            0509-136   Symbol _GLOBAL__AIXD_libatomic_so (number 216) is not exported from
                       dependent module /usr/lib/libatomic.a[libatomic.so.1].
            0509-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.



    ------------------------------
    Manoj Kumar
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Not able to run dnf update command in AIX 7.3 - HZN

    Posted Tue July 08, 2025 08:58 AM

    Hi,

    Can you use /opt/freeware/lib/libatomic.a[libatomic.so.1] instead of /usr/lib/libatomic.a[libatomic.so.1]?

    Try with export LIBPATH=/opt/freeware/lib

    And then try dnf update



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 3.  RE: Not able to run dnf update command in AIX 7.3 - HZN

    Posted Wed July 09, 2025 06:08 AM

    We tried but still same error.

    root@:/# export LIBPATH=/opt/freeware/lib
    root@:/# dnf update
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, 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/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-130 Symbol resolution failed for /opt/freeware/lib/libglib-2.0.a[libglib-2.0.so.0] because:
            0509-136   Symbol _GLOBAL__AIXI_libatomic_so (number 215) is not exported from
                       dependent module /usr/lib/libatomic.a[libatomic.so.1].
            0509-136   Symbol _GLOBAL__AIXD_libatomic_so (number 216) is not exported from
                       dependent module /usr/lib/libatomic.a[libatomic.so.1].
            0509-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Not able to run dnf update command in AIX 7.3 - HZN

    Posted Wed July 09, 2025 08:34 AM

    Hi,

    What is the output of  rpm -qa | grep libgcc

    It should be something along  <libgcc-version.ppc>

    In my case it is libgcc13-13.3.0-1.ppc. Then check if rpm -ql libgcc13-13.3.0-1.ppc | grep atomi 

    Check if libatomic.a exists here. This the libatomic we need to use. 

    So in my case I have it /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/13/libatomic.a

    So I will export LIBPATH=/opt/freeware/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/13/

    Can you check what is happening in your LPAR and why it is not picking gcc compiled libatomic library based on the information I have given.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 5.  RE: Not able to run dnf update command in AIX 7.3 - HZN

    Posted Wed July 09, 2025 12:53 PM

    Thank you, after running  command "export LIBPATH=/opt/freeware/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/" I am able to update and run the dnf command.

    Thanks for the help and guidance.



    ------------------------------
    Manoj Kumar
    ------------------------------