Open Source Development

Power Open Source Development

Connect, learn, share, and engage with IBM Power.


#Power


#Power
 View Only
  • 1.  AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Tue July 22, 2025 09:26 AM

    Hello,

    on 7300-03-00-2446 we succesfully install dnf_bundle_aix_73.tar but:

    # /opt/freeware/bin/dnf update
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python3.9 because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).
            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-153   File /opt/freeware/lib/libiconv.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.

    $LIBPATH is not set anywhere i think. 

    Let me know how to troubleshoot this.



    ------------------------------
    NBG UnixSystemsSupport
    ------------------------------

    #AIXOpenSource


  • 2.  RE: AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Wed July 23, 2025 01:42 AM

    Hi,

    Could you please export LIBPATH=/opt/freeware/lib/ and try.

    If it's not working, Please share me the output of below commands.
    ar -X32_64 -tv /opt/freeware/lib/libiconv.a

    ar -X32_64 -tv /opt/freeware/lib/libintl.a

    Thanks,



    ------------------------------
    Parth Patel
    ------------------------------



  • 3.  RE: AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Wed July 23, 2025 02:34 AM

    Hello,

    no exporting LIBPATH didn't make any difference.

    # ar -X32_64 -tv /opt/freeware/lib/libiconv.a
    ar: Error 0
    ar: 0707-106 Internal error while reading the fixed
            header of archive file /opt/freeware/lib/libiconv.a.
    # ar -X32_64 -tv /opt/freeware/lib/libintl.a
    rwxr-xr-x   203/1      74754 Oct 20 13:39 2022 libintl.so.8
    rwxr-xr-x   203/1      81819 Oct 20 13:45 2022 libintl.so.8
    rwxr-xr-x   203/1     114582 Oct 20 13:45 2022 libintl.so.1
    rwxr-xr-x   203/1     130986 Oct 20 13:45 2022 libintl.so.1



    ------------------------------
    NBG UnixSystemsSupport
    ------------------------------



  • 4.  RE: AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Wed July 23, 2025 02:57 AM


    Please share me the output of " rpm -qf /opt/freeware/lib/libiconv.a"
    If this libiconv.a file is not present in your system then download libiconv package from AIX Toolbox and install it.

    wget https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/libiconv/libiconv-1.17-1.aix7.1.ppc.rpm
    rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm
    Then try "dnf update"




    ------------------------------
    Parth Patel
    ------------------------------



  • 5.  RE: AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Wed July 23, 2025 03:03 AM

    Hi Parth

    unfortunatelly no luck.

    # rpm -qf /opt/freeware/lib/libiconv.a
    exec(): 0509-036 Cannot load program /usr/bin/ksh93 because of the following errors:
            0509-150   Dependent module /opt/freeware/lib/libiconv.a(shr4_64.o) could not be loaded.
            0509-153   File /opt/freeware/lib/libiconv.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.

     # rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm
    exec(): 0509-036 Cannot load program /usr/bin/ksh93 because of the following errors:
            0509-150   Dependent module /opt/freeware/lib/libiconv.a(shr4_64.o) could not be loaded.
            0509-153   File /opt/freeware/lib/libiconv.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.



    ------------------------------
    NBG UnixSystemsSupport
    ------------------------------



  • 6.  RE: AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Wed July 23, 2025 03:05 AM

    Im not sure maybe exported LIBPATH had something to do so i unset it and saw libiconv is already installed: 

    # rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm
    warning: libiconv-1.17-1.aix7.1.ppc.rpm: Header V4 RSA/SHA256 Signature, key ID 41eea8e0: NOKEY
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
            package libiconv-1.17-1.ppc is already installed
    # /opt/freeware/bin/dnf update
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python3.9 because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).
            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-153   File /opt/freeware/lib/libiconv.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.
    # rpm -qf /opt/freeware/lib/libiconv.a
    libiconv-1.17-1.ppc



    ------------------------------
    NBG UnixSystemsSupport
    ------------------------------



  • 7.  RE: AIX 7.3 dnf libintl.a libiconv.a issue
    Best Answer

    Posted Wed July 23, 2025 03:25 AM


    Remove libiconv-1.17-1.ppc package from your system (rpm -e --nodeps libiconv-1.17-1.ppc)
    And installed it freshly (rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm)

    If that doesn't work. Please run below command.
    rpm -e "rpm -qa|grep -v AIX-rpm"
    "./dnf_aixtoolbox.sh -d"
    dnf update



    ------------------------------
    Parth Patel
    ------------------------------



  • 8.  RE: AIX 7.3 dnf libintl.a libiconv.a issue

    Posted Wed July 23, 2025 03:31 AM

    yes uninstalling with no deps did work and now dnf runs as expected.

    thank you very much

    # rpm -e --nodeps libiconv-1.17-1.ppc
    # rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm
    warning: libiconv-1.17-1.aix7.1.ppc.rpm: Header V4 RSA/SHA256 Signature, key ID 41eea8e0: NOKEY
    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libiconv-1.17-1                  ################################# [100%]
    add shr4.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
    add shr.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
    add shr4_64.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a



    ------------------------------
    NBG UnixSystemsSupport
    ------------------------------