Bug 2143913 - Include symlink link to /opt/rh/SAP/lib64/libstdc++.so.6
Summary: Include symlink link to /opt/rh/SAP/lib64/libstdc++.so.6
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: compat-sap-c++-10
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Patrick Palka
QA Contact: Václav Kadlčík
URL:
Whiteboard:
Depends On: 2189453
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-18 11:02 UTC by Holger Hopp
Modified: 2023-08-15 11:34 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sap-linuxlab community.sap_install issues 263 0 None open sap_netweaver_preconfigure: Add link to libstdc++.so.6 in rpath directory other than /usr/lib64 2022-12-14 10:19:43 UTC
Red Hat Bugzilla 2189453 0 unspecified NEW Provide a compat-sap-c++ package without a version string as part of the package name 2023-06-13 08:58:17 UTC
Red Hat Issue Tracker RHELPLAN-139903 0 None None None 2022-11-18 11:12:06 UTC

Description Holger Hopp 2022-11-18 11:02:53 UTC
Description of problem:
Certain newer SAP kernels and tools on RHEL 8 are built with GCC 10. RHEL 8 is GCC 8 compatible, so a compat-sap-c++ library is required to provide compatibility. However, as the SAP kernel and tools are only looking for a file with name libstdc++.so.6 in the run path, these applications are currently not able find the compat-sap-c++ file.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Update the SAP kernel to one of the SAP kernel versions mentioned in SAP note https://launchpad.support.sap.com/#/notes/3119751, e.g. SAP kernel 754 or 788.
2. Start the SAP system and monitor the terminal output and SAP log files.

Actual results:
Messages like the following will be shown:
disp+work: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by disp+work)


Expected results:
The SAP system starts as expected, without such error messages. No further manual action (like for example creating a soft link) is required after installing the compat-sap-c++ package.

Additional info:
We will soon extend the SAP application's run path to also include /opt/rh/SAP/lib64, so the applications will search for file libstdc++.so.6 there as well.
We need this fix for all RHEL 8 versions which are in the standard, eus, or e4s support range (= RHEL 8.1, 8.2, 8.4, 8.6, 7.7) and all future RHEL 8 versions, on all SAP supported architectures (x86_64, ppc64le, and s390x).
We also need this fix in all compat-sap-c++ versions which are and will be available on RHEL 8, currently compat-sap-c++-10, -11, and -12.

Comment 1 Bernd Finger 2022-11-18 11:21:52 UTC
There is a typo in the description: The correct RHEL versions in which the fix needs to be available are RHEL 8.1, 8.2, 8.4, 8.6, 8.7 (not 7.7).
Note: I had proposed the bug description to Holger, and the typo was introduced by me.

Comment 7 Gomathi Anandan 2023-01-09 13:44:24 UTC
Reseting current deadline since issue will not be moved to modified today.

Comment 17 Holger Hopp 2023-06-20 14:00:19 UTC
Some test results and comments for
compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and
compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm :

From my point of view everything is okay (symlink libstdc++.so.6 is available, also all symlinks compat-sap-c++-*.so).

Some comments regarding upgrades:
Following seems to be possible:
(1) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm.
(2) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm
(3) Upgrade from installed older compat-sap-c++-12 to compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm

The result (installed files) is the same all 3 cases:
$ ll /opt/rh/SAP/lib64/
total 2296
lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-10.so -> compat-sap-c++-12.1.1.so
lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-11.so -> compat-sap-c++-12.1.1.so
-rwxr-xr-x. 1 root root 2343184 Apr 17 16:31 compat-sap-c++-12.1.1.so
lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-12.so -> compat-sap-c++-12.1.1.so
lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-9.so -> compat-sap-c++-12.1.1.so
lrwxrwxrwx. 1 root root      24 Apr 17 16:31 libstdc++.so.6 -> compat-sap-c++-12.1.1.so
-rw-r--r--. 1 root root    1022 Apr 17 16:31 README12

This is okay.

But upgrade is different.
Simple upgrade to compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm is impossible.
The upgrade requires compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and all compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm (described in how-to-install-the-compat-sap-c++-test-packages.pdf).
All the versioned RPMs are installed, but do nothing. That seems to be awkwardly, but probably necessary, if (current) SAP HANA Installer requires the versioned package.

I've only tested rpm (-i and -U), no yum or dnf.
On SAP Kernel side this does not matter. The SAP kernel finds the /opt/rh/SAP/lib64/libstdc++.so.6 properly.

ToDo on SAP side:
Adapt SAP note 3119751 (https://launchpad.support.sap.com/#/notes/3119751) when RHEL 8 minor version of feature release is known.

Comment 18 Patrick Palka 2023-06-21 13:35:23 UTC
(In reply to Holger Hopp from comment #17)
> Some test results and comments for
> compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and
> compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm :
> 
> From my point of view everything is okay (symlink libstdc++.so.6 is
> available, also all symlinks compat-sap-c++-*.so).
> 
> Some comments regarding upgrades:
> Following seems to be possible:
> (1) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm.
> (2) (New) Installation of compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all
> compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm
> (3) Upgrade from installed older compat-sap-c++-12 to
> compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm AND all
> compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm
> 
> The result (installed files) is the same all 3 cases:
> $ ll /opt/rh/SAP/lib64/
> total 2296
> lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-10.so ->
> compat-sap-c++-12.1.1.so
> lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-11.so ->
> compat-sap-c++-12.1.1.so
> -rwxr-xr-x. 1 root root 2343184 Apr 17 16:31 compat-sap-c++-12.1.1.so
> lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-12.so ->
> compat-sap-c++-12.1.1.so
> lrwxrwxrwx. 1 root root      24 Apr 17 16:31 compat-sap-c++-9.so ->
> compat-sap-c++-12.1.1.so
> lrwxrwxrwx. 1 root root      24 Apr 17 16:31 libstdc++.so.6 ->
> compat-sap-c++-12.1.1.so
> -rw-r--r--. 1 root root    1022 Apr 17 16:31 README12
> 
> This is okay.
> 
> But upgrade is different.
> Simple upgrade to compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm is impossible.
> The upgrade requires compat-sap-c++-12.1.1-1.1.el8_8.x86_64.rpm and all
> compat-sap-c++-{9,10,11,12}-12.1.1-1.1.el8_8.x86_64.rpm (described in
> how-to-install-the-compat-sap-c++-test-packages.pdf).
> All the versioned RPMs are installed, but do nothing. That seems to be
> awkwardly, but probably necessary, if (current) SAP HANA Installer requires
> the versioned package.

If I understand correctly, the unversioned compat-sap-c++ doesn't have any dependencies of its own. But if any older compat-sap-c++-{9,10,11,12} packages are installed on the system, then those will need to get upgraded when installing the unversioned compat-sap-c++, and this ought to happen automatically when using yum/dnf and the official package repository. Upgrading from an older compat-sap-c++-12 to the unversioned compat-sap-c++ won't require installing new versions of compat-sap-c++-{9,10,11}.

> 
> I've only tested rpm (-i and -U), no yum or dnf.
> On SAP Kernel side this does not matter. The SAP kernel finds the
> /opt/rh/SAP/lib64/libstdc++.so.6 properly.
> 
> ToDo on SAP side:
> Adapt SAP note 3119751 (https://launchpad.support.sap.com/#/notes/3119751)
> when RHEL 8 minor version of feature release is known.


Note You need to log in before you can comment on or make changes to this bug.