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.  DNF failed to run on AIX 7.2.

    Posted Fri March 11, 2022 05:22 AM
    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
    ------------------------------

    Attachment(s)

    log
    rpm -qa.log   1 KB 1 version
    log
    dnf list all.log   1 KB 1 version
    txt
    dnf_error.txt   6 KB 1 version


  • 2.  RE: DNF failed to run on AIX 7.2.

    Posted Fri March 11, 2022 10:37 AM
    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
    ------------------------------



  • 3.  RE: DNF failed to run on AIX 7.2.

    Posted Fri March 11, 2022 11:04 AM
    Hi Sangamesh,

    Thank you so much for your reply.
    I will remove libgcc-4.8.5 and install libgcc-8.3.0 or higher version and will update the result on this thread.

    Chawaron Toochinda

    ------------------------------
    Chawaron TOOCHINDA
    ------------------------------



  • 4.  RE: DNF failed to run on AIX 7.2.

    Posted Mon March 14, 2022 02:22 AM
    Hi Sangamesh,

    We tried to remove libgcc-4.8.5 but it has some dependencies with it.
    Can we have both libgcc-4.8.5 and libgcc-8.3.0 installed together?

    Thank you.

    Chawaron Toochinda

    ------------------------------
    Chawaron TOOCHINDA
    ------------------------------



  • 5.  RE: DNF failed to run on AIX 7.2.

    Posted Mon March 14, 2022 03:07 AM
    Hi Sangamesh,

    It shows the following dependencies.

    root@efsesb-ap1-d1:[/opt/freeware/bin]# rpm -qR libgcc-4.8.5-1
    AIX-rpm >= 7.2.0.0
    AIX-rpm < 7.3.0.0
    libc.a(shr.o)
    libgcc_s.a(shr.o)
    libpthreads.a(shr_xpg5.o)
    root@efsesb-ap1-d1:[/opt/freeware/bin]#
    root@efsesb-ap1-d1:[/opt/freeware/bin]# rpm -e libgcc-4.8.5-1
    error: Failed dependencies:
    libgcc is needed by (installed) libstdc++-4.8.5-1.ppc
    root@efsesb-ap1-d1:[/opt/freeware/bin]#

    Thank you.


    ------------------------------
    Chawaron TOOCHINDA
    ------------------------------



  • 6.  RE: DNF failed to run on AIX 7.2.

    Posted Mon March 14, 2022 03:52 AM
    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
    ------------------------------



  • 7.  RE: DNF failed to run on AIX 7.2.

    Posted Mon March 14, 2022 07:55 AM
    Hi Chawaron,

    The gcc10 won't update the default libgcc and libstdc++.
    For AIX 7.2 the default gcc is still the gcc8.
    So, you  need to install libgcc8 and libstdc++8 along with it's meta package.
    Here is the list of packages you need to install
    libgcc-8-1.aix7.2.ppc.rpm libstdcplusplus-8-1.aix7.2.ppc.rpm
    libgcc8-8.3.0-6.aix7.2.ppc.rpm libstdcplusplus8-8.3.0-6.aix7.2.ppc.rpm

    And you can download these from
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/gcc8/
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/gcc/

    Regarding App Connect dependency.
    Is it expecting that libc++.a would be part of libgcc6 and abover versions.
    I don't see libc++.a is part of libgcc & libstdc++ or any other gcc package.


    ------------------------------
    SANGAMESH
    ------------------------------



  • 8.  RE: DNF failed to run on AIX 7.2.

    Posted Tue March 15, 2022 04:50 AM
    Hi Sangamesh,

    We installed the following packages as you suggested:

    libgcc-8-1.aix7.2.ppc.rpm
    libstdcplusplus-8-1.aix7.2.ppc.rpm
    libgcc8-8.3.0-6.aix7.2.ppc.rpm
    libstdcplusplus8-8.3.0-6.aix7.2.ppc.rpm

    Then I can run dnf command successfully.

    Regarding your question about App Connect dependency.
    "Is it expecting that libc++.a would be part of libgcc6 and abover versions.
    I don't see libc++.a is part of libgcc & libstdc++ or any other gcc package."

    Yes, you're correct. I find it is indeed came from libc++.rte from AIX package and I need to install it too.

    Now I can run dnf command successfully and can also create a broker from IBM ACE V12.

    I really appreciate your help in this issue.
    Thank you so much

    ------------------------------
    Chawaron TOOCHINDA
    ------------------------------