Bug 2130049 - 64-bit libwebp.pc tries to link to 32-bit libraries
Summary: 64-bit libwebp.pc tries to link to 32-bit libraries
Keywords:
Status: CLOSED DUPLICATE of bug 2128259
Alias: None
Product: Fedora
Classification: Fedora
Component: libwebp
Version: 36
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-27 02:06 UTC by Paul Eggert
Modified: 2022-09-27 05:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-27 05:54:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Eggert 2022-09-27 02:06:05 UTC
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:

Comment 1 Sandro Mani 2022-09-27 05:54:20 UTC

*** This bug has been marked as a duplicate of bug 2128259 ***


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