Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Could not load module libgcc_s.a(shr.o).

    Posted Thu June 04, 2020 02:27 AM
    I want to install zip-3.0-4.aix6.1.ppc.rpm but due to the dependencies i installed below 3 packages and it was successfull 
    libgcc-8.3.0-2.aix7.1.ppc.rpm
    zip-3.0-4.aix6.1.ppc.rpm
    bzip2-1.0.8-2.aix6.1.ppc.rpm

    when I tried uninstall

    EZLDCMDBS001:/tmp/PKZIP#rpm -e zip-3.0-4.ppc
    EZLDCMDBS001:/tmp/PKZIP#rpm -e bzip2-1.0.8-2.ppc
    error: Failed dependencies:
    bzip2 is needed by (installed) AIX-rpm-7.1.5.30-2.ppc
    EZLDCMDBS001:/tmp/PKZIP#rpm -qa | grep -i libgcc
    libgcc-8.3.0-2.ppc
    EZLDCMDBS001:/tmp/PKZIP#rpm -e libgcc-8.3.0-2.ppc
    error: Failed dependencies:
    libgcc >= 6.3.0-2 is needed by (installed) bzip2-1.0.8-2.ppc
    EZLDCMDBS001:/tmp/PKZIP#rpm -qa | grep -i zip
    unzip-6.0-3.ppc
    bzip2-1.0.8-2.ppc
    EZLDCMDBS001:/tmp/PKZIP#rpm -qa | grep -i libgcc
    libgcc-8.3.0-2.ppc

    failing with dependencies. 
    hence I issued below 

    from there rpm command being failed with below error. 

    EZLDCMDBS001:/tmp/PKZIP#rpm -e libgcc-8.3.0-2.ppc
    error: Failed dependencies:
    libgcc >= 6.3.0-2 is needed by (installed) bzip2-1.0.8-2.ppc
    EZLDCMDBS001:/tmp/PKZIP#rpm -e libgcc-8.3.0-2.ppc --nodeps
    Could not load program /usr/opt/freeware/bin/rpm:
    Could not load module /opt/freeware/lib/libbz2.a(libbz2.so.1).
    Dependent module libgcc_s.a(shr.o) could not be loaded.
    Could not load module libgcc_s.a(shr.o).
    System error: No such file or directory
    Could not load module rpm.
    Dependent module /opt/freeware/lib/libbz2.a(libbz2.so.1) could not be loaded.
    Could not load module .
    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
    EZLDCMDBS001:/tmp/PKZIP#rpm -qa | grep -i -e "zip" -e "libgcc"
    Could not load program /usr/opt/freeware/bin/rpm:
    Could not load module /opt/freeware/lib/libbz2.a(libbz2.so.1).
    Dependent module libgcc_s.a(shr.o) could not be loaded.
    Could not load module libgcc_s.a(shr.o).
    System error: No such file or directory
    Could not load module rpm.
    Dependent module /opt/freeware/lib/libbz2.a(libbz2.so.1) could not be loaded.
    Could not load module .
    EZLDCMDBS001:/tmp/PKZIP#rpm -qa | grep zip
    Could not load program /usr/opt/freeware/bin/rpm:



    Please help

    ------------------------------
    Chalapathi
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Could not load module libgcc_s.a(shr.o).

    Posted Thu June 04, 2020 02:49 AM
    Looks like you have older rpm.rte fileset. Suggest you to install the latest fileset rpm.rte 4.13.0.10 from https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/
    This will fix the issue.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Could not load module libgcc_s.a(shr.o).

    Posted Thu June 04, 2020 10:17 PM
    Issue fixed after directly installed the rpm.rte. 

    Another question on the same. 
    I was trying to install zip-3.0-4.ppc.rpm. It was asked install its dependency bzip2-1.0.8-2.ppc.rpm.
    (Please note this in the server already have  bzip2-1.0.6 and  bzip2-1.0.6 was needed by (installed) AIX-rpm-7.1.5.30-2.ppc). 
    so I downloaded and tried to install  bzip2-1.0.8-2.ppc.rpm. Again dependency error bzip2-1.0.8-2.ppc.rpm needs libgcc-8.3.0-2.ppc.rpm.
    Now. the sequence of the installation uninstallation was
    1 .libgcc-8.3.0-2.ppc.rpm
    2. bzip2-1.0.8-2.ppc.rpm (Here I understand rpm -I bzip2-1.0.8-2.ppc.rpm command updated the existing  bzip2-1.0.6 to  bzip2-1.0.8  )
    3.zip-3.0-4.ppc.rpm

    What is rollback (uninstall these 3 packages.)? I tried this
    1. rpm -e zip-3.0-4.ppc -- successfully removed this. 
    2. rpm -e libgcc-8.3.0-2.ppc.rpm 
    error: Failed dependencies:
    libgcc >= 6.3.0-2 is needed by (installed) bzip2-1.0.8-2.ppc
    then I tried below 
    rpm -e bzip2-1.0.8-2.ppc
    error: Failed dependencies:
    bzip2 is needed by (installed) AIX-rpm-7.1.5.30-2.ppc
    AIX-rpm-7.1.5.30-2.ppc -- this is already installed in the system so I don't want to uninstall this  AIX-rpm-7.1.5.30-2.ppc. 
    then how to remove libgcc-8.3.0-2.ppc.rpm ?


    ------------------------------
    MSI DBA Team
    ------------------------------



  • 4.  RE: Could not load module libgcc_s.a(shr.o).

    Posted Thu June 04, 2020 06:22 AM
    rpm.rte versions till 4.13.0.3(AIX-rpm virtual package) doesn't allow removing some of the packages bzip2 which are required to run rpm command.
    We changed this behavior from 4.13.0.4 in which you can remove the packages like bzip2,gettext etc.
    https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/README_rpm.rte.4.13.0.10

    Before updating rpm.rte to latest version i would recommend to fix the rpm command loading issue first.
    To fix this, better to reinstall the existing version first and then update to the latest one.

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