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.  AIX 7.3 dnf libintl.a libiconv.a issue

    Posted 3 days ago

    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
    ------------------------------


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

    Posted 2 days ago

    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 2 days ago

    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 2 days ago


    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 2 days ago

    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 2 days ago

    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 2 days ago


    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 2 days ago

    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
    ------------------------------