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
Expand all | Collapse all

Cannot load program /usr/opt/freeware/bin/rpm

  • 1.  Cannot load program /usr/opt/freeware/bin/rpm

    Posted Fri October 23, 2020 01:27 AM
    Hi,

    Can you advise on the error below? Thanks!

    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libbz2.a(libbz2.so.1) because:
    0509-136 Symbol _GLOBAL__AIXI_shr_o (number 2) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-136 Symbol _GLOBAL__AIXD_shr_o (number 3) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    Our installation script could no longer use command rpm after installing bzip2-1.0.8-2 and removing bzip2-1.0.6-1. The script aims to install python3 with the --nodeps, but would actually attempt to install all python3 dependecies modules prior to installing python3.

    Relevant excerpt of install logs:

    2020-10-08 14:31:57: Versions of the following packages tagged as dependency error before python 3 installation:
    AIX-rpm-7.2.3.15-2.ppc
    libgcc-4.8.5-1.ppc
    2020-10-08 14:31:57: Ignoring known dependency error. Installing Python 3 using --nodeps ...
    Preparing... ########################################
    package zlib-1.2.11-1.ppc is already installed
    package libffi-20170516-1.ppc (which is newer than libffi-3.2.1-3.ppc) is already installed
    Installing bzip2
    Preparing... ########################################
    Updating / installing...
    bzip2-1.0.8-2 ########################################
    Cleaning up / removing...
    bzip2-1.0.6-1 ########################################
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libbz2.a(libbz2.so.1) because:
    0509-136 Symbol _GLOBAL__AIXI_shr_o (number 2) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-136 Symbol _GLOBAL__AIXD_shr_o (number 3) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.
    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.
    Installing expat
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libbz2.a(libbz2.so.1) because:
    0509-136 Symbol _GLOBAL__AIXI_shr_o (number 2) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-136 Symbol _GLOBAL__AIXD_shr_o (number 3) is not exported from
    dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    ------------------------------
    Ivan Castro
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Fri October 23, 2020 02:12 AM
    You need to update libgcc. 

    # rpm -qR bzip2-1.0.8-2.ppc
    /bin/sh
    libbz2.a(libbz2.so.1)
    libc.a(shr.o)
    libc.a(shr_64.o)
    libgcc >= 6.3.0-2
    libgcc_s.a(shr.o)
    rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1

    The issue here is nothing but the consequence of using "--nodeps" option. Using "--nodeps" is dangerous and it is expected to create these kind of issues.

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



  • 3.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Fri October 23, 2020 02:22 AM
    Hi Ayappan P,

    How do you suggest I update libgcc with current issue regarding broken rpm command?

    Thanks

    ------------------------------
    Ivan Castro
    ------------------------------



  • 4.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Fri October 23, 2020 02:33 AM
    I would suggest you to update rpm.rte fileset itself to more recent version ( >= 4.13.0.4 ).

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



  • 5.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Fri October 23, 2020 02:50 AM
    Hi,

    Current version is 4.13.0.3. This fileset was installed together with the OS if I'm not mistaken. Would there be an issue if it is updated separately?
    $ lslpp -L | grep rpm.rte
    rpm.rte 4.13.0.3 C F RPM Package Manager

    Thanks

    ------------------------------
    Ivan Castro
    ------------------------------



  • 6.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Fri October 23, 2020 02:55 AM
    You can get the latest version from here --> https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/

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



  • 7.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Mon October 26, 2020 08:12 PM
    Hi Ayappan P,

    Would re-installing the current version of my rpm.rte(4.13.0.3) more suitable if I just wanted to make rpm usable again?

    Thanks

    ------------------------------
    Ivan Castro
    ------------------------------



  • 8.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Tue October 27, 2020 02:34 AM
    I would recommend to use the latest rpm.rte. From rpm.rte >= 4.13.0.4 , the files are shipped in a separate path (/usr/opt/rpm) which won't conflict with the files from rpms from Toolbox/bullfreeware/perzl.

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



  • 9.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Wed October 28, 2020 02:03 AM
    Hi Ayappan P,

    Does updating rpm.rte from 4.13.0.3 to later version have an impact to all my existing rpm packages installed?

    Thanks

    ------------------------------
    Ivan Castro
    ------------------------------



  • 10.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Wed October 28, 2020 02:15 AM
    No, there won't be any impact.

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



  • 11.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Wed October 28, 2020 02:32 AM
    Hi Ayappan P,

    Can I get your thoughts here? I'm trying to install python3-3.7.6

    I've already downloaded most if not all the necessary dependencies when I first tried installing rpm -Uvh python3-3.7.6

    bash-4.3$ oslevel
    7.2.0.0
    bash-4.3$ lslpp -L rpm.rte
    Fileset Level State Type Description (Uninstaller)
    ----------------------------------------------------------------------------
    rpm.rte 4.13.0.3 C F RPM Package Manager

    bash-4.3$ ls -l
    total 229760
    -rw-r--r-- 243981 Jul 14 15:49 bzip2-1.0.8-2.aix6.1.ppc.rpm
    -rw-r--r-- 820585 Jul 14 15:49 expat-2.2.9-1.aix6.1.ppc.rpm
    -rw-r--r-- 284219 Jul 14 15:49 gdbm-1.18.1-1.aix6.1.ppc.rpm
    -rw-r--r-- 7931098 Jul 14 15:49 gettext-0.19.8.1-5.aix6.1.ppc.rpm
    -rw-r--r-- 29735947 Jul 14 15:49 glib2-2.56.1-2.aix6.1.ppc.rpm
    -rw-r--r-- 680361 Jul 14 15:49 info-6.6-2.aix6.1.ppc.rpm
    -rw-r--r-- 48312 Jul 14 15:49 libffi-3.2.1-3.aix6.1.ppc.rpm
    -rw-r--r-- 1000479 Oct 28 13:33 libgcc-8.3.0-2.aix7.2.ppc.rpm
    -rw-r--r-- 1669115 Jul 14 15:49 libiconv-1.16-1.aix6.1.ppc.rpm
    -rw-r--r-- 12734559 Oct 28 13:32 libstdcplusplus-8.3.0-2.aix7.2.ppc.rpm
    -rw-r--r-- 1522049 Jul 14 15:49 libunistring-0.9.9-2.aix6.1.ppc.rpm
    -rw-r--r-- 5659903 Jul 14 15:49 libxml2-2.9.9-1.aix6.1.ppc.rpm
    -rw-r--r-- 3668731 Jul 14 15:49 ncurses-6.2-1.aix6.1.ppc.rpm
    -rw-r--r-- 40329593 Jul 14 15:49 python3-3.7.6-1.aix6.1.ppc.rpm
    -rw-r--r-- 2525190 Jul 14 15:49 readline-8.0-2.aix6.1.ppc.rpm
    -rw-r--r-- 191887 Oct 28 13:43 readline-devel-8.0-2.aix6.1.ppc.rpm
    -rw-r--r-- 7822627 Jul 14 15:49 sqlite-3.28.0-1.aix6.1.ppc.rpm
    -rw-r--r-- 552574 Jul 14 15:49 xz-libs-5.2.5-1.aix6.1.ppc.rpm
    -rw-r--r-- 178381 Jul 14 15:49 zlib-1.2.11-1.aix6.1.ppc.rpm


    bash-4.3$ rpm -Uvh *.rpm --test
    error: Failed dependencies:
    libgcc = 4.8.3-1 is needed by (installed) gcc-4.8.3-1.ppc

    bash-4.3$ rpm -qa | grep gcc
    libgcc-4.8.3-1.ppc
    gcc-cpp-4.8.3-1.ppc
    gcc-4.8.3-1.ppc

    Thanks

    ------------------------------
    Ivan Castro
    ------------------------------



  • 12.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Wed October 28, 2020 04:10 AM
    Since you have gcc & gcc-cpp also installed, you need to update that also together.

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



  • 13.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Wed October 28, 2020 08:14 PM

    After including updated RPMs for gcc and gcc-cpp, it now says:

    error: Failed dependencies:
    gmp >= 6.1.2 is needed by gcc-cpp-8.3.0-2.ppc
    libmpc >= 1.1.0 is needed by gcc-cpp-8.3.0-2.ppc
    libmpfr.a(libmpfr.so.6) is needed by gcc-cpp-8.3.0-2.ppc
    mpfr >= 4.0.2 is needed by gcc-cpp-8.3.0-2.ppc
    So basically I would just have to update existing rpm that would be flagged as dependencies and all underlying dependencies?

    Thanks



    ------------------------------
    Ivan Castro
    ------------------------------



  • 14.  RE: Cannot load program /usr/opt/freeware/bin/rpm

    Posted Thu October 29, 2020 02:55 AM
    Yes, that's right.

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