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.  Not able to run dnf update command in AIX 7.3 - HZN

    Posted 6 days ago

    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
    ------------------------------


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

    Posted 3 days ago

    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 3 days ago

    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 2 days ago

    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 2 days ago

    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
    ------------------------------