Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cloning to RHEL 6; there, pkg-config reports merely '-lvirt -ldl', but the -ldl is spurious, and caused by the same bug (it's just that somewhere between v0.10.2 and v1.1.1, the final value of @LIBS@ after ./configure was complete changed contents, due to refactoring on how configure.ac searches for libraries)
+++ This bug was initially created as a clone of Bug #1134453 +++
Description of problem:
$ pkg-config --libs libvirt
-lvirt -ldl -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
obviously only -lvirt and possibly -ldl should be there.
Version-Release number of selected component (if applicable):
libvirt-1.1.3.5-2.fc20.x86_64
Additional info:
Upstream fix is
commit 1167751fcb949b44eddf3d0bfed5473e13c7e94a
Author: Daniel P. Berrange <berrange>
Date: Fri Jun 20 17:45:05 2014 +0100
Don't include @LIBS@ in libvirt.pc.in file
The libvirt.pc file we install is ending up polluted with a
load of compiler flags that should be private to the libvirt
build. eg
Libs: -L${libdir} -lvirt -ldl -O2 -g -pipe -Wall \
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions \
-fstack-protector-strong --param=ssp-buffer-size=4 \
-grecord-gcc-switches -m64 -mtune=generic
this is caused by including @LIBS@ in the Libs: line of the
pkgconfig.pc.in file.
--- Additional comment from Eric Blake on 2014-08-27 08:22:37 MDT ---
Next build for Fedora will be fixed; this is on the v1.1.3-maint branch now
commit 76ad3133fae206f6ccb3f3c0528c2ec6bd6b62bb
Author: Daniel P. Berrange <berrange>
Date: Fri Jun 20 17:45:05 2014 +0100
Don't include @LIBS@ in libvirt.pc.in file
...
(cherry picked from commit 1167751fcb949b44eddf3d0bfed5473e13c7e94a)
I can reproduce this issue with libvirt-0.10.2-46.el6.x86_64:
# pkg-config libvirt --libs
-lvirt -ldl
And verify this bug with libvirt-0.10.2-48.el6.x86_64:
# pkg-config libvirt --libs
-lvirt
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-1252.html