Original Message:
Sent: Wed July 09, 2025 08:33 AM
From: Aditya Kamath
Subject: Not able to run dnf update command in AIX 7.3 - HZN
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
Original Message:
Sent: Wed July 09, 2025 06:08 AM
From: Manoj Kumar
Subject: Not able to run dnf update command in AIX 7.3 - HZN
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
Original Message:
Sent: Tue July 08, 2025 08:58 AM
From: Aditya Kamath
Subject: Not able to run dnf update command in AIX 7.3 - HZN
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
Original Message:
Sent: Sun July 06, 2025 05:11 AM
From: Manoj Kumar
Subject: Not able to run dnf update command in AIX 7.3 - HZN
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
------------------------------