Thanks for your response,after checking the link you have provided I have linked /opt/freeware/lib/libstdc++.a with /opt/freeware/libdnfdeps/libstdc++.a and it is working.
Can you please suggest me how to avoid these type of errors in the future.
Original Message:
Sent: Fri October 04, 2024 02:51 AM
From: SANGAMESH MALLAYYA
Subject: DNF error
Hi Subba Reddy
Since you haven't done the "dnf update" libstdcplusplus reinstall may not work.
Can you provide the output of
Please provide the output of
ls -l /opt/freeware/lib/libgcc_s.a
ls -l /opt/freeware/lib/libstdc++.a
rpm -ql libdnf | egrep "libgcc_s.a|libstdc"
Also, you can check this thread https://community.ibm.com/community/user/power/discussion/dnf-installation-failed-2?ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9
------------------------------
SANGAMESH
Original Message:
Sent: Thu October 03, 2024 11:17 PM
From: Subba Reddy Reddem
Subject: DNF error
Hi Jan,
After installing also I am getting same error.
# rpm -ivh --force libstdcplusplus10-10.3.0-6.aix7.3.ppc.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:libstdc++10-10.3.0-6 ################################# [100%]
# dnf repolist
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-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
0509-022 Cannot load module libstdc++.a(libstdc++.so.6).
0509-026 System error: A file or directory in the path name does not exist.
# echo $LIBPATH
#
------------------------------
Subba Reddy Reddem
Original Message:
Sent: Thu October 03, 2024 01:12 PM
From: Jan Harris
Subject: DNF error
I am having issues with this thread so will try responding by email. I have never used the "reply to group" option, so I hope this was not a wide distribution!!!
It seems your libstdc++.a is missing, corrupt, or overwritten.
This is the list of installed libstdc++.a files for libstdc++10-10.3.0-6.ppc
41764090 Nov 25 2021 /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/libstdc++.a
21532503 Nov 25 2021 /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/ppc64/libstdc++.a
43878052 Nov 25 2021 /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/pthread/libstdc++.a
22606209 Nov 25 2021 /opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/10/pthread/ppc64/libstdc++.a
And the symlinks:
41 May 26 20:16 /opt/freeware/lib/libstdc++.a -> gcc/powerpc-ibm-aix7.3.0.0/10/libstdc++.a
52 May 26 20:16 /opt/freeware/lib/pthread/libstdc++.a -> ../gcc/powerpc-ibm-aix7.3.0.0/10/pthread/libstdc++.a
61 May 26 20:16 /opt/freeware/lib/pthread/ppc64/libstdc++.a -> ../../gcc/powerpc-ibm-aix7.3.0.0/10/pthread/ppc64/libstdc++.a
54 May 26 20:16 /opt/freeware/lib64/libstdc++.a -> ../lib/gcc/powerpc-ibm-aix7.3.0.0/10/ppc64/libstdc++.a
It seems that rpm -Va does not detect missing or changed libstdc++.a (not sure why, but the team is looking at that...)
You could check the files with a script, like:
find /opt -name libstdc++.a | while read file; do
echo "File: $file"
provided_by=$(rpm -q --whatprovides "$file" 2>/dev/null)
printf "Provided by: %s\n" "$provided_by"
printf "Dump -Hv: "
dump -Hv -X32_64 "$file"
echo "========================================================"
done
And if the files DO exist, you would probably see non-IBM paths in the "Index 0"
BUT - I recommend that you just reinstall the package.
Install:
# rpm -ivh --force libstdcplusplus10-10.3.0-6.aix7.3.ppc.rpm
Jan Harris
SME: Globalization, Graphics, X11, Desktop, Commands/Auth
AIX Development Support Organization - IBM
O: Austin, TX 901:3i019
Ph: 1-512-286-5445 Jabber:23635445
E: janhar@us.ibm.com
Original Message:
Sent: 10/3/2024 1:23:00 AM
From: Subba Reddy Reddem
Subject: RE: DNF error
Hi Jan,
After unsetting the LIBPATH also getting the same error.
bash-5.2# echo $LIBPATH
bash-5.2# dnf repolist
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-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
0509-022 Cannot load module libstdc++.a(libstdc++.so.6).
0509-026 System error: A file or directory in the path name does not exist.
------------------------------
Subba Reddy Reddem
Original Message:
Sent: Tue October 01, 2024 09:04 AM
From: Jan Harris
Subject: DNF error
Unset your LIBPATH
See
- Get Started with the AIX Toolbox for Open Source Software
- https://www.ibm.com/support/pages/node/6585774
Setting the system LIBPATH to load other paths before /opt/freeware/lib might cause failures for AIX Toolbox applications.
If your application has explicit LIBPATH requirements, it is recommended to apply the LIBPATH to the application via a wrapper or configuration file. Setting the LIBPATH might break many AIX and AIX Toolbox applications.
Read more about AIX LIBPATH Recommendations
https://www.ibm.com/support/pages/node/7091281
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin
Original Message:
Sent: Tue October 01, 2024 12:27 AM
From: Subba Reddy Reddem
Subject: DNF error
Hi Jan,
Thanks for your reply.Please find the output.
# oslevel -s
7300-02-02-2420
# rpm -qa
tcl-8.4.7-3.ppc
expect-5.42.1-3.ppc
ncpa-2.2.1-1.ppc
tk-8.4.7-3.ppc
python3.9-3.9.16-0.ppc
python3-3.9.16-0.ppc
libzstd-1.4.4-64_2.ppc
libmodulemd-1.5.2-64_2.ppc
libsolv-0.7.9-64_4.ppc
libsmartcols-2.34-64_1.ppc
zchunk-libs-1.1.4-64_3.ppc
librepo-1.11.0-64_2.ppc
python3.9-gpg-1.13.1-64_3.ppc
rpm-python3.9-4.15.1-64_4.ppc
rpm-python3-4.15.1-64_4.ppc
libdnf-0.39.1-64_5.ppc
python3.9-libdnf-0.39.1-64_5.ppc
python3.9-hawkey-0.39.1-64_5.ppc
python3.9-librepo-1.11.0-64_2.ppc
p11-kit-0.23.22-0.ppc
p11-kit-tools-0.23.22-0.ppc
libcomps-0.1.15-64_1.ppc
python3.9-libcomps-0.1.15-64_1.ppc
dnf-data-4.2.17-64_6.noarch
python3.9-dnf-4.2.17-64_6.noarch
python3-dnf-4.2.17-64_6.noarch
dnf-4.2.17-64_6.noarch
dnf-automatic-4.2.17-64_6.noarch
python3-libcomps-0.1.15-64_1.ppc
ca-certificates-2023.2.60-0.ppc
python3-librepo-1.11.0-64_2.ppc
python3-hawkey-0.39.1-64_5.ppc
python3-libdnf-0.39.1-64_5.ppc
python3-gpg-1.13.1-64_3.ppc
gc-guest-agent-5.49.24046.703-2b3925ddec.ppc
sudo-1.9.15-6.ppc
libgcc10-10.3.0-6.ppc
libstdc++10-10.3.0-6.ppc
zlib-1.2.13-1.ppc
AIX-rpm-7.3.2.3-8.ppc
# echo $LIBPATH
/opt/CA/SharedComponents/lib:/opt/CA/CAlib:/opt/CA/UnicenterDSM/caf/lib
#
------------------------------
Subba Reddy Reddem
Original Message:
Sent: Mon September 30, 2024 11:02 AM
From: Jan Harris
Subject: DNF error
1) What is your oslevel?
2) rpm -qa
3) echo $LIBPATH
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin
Original Message:
Sent: Mon September 30, 2024 04:19 AM
From: Subba Reddy Reddem
Subject: DNF error
Hi Team,
I am getting the following error when trying to do dnf install.
dnf repolist
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-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
0509-022 Cannot load module libstdc++.a(libstdc++.so.6).
0509-026 System error: A file or directory in the path name does not exist.
------------------------------
Subba Reddy Reddem
------------------------------