Originally posted by: Teej42
There was a weird issue with installation of gettext that can be reproduced. I did the following:
$ sudo rpm -Uvh gettext-0.19.8.1-1.aix6.1.ppc.rpm
Preparing... ################################# [100%]
Updating / installing...
1:gettext-0.19.8.1-1 ################################# [ 50%]
Cleaning up / removing...
2:gettext-0.17-8 ################################# [100%]
Could not load program /usr/opt/freeware/bin/rpm:
Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
Member libintl.so.8 is not found in archive
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.
$
After this point, RPM will not behave, throwing the same error for the libintl.a file. I also see the following:
[/opt/freeware/lib] $ ls -al *intl*
-rwxr-xr-x 1 root system 374612 Dec 20 2010 libintl.a
-rwxr-xr-x 1 root system 374612 Dec 20 2010 libintl.a.savgettext
Only way to resolve is to find a separate server, and do the following:
$ rpm2cpio gettext-0.19.8.1-1.aix6.1.ppc.rpm | cpio -dimuv
And dig out the libintl.a for 32 bit, back up the existing libintl.a, and park the file from gettext RPM to this directory (/opt/freeware/lib), and RPM is back to working order.
Is this a known behavior, and can it be addressed by updating the RPM accordingly? Thanks.