RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1628391 - Missing libquadmath.so.0 linkage causing unresolved symbols
Summary: Missing libquadmath.so.0 linkage causing unresolved symbols
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: compat-libgfortran-41
Version: 7.5
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Marek Polacek
QA Contact: Alexandra Petlanová Hájková
Vladimír Slávik
URL:
Whiteboard:
Depends On:
Blocks: 1643040
TreeView+ depends on / blocked
 
Reported: 2018-09-12 21:50 UTC by Robert Szabo
Modified: 2019-08-06 12:57 UTC (History)
6 users (show)

Fixed In Version: compat-libgfortran-41-4.1.2-45.el7
Doc Type: Removed functionality
Doc Text:
.`real(kind=16)` type support has been removed from `libquadmath` library `real(kind=16)` type support has been removed from the `libquadmath` library in `compat-libgfortran-41` package in order to preserve ABI compatibility.
Clone Of:
Environment:
Last Closed: 2019-08-06 12:57:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2144 0 None None None 2019-08-06 12:57:56 UTC

Description Robert Szabo 2018-09-12 21:50:19 UTC
Description of problem:

The compat-libgfortran-41-4.1.2-44 library providing libgfortran.so.1 does not link against libquadmath.so.0 (the DSO providing the <func>q named symbols):

$ nm -D /lib64/libgfortran.so.1 | grep sqrtq
                 U csqrtq
                 U sqrtq
$ objdump -p /lib64/libgfortran.so.1 | grep NEEDED
  NEEDED libm.so.6
  NEEDED libc.so.6

$ ldd /lib64/libgfortran.so.1
        linux-vdso.so.1 => (0x00007ffc5b1cf000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fdd39c9e000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fdd398d1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fdd3a289000)

therefore legacy applications (built on Red Hat 5) fail to load. The example to reproduce the issue is quite specific to our business, please excuse that.

I haven't been able to find a better way to show the problem but that is only because of my total lack of knowledge of Fortran and how it works.

We have some legacy applications embedded in a stack of software that we would like to run on Red Hat 7.

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

Latest: 4.1.2-44

How reproducible:

Always

Steps to Reproduce:

Prerequisites:
* gcc 4.1.2 - vanilla build on Red Hat 6 or system gcc on Red Hat 5
* python 2.6.4 - vanilla build from source code with above gcc 4.1.2
* atlas 3.8.4 vanilla build compiled with above gcc 4.1.2
* Numpy 1.7.1 source code

Steps:
* Build numpy 1.7.1 (with atlas support) built with gcc 4.1.2 on Redhat 5 or 6
$ python2.6 setup.py build

* Try to import lapack_lite.so on the build machine. It works.
$ cd <build-dir>/build/lib.linux-x86_64-2.6
$ python2.6 -c 'import numpy.linalg.lapack_lite'
$ (no import error - success)

* Importing it on Red Hat 7
$ cd <build-dir>/build/lib.linux-x86_64-2.6
$ env LD_LIBRARY_PATH=$PYTHON26DIR/lib $PYTHON26DIR/bin/python -c 'import numpy.linalg.lapack_lite'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /lib64/libgfortran.so.1: undefined symbol: sqrtq

Actual results:


Expected results:


Additional info:

To fix the issue, I've rebuilt compat-libgfortran-41 with "-lquadmath" explicitly added to LDFLAGS. The resulting libgfortran.so.1 had the correct linkage and no python import error occurred.

Alternatively, LD_PRELOAD'ing libquadmath.so.0 also works.

Comment 9 Alexandra Petlanová Hájková 2019-06-02 08:58:40 UTC
I verified make check-gfortran on RHEL-5 works properly with the libgfortran.so.1 built from sources with compat-libgfortran-41 on RHEL7 as suggested at comment#5. Also I checked compat-libgfortran-41-4.1.2-45.el7.x86_64.rpm contains csqrtq and sqrtq symbols and compat-libgfortran-41-4.1.2-45.el7.x86_64.rpm does not contain them.

Comment 13 errata-xmlrpc 2019-08-06 12:57:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2144


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