Thanks Jan for the help. We implement the steps as you suggested in first step export path and it fix the issue. Really appreciate the support.
Original Message:
Sent: Wed December 27, 2023 12:35 PM
From: Jan Harris
Subject: Getting dump -Tv error when trying to update python3 with dnf
I did some more testing. I checked libgcc-4.8.5-1.aix7.2.ppc.rpm from the Toolbox, and it did not have Symbol _GLOBAL__AIXD_shr_o exported symbols either. But this is more than 7 years old.
It looks like libdnf-0.39.1-32_3.ppc delivers the following libraries:
/opt/freeware/libdnfdeps/libgcc_s.a
/opt/freeware/libdnfdeps/libstdc++.a
And if these do not exist:
- /opt/freeware/lib/pthread/libgcc_s.a
- /opt/freeware/lib/libgcc_s.a
- /opt/freeware/lib/libstdc++.a
Then the package will create a symlink so basic DNF can run.
- /opt/freeware/lib/libstdc++.a -> /opt/freeware/libdnfdeps/libstdc++.a
- /opt/freeware/lib/libgcc_s.a-> /opt/freeware/libdnfdeps/libgcc_s.a
- /opt/freeware/lib/pthread/libgcc_s.a> /opt/freeware/libdnfdeps/libgcc_s.a
So first you can try this:
# export LIBPATH=/opt/freeware/libdnfdeps:$LIBPATH; dnf update;unset LIBPATH
I tested this, and it worked for me.
If that does not work, you can try to update to the lowest version that does have the exported symbols:
I chose 6.3 with my 72 system and could run DNF with this version.
# rpm -ivh libgcc-6.3.0-2.aix7.2.ppc.rpm
Another option would be to relink the files to the temporary libdnf versions
ln -sf /opt/freeware/libdnfdeps/libgcc_s.a /opt/freeware/lib/pthread/libgcc_s.a
ln -sf /opt/freeware/libdnfdeps/libgcc_s.a /opt/freeware/lib/libgcc_s.a
But I do not think you will need to do that. The LIBPATH should work.
Once the dnf update runs successfully, then libdnf-0.39.1-32_3.ppc is updated to a newer version that no longer provides this libgcc.a
# rpm -q --whatprovides /opt/freeware/lib/libgcc_s.a;rpm -q --whatprovides /opt/freeware/lib/pthread/libgcc_s.a
libgcc-10-2.ppc
libgcc-10-2.ppc
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin TX
Original Message:
Sent: Wed December 27, 2023 11:10 AM
From: Manoj Kumar
Subject: Getting dump -Tv error when trying to update python3 with dnf
Thanks Jan for the update.
How can we fix this issue now? Shall we clean up and installed the DNF in fresh way or is there any there alternative to remove the problematic packages manually.
------------------------------
Manoj Kumar
Original Message:
Sent: Wed December 27, 2023 10:56 AM
From: Jan Harris
Subject: Getting dump -Tv error when trying to update python3 with dnf
You have libgcc-4.8.3-1.ppc
I do not even see this as an available version on the AIX toolbox archives.
I only found that version on
http://www.oss4aix.org/download/RPMS/gcc/
And of course, if I install that version, I get the same errors.
Maybe you had this before you installed the basic DNF packages, and the installer saw libgcc and continued to install DNF basic.
But since this is not an AIX libgcc.a, it is missing the symbols.
You can see when this was installed with:
rpm -q libgcc --last
If you have other non-Toolbox packages, they might cause similar issues.
I do not see the following versions on the AIX Toolbox, so if these are from non-AIX sources, they might also cause issues.
- libgcc-4.8.3-1.ppc l
- ibiconv-1.15-1.ppc
- popt-1.16-2.ppc
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
Original Message:
Sent: Wed December 27, 2023 06:37 AM
From: Manoj Kumar
Subject: Getting dump -Tv error when trying to update python3 with dnf
Hello Team,
Do we have any further update on it?
------------------------------
Manoj Kumar
Original Message:
Sent: Mon December 11, 2023 06:23 AM
From: Manoj Kumar
Subject: Getting dump -Tv error when trying to update python3 with dnf
Hello Jan/Team,
Do we have any further update on it?
------------------------------
Manoj Kumar
Original Message:
Sent: Tue November 21, 2023 10:10 AM
From: Manoj Kumar
Subject: Getting dump -Tv error when trying to update python3 with dnf
Please find the below output.
root@:/# rpm -qa
expect-5.42.1-3.ppc
tcl-8.4.7-3.ppc
unzip-6.0-2.ppc
libiconv-1.15-1.ppc
popt-1.16-2.ppc
python3-3.9.16-0.ppc
libmodulemd-1.5.2-32_2.ppc
rpm-python3.9-4.15.1-32_2.ppc
zchunk-libs-1.1.4-32_2.ppc
libdnf-0.39.1-32_3.ppc
python3.9-hawkey-0.39.1-32_3.ppc
python3.9-librepo-1.11.0-32_2.ppc
p11-kit-tools-0.23.22-0.ppc
python3.9-libcomps-0.1.15-32_1.ppc
python3.9-dnf-4.2.17-32_4.noarch
dnf-4.2.17-32_4.noarch
python3-libcomps-0.1.15-32_1.ppc
python3-librepo-1.11.0-32_2.ppc
python3-hawkey-0.39.1-32_3.ppc
rpm-python3-4.15.1-32_2.ppc
AIX-rpm-7.1.5.33-10.ppc
sudo-1.7.10p7-1.ppc
tk-8.4.7-3.ppc
zlib-1.2.8-1.ppc
gettext-0.17-1.ppc
libgcc-4.8.3-1.ppc
rsync_64-3.1.1-1.ppc
python3.9-3.9.16-0.ppc
libzstd-1.4.4-32_1.ppc
libsolv-0.7.9-32_3.ppc
libsmartcols-2.34-32_1.ppc
librepo-1.11.0-32_2.ppc
python3.9-libdnf-0.39.1-32_3.ppc
python3.9-gpg-1.13.1-32_3.ppc
p11-kit-0.23.22-0.ppc
libcomps-0.1.15-32_1.ppc
dnf-data-4.2.17-32_4.noarch
python3-dnf-4.2.17-32_4.noarch
dnf-automatic-4.2.17-32_4.noarch
ca-certificates-2023.2.60-0.ppc
python3-gpg-1.13.1-32_3.ppc
python3-libdnf-0.39.1-32_3.ppc
gc-guest-agent-5.48.23134.27452-962545569b.ppc
axon-agent-3.20.1.3073-1.ppc
------------------------------
Manoj Kumar
Original Message:
Sent: Tue November 21, 2023 09:24 AM
From: Jan Harris
Subject: Getting dump -Tv error when trying to update python3 with dnf
What is output of:
rpm -qa
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin TX
Original Message:
Sent: Mon November 20, 2023 07:11 AM
From: Manoj Kumar
Subject: Getting dump -Tv error when trying to update python3 with dnf
Hi Team,
We are trying to update the python3 with dnf but getting following error. could you please help.
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-130 Symbol resolution failed for /opt/freeware/lib/libstdc++.a(libstdc++.so.6) because:
0509-136 Symbol _GLOBAL__AIXI_shr_o (number 4) is not exported from
dependent module /opt/freeware/lib/pthread/libgcc_s.a(shr.o).
0509-136 Symbol _GLOBAL__AIXD_shr_o (number 5) is not exported from
dependent module /opt/freeware/lib/pthread/libgcc_s.a(shr.o).
0509-022 Cannot load module /opt/freeware/lib/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
------------------------------