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 program zip: /usr/lib/libbz2.a (libbz2.so.1).

    Posted Thu January 19, 2023 11:38 AM

    Application team is getting python working with gcc, but I found this error in the meantime, which may mean something else related to libgcc may need fixing: 
    zip -r temp.zip python_user_pkgs/

    Could not load program zip:

    Could not load module /usr/lib/libbz2.a(libbz2.so.1).

            Dependent module /usr/lib/libgcc_s.a(shr.o) could not be loaded.

            The module has an invalid magic number.

    Could not load module zip.

            Dependent module /usr/lib/libbz2.a(libbz2.so.1) could not be loaded.
    >>>>>>>
    Below rpm's are installed.

     / # rpm -qa| grep zip
    unzip-6.0-2.ppc
    gzip-1.5-1.ppc
    zip-3.0-1.ppc
    bzip2-1.0.8-2.ppc
    / # rpm -qa| grep libgcc
    libgcc-10-2.ppc
    libgcc8-8.3.0-6.ppc
    libgcc10-10.3.0-6.ppc
    / # rpm -qa| grep libbz
    #
     # which zip
    /usr/bin/zip


     



    ------------------------------
    Amina Hassan
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Could not load program zip: /usr/lib/libbz2.a (libbz2.so.1).

    Posted Fri January 20, 2023 03:38 PM
    I need help to determine what is missing. Has anyone run in to this before?

    ------------------------------
    Amina Hassan
    ------------------------------



  • 3.  RE: Could not load program zip: /usr/lib/libbz2.a (libbz2.so.1).

    Posted Mon January 23, 2023 12:06 PM
    Sounds like your box needs updating with dnf.

    I have an AIX 7.3 system with that latest fixpack and dnf updates from the OSS ISO IBM provides. It has /usr/lib/libbz2.a as a symlink to /opt/freeware/lib/libbz2.a and that archive file has a single member of libbz2.so.1. That archive file is provided by bzip2-1.0.8-2.ppc.

    # ar t /opt/freeware/lib/libbz2.a
    libbz2.so.1


    It does not have a /usr/lib/libgcc_s.a which makes me think you have some outdated software there. I have zip-3.0-4.ppc installed and it works correctly.


    ------------------------------
    Mario Stargard
    ------------------------------



  • 4.  RE: Could not load program zip: /usr/lib/libbz2.a (libbz2.so.1).

    Posted Tue January 24, 2023 02:06 PM
    Thank you Mario.

    Updating below fixed the issue.

    [root@ / # rpm -qa| grep zip
    zip-3.0-4.ppc
    gzip-1.12-2.ppc
    bzip2-1.0.8-2.ppc
    unzip-6.0-3.ppc

    ------------------------------
    Amina Hassan
    ------------------------------