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.  Need to install ncat on AIX server through IBM AIX Toolkits

    Posted Wed February 19, 2025 04:41 AM

    Hi,

    I installed dnf package and configured dnf repolist and downloaded IBM toolkits.

    I am trying to install ncat through dnf but I am getting below error, could anyone please help me to fix the issue.

    # rpm -qa | grep -i dnf-
    libdnf-0.39.1-32_3.ppc
    python3.9-dnf-4.2.17-32_4.noarch
    dnf-4.2.17-32_4.noarch
    python3.9-libdnf-0.39.1-32_3.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
    python3-libdnf-0.39.1-32_3.ppc

    # ls -lrt /opt/freeware/bin/dnf
    lrwxrwxrwx    1 root     system            5 Feb 17 09:10 /opt/freeware/bin/dnf -> dnf-3

    # /opt/freeware/bin/dnf repolist 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.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 __cxa_finalize (number 1) is not exported from
                       dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
            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-136   Symbol __cxa_atexit (number 19) is not exported from
                       dependent module /opt/freeware/lib/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.


      



    ------------------------------
    Kamlesh Kumar
    ------------------------------


  • 2.  RE: Need to install ncat on AIX server through IBM AIX Toolkits

    Posted Wed February 19, 2025 08:54 AM
    Edited by Ranjit Ranjan Wed February 19, 2025 08:54 AM

    Hi
    Can you run below and share the output. Also share the whole list of installed rpm.

    # dump -X32_64 -Tov /opt/freeware/lib/libgcc_s.a  | grep -i _GLOBAL__AIXI_shr_o
    [12]    0x200001c0    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXI_shr_o
    [12]    0x200002e8    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXI_shr_o


    # rpm -qf /opt/freeware/lib/libgcc_s.a
    libgcc-10-2.ppc



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 3.  RE: Need to install ncat on AIX server through IBM AIX Toolkits

    Posted Wed February 19, 2025 09:38 AM

    Hello Ranjit,

    Please find the details as required.
     
    % dump -X32_64 -Tov /opt/freeware/lib/libgcc_s.a  | grep -i _GLOBAL__AIXI_shr_o

    % ls -ld /opt/freeware/lib/libgcc_s.a
    lrwxrwxrwx    1 root     system           43 Jan 17 06:31 /opt/freeware/lib/libgcc_s.a -> gcc/powerpc-ibm-aix6.1.0.0/4.7.2/libgcc_s.a

    % rpm -qf /opt/freeware/lib/libgcc_s.a
    libgcc-4.7.2-1.ppc

    %  rpm -qa
    bash-4.3-8.ppc
    cvs-1.11.17-3.ppc
    gzip-1.2.4a-10.ppc
    less-382-1.ppc
    libstdc++-4.2.0-3.ppc
    screen-3.9.10-2.ppc
    tk-8.4.7-3.ppc
    python-2.7.10-1.ppc
    zabbix-agent-7.0.0-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
    bash-doc-3.2-1.ppc
    expect-5.42.1-3.ppc
    hexedit-1.2.2-1.ppc
    libgcc-4.7.2-1.ppc
    tcl-8.4.7-3.ppc
    zlib-1.2.3-4.ppc
    gdbm-1.8.3-5.ppc
    AIX-rpm-7.2.5.208-27.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
    %


     

    Thanks and Regards,

    Kamlesh Kumar

    UNIX Support – Maersk APMM Account

    Email: kamlesh.kumar@kyndryl.com

    Mobile: +91 9899 996 462

     

     






  • 4.  RE: Need to install ncat on AIX server through IBM AIX Toolkits

    Posted Thu February 20, 2025 04:54 AM

    Since you have very old version libgcc link already, some of the required soft links are not created.

    As workaround you can run dnf update as " LIBPATH=/opt/freeware/libdnfdeps:/opt/freeware/lib:usr/lib:/lib dnf update"

    This will update libgcc & libstdc++ to latest version and soft link also.

    Once after dnf update then you can run dnf without using the LIBPATH.



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