Open Source Development

Power Open Source Development

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


#Power


#Power
 View Only
  • 1.  libintl.a(libintl.so.8) conflict

    Posted Tue April 02, 2019 12:42 PM

    Originally posted by: janhar


    ENV:  

    rpm.rte 4.13.0.8

    cpio-2.12-2.aix6.1.ppc.rpm

     

    PROBLEM:

    # rpm2cpio host-power-tools-4.3.2-aix-7.1-powerpc.rpm | /opt/freeware/bin/cpio -idmv

    exec(): 0509-036 Cannot load program /opt/freeware/bin/cpio because of the following errors:
            0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
            0509-152   Member libintl.so.8 is not found in archive

     

    ANALYSIS:

    # ar -X32_64 -tv  /opt/freeware/lib/libintl.a.gettext | grep libin
    rwxr-xr-x   203/1     114582 Jan 04 14:38 2008 libintl.so.1
    rwxr-xr-x   203/1     130986 Jan 04 14:40 2008 libintl.so.1

     

    This is the libintl.a from rpm.rte:

    # ar -X32_64 -tv   /usr/opt/rpm/lib/libintl.a
    rwxr-xr-x     0/0      86741 Jun 02 08:56 2016 libintl.so.8
    rwxr-xr-x     0/0      94425 Jun 02 08:50 2016 libintl.so.8
    rwxr-xr-x     0/0     114582 Apr 06 13:53 2017 libintl.so.1
    rwxr-xr-x     0/0     130986 Apr 06 13:53 2017 libintl.so.1

     

    # rpm -q --whatprovides  /opt/freeware/lib/libintl.a
    gettext-0.19.8.1-1.ppc (current Toolbox version)
     

    TEMPORARY WORKAROUND:

     

    First I tried the rpm.rte LIBPATH

    # export LIBPATH=/usr/opt/rpm/lib/:$LIBPATH

     

    This did not work , so next I temporarily move the gettext libintl.a out of the way

    # mv  /opt/freeware/lib/libintl.a  /opt/freeware/lib/libintl.a.gettext

    # ln -sf  /usr/opt/rpm/lib/libintl.a  /opt/freeware/lib/libintl.a

     

    Now tried the cpio command:

    # rpm2cpio host-power-tools-4.3.2-aix-7.1-powerpc.rpm | /opt/freeware/bin/cpio -idmv

    This runs OK now

     

    Now restore the gettext libintl.a

    # unlink  /opt/freeware/lib/libintl.a
    # mv  /opt/freeware/lib/libintl.a.gettext  /opt/freeware/lib/libintl.a
     

    Is this expected behavior?  I would expect this to cause problems for many packages.  Please advise!

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: libintl.a(libintl.so.8) conflict

    Posted Wed April 03, 2019 07:26 AM

    Originally posted by: AyappanP


    This is not the expected behavior.

    This occurs only in a specific scenario where the gettext - 0.19.7-1 rpm was installed when rpm.rte 3.0.5 was there in the machine. And later the rpm.rte is upgraded and gettext rpm is also updated. 

    gettext-0.19.7-1 rpm in AIX Toolbox has a post-uninstall script which takes backup of the older libintl.a (from rpm.rte 3.0.5 which only has libintl.so.1) and during gettext upgrade, (say to gettext 0.19.8.1-1 ), the post-uninstall script of gettext-0.19.7-1 will run at the end which reverts back the saved libintl.a which creates this issue.

    We fixed this in later gettext 0.19.8.1-2 release where we remove the backed-up libintl.a , so there is no way it can replace the latest libintl.a file.

     

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: libintl.a(libintl.so.8) conflict

    Posted Thu April 04, 2019 05:40 PM

    Originally posted by: janhar


    I suspect this has been an issue for many AIX customers - I have written a Technote to help users resolve this issue:

    RPM: Dependent Module Errors for libintl.a(libintl.so.8)

    https://www-01.ibm.com/support/docview.wss?uid=ibm10880015

     

    (I just updated it to add that, if the error occurs for the rpm command, that is a different issue - so reinstall rpm.rte to latest 4.)


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  RE: Re: libintl.a(libintl.so.8) conflict

    Posted Thu January 04, 2024 12:12 AM

    Below link is not working, please help.

    https://www-01.ibm.com/support/docview.wss?uid=ibm10880015

    I'm having the same issue while trying to run "dnf update" after running the "dnf_aixtoolbox.sh" script to configure dnf on aix server.
    stedidev:/mksysb/WWork/python_3.9.18# /opt/freeware/bin/dnf update
    exec(): 0509-036 Cannot load program /opt/freeware/libexec/python3.9_32 because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.8).
            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 python3.9_32.
            0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    stedidev:/mksysb/WWork/python_3.9.18#

    Please help.



    ------------------------------
    Indika Fernando
    ------------------------------