Bug 1625507

Summary: Removal of libpthread_nonshared.a breaks installation of Oracle Database
Product: [Fedora] Fedora Reporter: Carlos O'Donell <codonell>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: aoliva, arjun.is, asa.j.welle, codonell, dj, fweimer, law, mfabian, pfrankli, rth, siddhesh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.28-10.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2164489 (view as bug list) Environment:
Last Closed: 2018-11-07 08:06:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1614439, 1654309, 2164489    

Description Carlos O'Donell 2018-09-05 05:40:17 UTC
The relinking step as part of the Oracle Database installation assumes that a libpthread_nonshared.a library exists.  Apparently, it doesn't use -lpthread as it should, and instead links against the individual files expected to be in the libpthread linker script.

We should add a workaround to F29 for this by including an empty libpthread_nonshared.a in a compat subpackage.

Failure during Oracle install looks like this:
/usr/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/ora/db/
/ora/db/bin/genclntsh
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
genclntsh: Failed to link libclntshcore.so.12.1

This affects Oracle 12cR2.

Comment 1 Carlos O'Donell 2018-09-05 07:34:41 UTC
F29 build with fix (glibc-2.28-10.fc29):
https://koji.fedoraproject.org/koji/taskinfo?taskID=29494174

Rawhide build with fix (glibc-2.28.9000-5.fc30):
https://koji.fedoraproject.org/koji/taskinfo?taskID=29494170

Comment 2 Carlos O'Donell 2018-09-05 07:35:35 UTC
The fix is to provide a compat-libpthread-nonshared subpackage with the right *.a in the right place. This way Oracle install instructions can say to just install this package.

Comment 3 Asa Welle 2018-11-03 02:50:46 UTC
Please provide instructions on how I can get this fix. I've added the updates repo and installed "dnf update glibmm24.x86_64", but that didn't work. Where is it bundled? Need it to install the Oracle database. Thank you!

Comment 4 Fedora Update System 2018-11-03 07:01:16 UTC
glibc-2.28-17.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0e5874aba9

Comment 5 Fedora Update System 2018-11-04 06:38:38 UTC
glibc-2.28-17.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0e5874aba9

Comment 6 Asa Welle 2018-11-04 13:41:46 UTC
That worked for me. Oracle Database installed now.

Comment 7 Florian Weimer 2018-11-04 13:55:44 UTC
(In reply to Asa Welle from comment #6)
> That worked for me. Oracle Database installed now.

Great.  Thank you so much for testing Oracle Database on Fedora.  We need more such third-party software testing.

Comment 8 Fedora Update System 2018-11-07 02:40:54 UTC
glibc-2.28-17.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.