Hi Sangamesh,We can finally remove libstdc++-4.8.5-1 and libgcc-4.8.5-1 successfully.
Then we installed libgcc10-10.3.0-6 and libstdcplusplus10-10.3.0-6 as follows:
rpm -Uvh libgcc10-10.3.0-6.aix7.2.ppc.rpm
rpm -Uvh libstdcplusplus10-10.3.0-6.aix7.2.ppc.rpm
The problem still exists when tried to run dnf command.
###################################################################
root@efsesb-ap1-d1:[/opt/freeware/bin]# export LIBPATH=/opt/freeware/lib:/opt/freeware/lib64:/usr/lib:/usr/lib64
root@efsesb-ap1-d1:[/opt/freeware/bin]# echo $LIBPATH
/opt/freeware/lib:/opt/freeware/lib64:/usr/lib:/usr/lib64
root@efsesb-ap1-d1:[/opt/freeware/bin]# dnf list all
Traceback (most recent call last):
File "dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
import dnf.base
File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6).
0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
0509-022 Cannot load module libgcc_s.a(shr.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
0509-150 Dependent module /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6) could not be loaded.
root@efsesb-ap1-d1:[/opt/freeware/bin]# cd /opt/freeware/libdnfdeps/
root@efsesb-ap1-d1:[/opt/freeware/libdnfdeps]# ls libstdc++.a
libstdc++.a
root@efsesb-ap1-d1:[/opt/freeware/libdnfdeps]# cd /opt/freeware/lib/python3.7/site-packages/libdnf
root@efsesb-ap1-d1:[/opt/freeware/lib/python3.7/site-packages/libdnf]# ls _common_types.so
_common_types.so
root@efsesb-ap1-d1:[/opt/freeware/lib/python3.7/site-packages/libdnf]# cd /opt/freeware/libdnfdeps/
root@efsesb-ap1-d1:[/opt/freeware/libdnfdeps]# ls libstdc++.a
libstdc++.a
root@efsesb-ap1-d1:[/opt/freeware/libdnfdeps]# rpm -qa | grep gcc
libgcc10-10.3.0-6.ppc
root@efsesb-ap1-d1:[/opt/freeware/libdnfdeps]# rpm -qa | grep libstd
libstdc++10-10.3.0-6.ppc
root@efsesb-ap1-d1:[/opt/freeware/libdnfdeps]#
###################################################################
The main objective is to install gcc6 (or above) to meet the minimum requirement of IBM App Connect Enterprise v12.
We have the problem when we run ACE command because we don't have gcc6 (or above) installed yet.
mqsicreatebroker acebndevbk -q acebndevqm -e /mqha/IIB/acebndevbk
exec(): 0509-036 Cannot load program mqsicreatebroker because of the following errors:
0509-150 Dependent module libc++.a(cxxabi_64.o) could not be loaded.
0509-022 Cannot load module libc++.a(cxxabi_64.o).
0509-026 System error: A file or directory in the path name does not exist.
I tried to install gcc10 but it has so many dependencies needed to be installed first.
So I want to use dnf configured to use AIX Toolbox repository entry to install gcc10.
Could you please help on this issue?
Thank you so much. ------------------------------
Chawaron TOOCHINDA
------------------------------
Original Message:
Sent: Fri March 11, 2022 10:36 AM
From: SANGAMESH MALLAYYA
Subject: DNF failed to run on AIX 7.2.
Hi Chawaron,
You have very old version of libgcc.
Is their any other rpm package is dependent on libgcc-4.8.5 or it can be removed ?
Most of our toolbox packages have dependency on libgcc-8.3.0 and higher version.
------------------------------
SANGAMESH
Original Message:
Sent: Fri March 11, 2022 04:34 AM
From: Chawaron TOOCHINDA
Subject: DNF failed to run on AIX 7.2.
Hello AIX Open Source Team,
I run ./dnf_aixtoolbox.sh -y to install required packages on AX 7.2.
The results are in dnf_aixtoolbox_installation.log
After the installation finished, I cannot run dnf command, it shows the following errors:
dnf list all
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
import dnf.base
File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-130 Symbol resolution failed for /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6) because:
0509-136 Symbol _GLOBAL__AIXI_shr_o (number 4) is not exported from
dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
0509-136 Symbol _GLOBAL__AIXD_shr_o (number 5) is not exported from
dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
0509-022 Cannot load module /opt/freeware/lib/python3.7/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.
Please see dnf list all.log and dnf_error.txt for more details.
Could you please help recommend on the solution to this problem?Thank you so much.
Chawaron Toochinda
------------------------------
Chawaron Toochinda
IBM
------------------------------