Hi,
Sorry for late reply.
I remove logrotate and try to install the one we have earlier try to match with our other system of logrotate version.
:/tmp # rpm -Uhv logrotate-3.8.5-1.aix6.1.ppc.rpm
error: Failed dependencies:
libpopt.so is needed by logrotate-3.8.5-1.ppc
:/tmp # ls -la |grep libpopt
:/tmp # rpm -qa
bash-4.3-8.ppc
coreutils-5.2.1-1.ppc
openssl-0.9.7d-2.ppc
openssl-doc-0.9.7d-2.ppc
info-6.4-1.ppc
libtool-ltdl-1.5.26-2.ppc
libffi-3.1-1.ppc
bash-doc-3.0-1.ppc
cpio-2.5-1.ppc
lpar2rrd-agent-5.05-2.ppc
openssl-devel-0.9.7d-2.ppc
libiconv-1.15-1.ppc
readline-7.0-3.ppc
unixODBC-2.3.4-1.ppc
swiagent-2020.2.6.20131-b5170e0.ppc
AIX-rpm-7.2.5.101-13.ppc
:/tmp # lslpp -f rpm.rte | grep libpopt
/usr/opt/rpm/lib/libpopt.a
:/tmp # rpm -q --provides AIX-rpm | grep popt
libpopt.a(libpopt.so.0)
:/tmp # lslpp -L rpm.rte
Fileset Level State Type Description (Uninstaller)
----------------------------------------------------------------------------
rpm.rte 4.15.1.3 C F RPM Package Manager
/tmp # oslevel -s
7200-05-03-2148
Not sure why it is not installing as it was installed in this system earlier fine.
Thanks for your support.
H-D Unix Team
------------------------------
Harley AIX
------------------------------
Original Message:
Sent: Mon February 07, 2022 08:22 AM
From: SANKET RATHI
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
I don't think all the RPM's those installed with --nodeps are removed.
I think logrotate was also installed with --nodeps.
If you really want hard way (resolving dependencies manually) then remove logrotate and then try to install logrotate rpm again without --nodeps.
It will list all the packages needed. Then try install all those packages they may list other packages needed and you need to keep resolving this way until you install all those packages.
------------------------------
SANKET RATHI
Original Message:
Sent: Fri February 04, 2022 10:48 AM
From: Harley AIX
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
Hi,
I remove the rpm that were install with --nodeps, I have aix_toolbox_for_linux in my server, but I do not have neither dnf not yum installed at the moment. So could you please let me know, to fix this logrotate issue, which rpm I need to install one after another. Below is the rpm -qa output I am seeing from my server where I want to logrotate to work.
# /opt/freeware/sbin/logrotate -f /etc/logrotate.d/ldapLogRotation
Could not load program /opt/freeware/sbin/logrotate:
Dependent module libpopt.a(libpopt.so.0) could not be loaded.
Could not load module libpopt.a(libpopt.so.0).
System error: No such file or directory
/etc/logrotate.d # rpm -qa
bash-4.3-8.ppc
coreutils-5.2.1-1.ppc
openssl-0.9.7d-2.ppc
openssl-doc-0.9.7d-2.ppc
info-6.4-1.ppc
libtool-ltdl-1.5.26-2.ppc
libffi-3.1-1.ppc
logrotate-3.18.0-1.ppc
bash-doc-3.0-1.ppc
cpio-2.5-1.ppc
lpar2rrd-agent-5.05-2.ppc
openssl-devel-0.9.7d-2.ppc
libiconv-1.15-1.ppc
readline-7.0-3.ppc
unixODBC-2.3.4-1.ppc
swiagent-2020.2.6.20131-b5170e0.ppc
AIX-rpm-7.2.5.101-12.ppc
Thanks for all your help.
------------------------------
Harley AIX
Original Message:
Sent: Thu January 20, 2022 10:40 AM
From: SANKET RATHI
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
You need to remove packages those were installed with --nodeps. But as I said yum/dnf is the best way to install open source packages on AIX from AIX toolbox.
------------------------------
SANKET RATHI
Original Message:
Sent: Wed January 19, 2022 02:17 PM
From: Harley AIX
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
Hi,
Could you please let me know which package I need to remove, and procedure/command to install it again, and that hopefully will fix the dependency issue.
Thanks.
H AIX
------------------------------
Harley AIX
Original Message:
Sent: Wed January 19, 2022 12:45 AM
From: SANKET RATHI
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
To make it work you will have to install all the dependencies. The best way is to use dnf/yum.
If you remove the package and install it without --nodeps then it will give you the list of all the dependencies needed.
------------------------------
SANKET RATHI
Original Message:
Sent: Tue January 18, 2022 01:18 PM
From: Harley AIX
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
Thanks for reply.
What is the way to fix this issue for now?
Thanks again.
------------------------------
Harley AIX
Original Message:
Sent: Tue January 18, 2022 12:30 PM
From: SANKET RATHI
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
If packages are installed with --nodeps then there is no guarantee that it will work as their dependencies are not getting installed.
As I mentioned in my previous post to run these software other libraires are needed and until those are not installed it will not work.
------------------------------
SANKET RATHI
Original Message:
Sent: Tue January 18, 2022 09:53 AM
From: Harley AIX
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
Hi,
I downloaded logrotate and popt rpm from below link, as per IBM tech,
https://www.ibm.com/support/pages/node/883796#L
Installed logrotate and popt with below command..
# rpm -Uhv --nodeps logrotate-3.18.0-1.aix6.1.ppc
# rpm -Uhv --nodeps popt-1.18-1.aix6.1.ppc
Below are the complete output of rpm -qa
# rpm -qa
bash-4.3-8.ppc
coreutils-5.2.1-1.ppc
openssl-0.9.7d-2.ppc
openssl-doc-0.9.7d-2.ppc
info-6.4-1.ppc
libtool-ltdl-1.5.26-2.ppc
libffi-3.1-1.ppc
logrotate-3.18.0-1.ppc
bash-doc-3.0-1.ppc
cpio-2.5-1.ppc
lpar2rrd-agent-5.05-2.ppc
openssl-devel-0.9.7d-2.ppc
libiconv-1.15-1.ppc
readline-7.0-3.ppc
unixODBC-2.3.4-1.ppc
swiagent-2020.2.6.20131-b5170e0.ppc
AIX-rpm-7.2.5.101-12.ppc
popt-1.18-1.ppc
I am not sure yum /dnf is working on this server or not? Anyway to check without any harm?
Please let me know if you need more info.
Thanks,
------------------------------
Harley AIX
Original Message:
Sent: Tue January 18, 2022 08:46 AM
From: SANKET RATHI
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
Hi,
AIX toolbox packages are built using gcc and hence gcc runtime libraries are required. Did you install logrotate from AIX toolbox ?
How did you install logrotate (was any force option/nodep was used) ?
If the "rpm -qa" output is complete then I do not see libgcc and other dependencies.
yum/dnf is preferred method to install packages from AIX toolbox and they will install all the dependencies needed for a package.
Is the "rpm -qa" output is complete (That is the total RPM packages you have installed on system) ?
------------------------------
SANKET RATHI
Original Message:
Sent: Mon January 17, 2022 11:55 PM
From: Harley AIX
Subject: Failed to install 'logrotate' due to libgcc_s.a(shr.o) dependency
Tried to update logrotate rpm in my AIX 7.2 TL5 SP2 system, looks like it was installed/updated but now giving error due to some dependencies..
# lslpp -l rpm.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
Path: /etc/objrepos
rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
# rpm -q logrotate
logrotate-3.18.0-1.ppc
# rpm -q popt
popt-1.18-1.ppc
# rpm -qa
bash-4.3-8.ppc
coreutils-5.2.1-1.ppc
openssl-0.9.7d-2.ppc
openssl-doc-0.9.7d-2.ppc
info-6.4-1.ppc
libtool-ltdl-1.5.26-2.ppc
libffi-3.1-1.ppc
logrotate-3.18.0-1.ppc
bash-doc-3.0-1.ppc
cpio-2.5-1.ppc
lpar2rrd-agent-5.05-2.ppc
openssl-devel-0.9.7d-2.ppc
libiconv-1.15-1.ppc
readline-7.0-3.ppc
unixODBC-2.3.4-1.ppc
swiagent-2020.2.6.20131-b5170e0.ppc
AIX-rpm-7.2.5.101-12.ppc
popt-1.18-1.ppc
# logrotate --version
Could not load program logrotate:
Could not load module /opt/freeware/lib64/libpopt.a(libpopt.so.0).
Dependent module libgcc_s.a(shr.o) could not be loaded.
Could not load module libgcc_s.a(shr.o).
System error: No such file or directory
Could not load module logrotate_64.
Dependent module /opt/freeware/lib64/libpopt.a(libpopt.so.0) could not be loaded.
# logrotate -f /etc/logrotate.d/ldapLogRotation
Could not load program logrotate:
Could not load module /opt/freeware/lib64/libpopt.a(libpopt.so.0).
Dependent module libgcc_s.a(shr.o) could not be loaded.
Could not load module libgcc_s.a(shr.o).
System error: No such file or directory
Could not load module logrotate_64.
Dependent module /opt/freeware/lib64/libpopt.a(libpopt.so.0) could not be loaded.
Need help to fix the issue. As one of the cronjob related logrotate not running.
Thanks AIX Open Source /IBM Power Community
------------------------------
Harley AIX
------------------------------