CA APM Web Agent: Error from DSOLoadLibrary - libstdc++.so.5 on Redhatt8

book

Article ID: 242358

calendar_today

Updated On:

Products

CA Single Sign On Agents (SiteMinder)

Issue/Introduction

Once installed and configured a Web Agent (12.52-sp01-cr11) on RedHat 8.4 (Red Hat Enterprise Linux release 8.4 (Ootpa) in the Web Server (apache version 2.4.37), the following message was found in the error log during starting phase:

error_wicp0gcp.log:
  Error from DSOLoadLibrary - libstdc++.so.5: 
  cannot open shared object file: No such file or directory

SiteMinder_Web_Agent_Install_02_22_2022_16_45_00.log:

  Summary
  -------

  Installation: Successful.

  1083 Successes
  0 Warnings
  0 NonFatalErrors
  0 FatalErrors

wicp0gcp_wa.log:

  [800011/1130211072][Fri Apr 29 2022 09:04:53] SiteMinder APACHE 2.4 WebAgent, 
  Version 12.52 QMR01, Update HF-11, Label 2820.

[...]

  [800082/3556767488][Fri Apr 29 2022 09:04:58][CSmLowLevelAgent.cpp:5286][INFO]
  [sm-AgentFramework-00510] LLA: Logging initialized.

  [800082/3556767488][Fri Apr 29 2022 09:04:58][CSmPluginManager.cpp:187][ERROR]
  [sm-AgentFramework-00120] ADMIN: SmDSOLoadLibrary failed to load plugin 
  '/opt/ca/webagent/12.52-sp01-cr11/bin/libIntroscopePlugin.so'.

  [800082/3556767488][Fri Apr 29 2022 09:04:58][CSmPluginManager.cpp:131][ERROR]
  [sm-AgentFramework-00110] ADMIN: Unable to load plugin 
  '/opt/ca/webagent/12.52-sp01-cr11/bin/libIntroscopePlugin.so'.

LLAWP is raised correctly and the web agent seems to be working. No APM FOR SITEMINDER installed but only a web agent on the RedHat machine.

file /opt/ca/webagent/12.52-sp01-cr11/bin/libIntroscopePlugin.so
/opt/ca/webagent/12.52-sp01-cr11/bin/libIntroscopePlugin.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

Cause

The issue is in APM for the SSO module. The issue is caused by the introscope library which doesn't load. There's a missing library on the RedHat 8 system. The requested library isn't available anymore on RedHat 8:

How to install libstdc++.so.5 in RHEL 8.3
https://access.redhat.com/discussions/5973261

The libstdc++.so.5 is an old version of the C++ standard library. It was included in RHEL7 with the compat-libstdc++ package for backward compatibility with older versions, but it is not included in RHEL8 anymore.

Environment

IdentityMinder(Identity Manager) Release : 12.8

CA APM Web Agent 12.52-sp01-cr11
RedHat 8.4 (Red Hat Enterprise Linux release 8.4 (Ootpa) 
Web Server Apache version 2.4.37
No APM FOR SITEMINDER installed but only a Web Agent on the redhat machine.

Resolution

The libIntroscopePlugin.so needs to be compiled by upgrading the compiler and providing a new .so file to support RHEL8. Our development team already provided a new libIntroscopeNativeDataAPI.so file. It is compiled with GCC 4.4.4. There is no more dependency on libstdc++.so.5. ( GCC 4.4 uses libstdc++.so.6). There are no code changes or new binaries are generated: 'libIntroscopeplugin.so will be commented in webagent.conf and will be uncommented during APMSSO installation'.

Please do not uncomment libIntroscopeplugin.so in webagent.conf unless wily is installed.  If Wily is installed, libIntroscopeNativeDataAPI.so and all its dependencies will also be installed. As a result, you will be able to use libIntroscopeNativeDataAPI.so that comes with wily instead of the one that comes with SiteMinder web agent.

By default, libIntroscopeplugin.so will be commented in web agent.conf and will be uncommented during APMSSO installation.

WORKAROUND:

If APM is not installed, then please comment out the below lines in WebAgent.conf as these are required for APM for SSO.

LoadPlugin="/root/CA/webagent/bin/ IntroscopePlugin.so  "
EnableIntroscopeAgentSupport="YES"
EnableMonitoring="YES"

Please run 'source ca_wa_env.sh' also along with commenting the above macros in Web agent.conf before starting web agent.

Additional Information

The following KBs can be also useful in troubleshooting other similar issues in general:

Event Handler for Wily not loading
https://knowledge.broadcom.com/external/article/5912

Siteminder Policy Server Metrics are not appearing in the Investigator and XPSConfig gives a library initialization error
https://knowledge.broadcom.com/external/article/145494

Installation and Configuration on Web Agent (Windows)
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/apm-for-siteminder/13-2/installation-and-configuration/installation-and-configuration-on-web-agent-windows.html