Bug 833529
| Summary: | pkg-config nss --libs gives wrong arguments - causes build failures | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rich Megginson <rmeggins> | ||||||||
| Component: | nss | Assignee: | Elio Maldonado Batiz <emaldona> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | urgent | Docs Contact: | |||||||||
| Priority: | urgent | ||||||||||
| Version: | rawhide | CC: | emaldona, kdudka, kengert, nkinder, rrelyea | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | nss-3.13.5-3.fc18, nss-softokn-3.13.5-2.fc18, nss-util-3.13.5-3.fc18, nspr-4.9.1-3.fc18 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2013-03-02 18:15:05 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Rich Megginson
2012-06-19 16:54:08 UTC
I played around with the nss package config files and figured out the problem. For some reason, pkg-config does not like a space after the "-L" option and the actual libdir on the "Libs" line. We currently do this in nss.pc and nss-util.pc:
Libs: -L {$libdir}/nss3 ...
If you change this to remove the space as follows, the pkg-config --libs output will be correct:
Libs: -L{$libdir}/nss3 ...
This only seems to affect nss.pc and nss-util.pc. The nss-softokn.pc file does not have the problematic space in it.
This problem affects any .pc file that has a requirement on nss or nss-util too - for example, svrcore.pc We fixed the unwanted space and the tools don't complain but there is still a another bug there. The libraries are NOT nested in /usr/lib{64}/nss3, they go in /usr/lib{64} as customary. Only headers are nested inside /usr/incude/nss3. Kaie caught this mistake while reviewing some analogous changes on nspr for rhel. Fixes for nspr, nss-util, nss-softokn, and nss will be coming.
Created attachment 593350 [details]
Fix for nss-util
Created attachment 593351 [details]
Fix for nss-softokn
Created attachment 593352 [details]
Fix for nss
nspr is fine. (In reply to comment #8) > nspr is fine. No, a similar fix was needed there also. This has been fixed for quite some time, closing it. |