Originally posted by: janhar
ENV:
rpm.rte 4.13.0.8
cpio-2.12-2.aix6.1.ppc.rpm
PROBLEM:
# rpm2cpio host-power-tools-4.3.2-aix-7.1-powerpc.rpm | /opt/freeware/bin/cpio -idmv
exec(): 0509-036 Cannot load program /opt/freeware/bin/cpio because of the following errors:
0509-150 Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
0509-152 Member libintl.so.8 is not found in archive
ANALYSIS:
# ar -X32_64 -tv /opt/freeware/lib/libintl.a.gettext | grep libin
rwxr-xr-x 203/1 114582 Jan 04 14:38 2008 libintl.so.1
rwxr-xr-x 203/1 130986 Jan 04 14:40 2008 libintl.so.1
This is the libintl.a from rpm.rte:
# ar -X32_64 -tv /usr/opt/rpm/lib/libintl.a
rwxr-xr-x 0/0 86741 Jun 02 08:56 2016 libintl.so.8
rwxr-xr-x 0/0 94425 Jun 02 08:50 2016 libintl.so.8
rwxr-xr-x 0/0 114582 Apr 06 13:53 2017 libintl.so.1
rwxr-xr-x 0/0 130986 Apr 06 13:53 2017 libintl.so.1
# rpm -q --whatprovides /opt/freeware/lib/libintl.a
gettext-0.19.8.1-1.ppc (current Toolbox version)
TEMPORARY WORKAROUND:
First I tried the rpm.rte LIBPATH
# export LIBPATH=/usr/opt/rpm/lib/:$LIBPATH
This did not work , so next I temporarily move the gettext libintl.a out of the way
# mv /opt/freeware/lib/libintl.a /opt/freeware/lib/libintl.a.gettext
# ln -sf /usr/opt/rpm/lib/libintl.a /opt/freeware/lib/libintl.a
Now tried the cpio command:
# rpm2cpio host-power-tools-4.3.2-aix-7.1-powerpc.rpm | /opt/freeware/bin/cpio -idmv
This runs OK now
Now restore the gettext libintl.a
# unlink /opt/freeware/lib/libintl.a
# mv /opt/freeware/lib/libintl.a.gettext /opt/freeware/lib/libintl.a
Is this expected behavior? I would expect this to cause problems for many packages. Please advise!