I'm using PowerHA ROHA feature which utilizes program clcloudroha included in PowerHA software. That program requires "/usr/lib" to be the first component in LIBPATH as it is linked against /usr/ccs/lib/libxml2.a and fails with /opt/freeware/lib/libxml2.a with unresolved symbol.
Could not load program clcloudroha:
Dependent module /opt/freeware/lib/libxml2.a(libxml2.shr.o) could not be loaded.
Member libxml2.shr.o is not found in archive
This program also uses python and when it tries to start python, which is in /opt/freeware/lib, it fails with library load error as it does not force the use of /opt/freeware/lib libraries, but instead uses the LIBPATH -> incorrect /usr/lib/libsqlite3.so is used which is a link to /usr/opt/rpm/lib/libsqlite3.so, and which is not compatible.
AIX 7.3 TL 1 SP1
Versions of sqlite:
/usr/sys/inst.images/RPMS/ppc/sqlite-3.35.5-1.aix6.1.ppc.rpm (this is coming from rpm.rte install)
/var/cache/dnf/AIX_Toolbox-65d76c2c8658fdd3/packages/sqlite-3.39.3-1.aix7.1.ppc.rpm (This is from dnf install)
Load error:
Could not load program python: (note: /usr/lib/libpython2.7.so symbolic link to /opt/freeware/lib/...)
Symbol resolution failed for /usr/lib/libpython2.7.so because:
Symbol _GLOBAL__AIXI_libsqlite3_so (number 219) is not exported from dependent
module /usr/lib/libsqlite3.so.
Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from dependent
module /usr/lib/libsqlite3.so.
I also tried python3, but that fails as well, with the following load error - also conflicting library in /usr/opt/rpm/lib/...
Could not load program python:
Symbol resolution failed for /opt/freeware/lib64/libpython3.7m.so because:
Symbol _GLOBAL__AIXI_libintl_so (number 4) is not exported from dependent
module /usr/opt/rpm/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 5) is not exported from dependent
module /usr/opt/rpm/lib/libintl.a[libintl.so.8].
lslpp -l rpm.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
rpm.rte 4.15.1.2006 COMMITTED RPM Package Manager
Path: /etc/objrepos
rpm.rte 4.15.1.2006 COMMITTED RPM Package Manager
Any idea how to fix this?
------------------------------
Ralf Schmidt-Dannert
------------------------------
#AIXOpenSource