Bug 2016621 - Invalid linker path in .pc files
Summary: Invalid linker path in .pc files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mosquitto
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Rich Mattes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-22 11:09 UTC by Ulrich Drepper
Modified: 2024-11-11 02:19 UTC (History)
3 users (show)

Fixed In Version: mosquitto-2.0.20-3.fc41
Clone Of:
Environment:
Last Closed: 2024-11-11 02:19:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ulrich Drepper 2021-10-22 11:09:52 UTC
Description of problem:
The pkg-config files in mosquitto-devel for (probably) all 64-bit systems is wrong.  It likely stems from using the versions for Debian.

The files contain

prefix=/usr
[…]
libdir=${exec_prefix}/lib
[…]
Libs: -L${libdir} -lmosquitto

etc.  This results on -L/usr/lib on the command line which on x86-64 and likely other 64-bit systems for Fedora in messages like

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



Version-Release number of selected component (if applicable):
2.0.12-1.fc34

How reproducible:
always

Steps to Reproduce:
1.install mosquitto-devel
2.link anything with $(pkg-config --libs libmosquitto) added to the link line
3.the same happens for $(pkg-config --libs libmosquittopp)

Actual results:
the above messages

Expected results:
no such message

Additional info:
Alternative to using lib64 in these place, just drop the -L parameter if ${prefix} is /usr.

Comment 1 Ben Cotton 2022-05-12 16:28:34 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Peter Robinson 2022-08-17 07:57:00 UTC
Probably needs to be fixed upstream

Comment 3 Ulrich Drepper 2023-01-26 11:46:38 UTC
(In reply to Peter Robinson from comment #2)
> Probably needs to be fixed upstream

I don't think it'll be fixed upstream because for Debian this is the right value.  Most likely that's what the developers support.

The change is a customization necessary for Fedora and other distribution that use lib/lib64 instead of lib32/lib.

Please fix this.  And yes, still a problem in F37.

Comment 4 Rich Mattes 2024-04-01 03:11:23 UTC
Opened https://github.com/eclipse/mosquitto/pull/3027

Comment 5 Fedora Update System 2024-11-01 18:15:18 UTC
FEDORA-2024-d7851275a8 (libwebsockets-4.3.3-2.fc41 and mosquitto-2.0.20-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d7851275a8

Comment 6 Fedora Update System 2024-11-02 01:38:45 UTC
FEDORA-2024-d7851275a8 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-d7851275a8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-d7851275a8

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

Comment 7 Fedora Update System 2024-11-11 02:19:17 UTC
FEDORA-2024-d7851275a8 (libwebsockets-4.3.3-2.fc41 and mosquitto-2.0.20-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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