Bug 2014748

Summary: check.pc specifies libdir=/usr/lib (not lib64) on x86_64
Product: [Fedora] Fedora Reporter: Andrew Price <anprice>
Component: checkAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 34CC: ajax, caillon+fedoraproject, gnome-sig, loganjerry, mclasen, paul, rhughes, rstrode, sandmann, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: check-0.15.2-5.fc34 check-0.15.2-5.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 15:14:01 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:

Description Andrew Price 2021-10-16 10:32:00 UTC
Description of problem:

When 32-bit libpthread and libc are installed in a 64-bit environment and I compile a check-based test suite, I get

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc

This is because check.pc has libdir=/usr/lib but it should be /usr/lib64 as libcheck.so is at /usr/lib64/libcheck.so

Version-Release number of selected component (if applicable):
check-0.15.2-3.fc34.x86_64
check-devel-0.15.2-3.fc34.x86_64

Steps to Reproduce:
1. # dnf install glibc-devel.i686
2. $ printf "int main(void){}" | gcc -xc `pkgconf --libs --cflags check` -

Actual results:

/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc

Expected results:
No messages from ld

Comment 1 Fedora Update System 2021-10-17 19:33:55 UTC
FEDORA-2021-742113f8a1 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-742113f8a1

Comment 2 Fedora Update System 2021-10-17 19:33:55 UTC
FEDORA-2021-410dbaff39 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-410dbaff39

Comment 3 Fedora Update System 2021-10-17 22:19:21 UTC
FEDORA-2021-410dbaff39 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-410dbaff39`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-410dbaff39

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-10-18 15:55:59 UTC
FEDORA-2021-742113f8a1 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-742113f8a1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-742113f8a1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-10-25 15:14:01 UTC
FEDORA-2021-410dbaff39 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2021-10-29 23:07:36 UTC
FEDORA-2021-742113f8a1 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.