Bug 2130049
| Summary: | 64-bit libwebp.pc tries to link to 32-bit libraries | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Paul Eggert <eggert> |
| Component: | libwebp | Assignee: | Sandro Mani <manisandro> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | manisandro |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-27 05:54:20 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: | |||
*** This bug has been marked as a duplicate of bug 2128259 *** |
Description of problem: On x86-64, the file /usr/lib64/pkgconfig/libwebp.pc contains the line "libdir=${prefix}/lib". It should contain a line "libdir=${prefix}/lib64" or "libdir=/usr/lib64", as is common in the other *.pc files. There is a similar bug in libwebpdecoder.pc, libwebpdemux.pc, and libwebpmux.pc in the same directory. Version-Release number of selected component (if applicable): libwebp-devel-1.2.4-1.fc36.x86_64 How reproducible: Run the shell command: "pkgconf --libs libwebp". It will output "-L/usr/lib -lwebp". It should output just "-lwebp". The bogus "-L/usr/lib" causes gcc to try to link to 32-bit libraries even though we're building a 64-bit executable. Steps to Reproduce: 1. dnf install libwebp-devel.x86_64 libwebp-devel.i686 2. echo 'int main (void) {}' >t.c 3. gcc t.c $(pkgconf --libs libwebp) Actual results: /usr/bin/ld: skipping incompatible /usr/lib/libwebp.so when searching for -lwebp /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc Expected results: The compilation should succeed quietly. Additional info: