/usr/lib/libvirt-lxc.so missing from libvirt-dev

Bug #1287232 reported by Ondergetekende
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
High
Unassigned
Saucy
Fix Released
High
Unassigned

Bug Description

When installing libvirt-dev, it is not possible to use -lvirt-lxc, as that symlink is not installed.

The symlink /usr/lib/liblxc-qemu.so is properly installed, it's just the lxc that's missing.

[IMPACT]
installing libvirt-dev does not allow linking against -lvirt-lxc

[TEST CASE]

cat > testme.c << EOF
#include <stdio.h>

int main() { printf("hello, world\n"); }
EOF
gcc -o testme testme.c -lvirt-lxc

[REGRESSION POTENTIAL]

This only adds a link to the libvirt-dev package, and makes no code change,
so regression should be zero.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

On trusty's 1.2.2 this link is present. Please tell us which version you are using, so that we
can backport the link.

Changed in libvirt (Ubuntu):
status: New → Incomplete
Revision history for this message
Ondergetekende (kvdveer) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks - there is an ongoing SRU , so we will need to wait until that one is cleared.

Changed in libvirt (Ubuntu):
status: Incomplete → Fix Released
importance: Undecided → High
Changed in libvirt (Ubuntu Saucy):
importance: Undecided → High
status: New → Confirmed
description: updated
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ondergetekende, or anyone else affected,

Accepted libvirt into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libvirt/1.1.1-0ubuntu8.8 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in libvirt (Ubuntu Saucy):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Ondergetekende, or anyone else affected,

Accepted libvirt into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libvirt/1.1.1-0ubuntu8.9 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Works for me:

root@sauce:~# cat > testme.c << EOF
> #include <stdio.h>
>
> int main() { printf("hello, world\n"); }
> EOF
root@sauce:~# gcc -o testme testme.c -lvirt-lxc
/usr/bin/ld: cannot find -lvirt-lxc
collect2: error: ld returned 1 exit status

root@sauce:~# apt-get update
root@sauce:~# apt-get -y install libvirt-dev
root@sauce:~# dpkg -l | grep libvirt-dev
ii libvirt-dev 1.1.1-0ubuntu8.9 amd64 development files for the libvirt library
root@sauce:~# cat > testme.c << EOF
> #include <stdio.h>
>
> int main() { printf("hello, world\n"); }
> EOF
root@sauce:~# gcc -o testme testme.c -lvirt-lxc
root@sauce:~# ./testme
hello, world

tags: added: verification-done
removed: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Ondergetekende, or anyone else affected,

Accepted libvirt into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libvirt/1.1.1-0ubuntu8.10 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: removed: verification-done
tags: added: verification-needed
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 1.1.1-0ubuntu8.10

---------------
libvirt (1.1.1-0ubuntu8.10) saucy-proposed; urgency=medium

  * remove lp1264465/* as it did not pass verification

libvirt (1.1.1-0ubuntu8.9) saucy-proposed; urgency=medium

  * fix badly applied patch
    0001-qemu-hotplug-only-label-hostdev-after-checking-device-conflicts

libvirt (1.1.1-0ubuntu8.8) saucy-proposed; urgency=medium

  [ Stefan Bader ]
  * debian/patches/ubuntu-xend-probe.patch: Fix search path for xen-toolstack
    command (LP: #1248025)
  * debian/patches/libxl-fix-dom0-detection.patch: Check contents of
    /proc/xen/capabilities to decide whether running in dom0. (LP: #1248025)

  [ Serge Hallyn ]
  * debian/libvirt-dev.install: add libvirt-lxc.so (LP: #1287232)
 -- Serge Hallyn <email address hidden> Thu, 17 Apr 2014 09:57:23 -0500

Changed in libvirt (Ubuntu Saucy):
status: Fix Committed → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote : Update Released

The verification of the Stable Release Update for libvirt has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

Kudos guys for getting this fixed !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.