Problems with the rpm command

Hi folks,

I have a problem with command rpm, I'm running the command and appears this error:

server:/tmp/python# uname -rv

2 5
server:/tmp/python# rpm -i python-2.3.4-2.aix5.1.ppc.rpm

exec(): 0509-036 Cannot load program /opt/freeware/bin/rpm because of the following errors:
        0509-130 Symbol resolution failed for /opt/freeware/lib/librpmbuild.so because:
        0509-136   Symbol __fd_select (number 29) is not exported from
                   dependent module /usr/lib/libc.a(shr.o).
        0509-150   Dependent module librpmbuild.so could not be loaded.
        0509-026 System error: Cannot run a file that does not have a valid format.
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.
server:/tmp/python#

Which may be the problem?

Regards.

It would seem that /opt/freeware/bin/rpm is linked with a version of the shared library /opt/freeware/lib/librpmbuild.so that is incompatible with the version of the statically linked /usr/lib/libc.a on your system. It is expecting at least one symbol ( __fd_select ) to be defined in the object file shr.o included in that library, but it was not found.

1 Like

Thanks for your support, but I'm beginner in the AIX, what can I do in this case ?

server:/tmp/python# ls -ld /opt/freeware/lib/librpmbuild.so*
lrwxrwxrwx   1 root     system           20 Jul 29 16:02 /opt/freeware/lib/librpmbuild.so -> librpmbuild.so.0.0.0
lrwxrwxrwx   1 root     system           20 Jul 29 16:02 /opt/freeware/lib/librpmbuild.so.0 -> librpmbuild.so.0.0.0
-rwxr-xr-x   1 root     system       200900 Mar 04 2015  /opt/freeware/lib/librpmbuild.so.0.0.0
server:/tmp/python# ls -ld /usr/lib/librpmbuild.so*
lrwxrwxrwx   1 root     system           42 Jan 12 2006  /usr/lib/librpmbuild.so -> /usr/opt/freeware/lib/librpmbuild.so.0.0.0
lrwxrwxrwx   1 root     system           42 Jan 12 2006  /usr/lib/librpmbuild.so.0 -> /usr/opt/freeware/lib/librpmbuild.so.0.0.0
lrwxrwxrwx   1 root     system           42 Jan 12 2006  /usr/lib/librpmbuild.so.0.0.0 -> /usr/opt/freeware/lib/librpmbuild.so.0.0.0
server:/tmp/python# 

Regards.

it seems that you have too old AIX and too new RPM. Can you show the output of lslpp -L rpm.rte ?

1 Like

Thanks for your support, the output is below:

server:/tmp/python# lslpp -L rpm.rte
exec(): 0509-036 Cannot load program /opt/freeware/bin/rpm because of the following errors:
        0509-130 Symbol resolution failed for /opt/freeware/lib/librpmbuild.so because:
        0509-136   Symbol __fd_select (number 29) is not exported from
                   dependent module /usr/lib/libc.a(shr.o).
        0509-150   Dependent module librpmbuild.so could not be loaded.
        0509-026 System error: Cannot run a file that does not have a valid format.
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  rpm.rte                   3.0.5.53    C     F    RPM Package Manager


State codes:
 A -- Applied.
 B -- Broken.
 C -- Committed.
 E -- EFIX Locked.
 O -- Obsolete.  (partially migrated to newer version)
 ? -- Inconsistent State...Run lppchk -v.

Type codes:
 F -- Installp Fileset
 P -- Product
 C -- Component
 T -- Feature
 R -- RPM Package
server:/tmp/python#

Regards.

I don't see 3.0.5.53 under official IBM RPM versions:
IBM Fileset information for: rpm.rte - United States

I personally have 3.0.5.39 on my AIX 5.2 box, but it may be because I have 5.2 ML9 and not ML10. But even on my newest boxes I have only 3.0.5.52. Where did you get your version?

---------- Post updated at 11:04 AM ---------- Previous update was at 10:46 AM ----------

I've found rpm.rte 3.0.5.53 and made some tests on AIX 5.2. It seems that the last working RPM version for AIX 5.2 is 3.0.5.51.

Link to download - ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte.3.0.5.51

After download execute the following command on the server as root:

# installp -acFXYd rpm.rte.3.0.5.51 all

This command should downgrade your RPM to 3.0.5.51 and make it usable.

1 Like

Hi agent.kgb,

It's working fine now :b::

server:/tmp/python# installp -acFXYd rpm.rte.3.0.5.51 all
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  rpm.rte 3.0.5.51                            # RPM Package Manager

  << End of Success Section >>

FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        rpm.rte 3.0.5.51


. . . . . << Copyright notice for rpm.rte >> . . . . . . .
 Licensed Materials - Property of IBM

 5765H4000
   Copyright International Business Machines Corp. 2000, 2010.
   Copyright Regents of the University of California 1990, 1993, 1994, 1995.
   Copyright Jean-loup Gailly and Mark Adler, 1995 - 1998.
   Copyright The President and Fellows of Harvard University 1995, 1996.
   Copyright Julian R Seward, 1996 - 2000
   Copyright Sleepycat Software, 1990 - 2000

 All rights reserved.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for rpm.rte >>. . . .

Please wait...
Finished processing all filesets.  (Total time:  44 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
rpm.rte                     3.0.5.51        USR         APPLY       SUCCESS
rpm.rte                     3.0.5.51        ROOT        APPLY       SUCCESS
server:/tmp/python# lslpp -L rpm.rte
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  rpm.rte                   3.0.5.51    C     F    RPM Package Manager


State codes:
 A -- Applied.
 B -- Broken.
 C -- Committed.
 E -- EFIX Locked.
 O -- Obsolete.  (partially migrated to newer version)
 ? -- Inconsistent State...Run lppchk -v.

Type codes:
 F -- Installp Fileset
 P -- Product
 C -- Component
 T -- Feature
 R -- RPM Package
server:/tmp/python#

Thanks for your support.