[libvirt] Latest git tree doesn't compile

Florian Vichot florian.vichot at diateam.net
Wed May 13 15:50:42 UTC 2009

Hello everyone,

I just got the latest and grooviest libvirt from the git tree at :
but compiling fails:

/bin/bash ../mylibtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include
-I../qemud -I/usr/include/libxml2      -DLIBDIR=\""/usr/local/lib"\"
-DBINDIR=\""/usr/local/libexec"\" -DSBINDIR=\""/usr/local/sbin"\"
-DLOCAL_STATE_DIR=\""/usr/local/var"\" -DGETTEXT_PACKAGE=\"libvirt\"
-Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
-Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fasynchronous-unwind-tables     -g -O2 -MT lxc_driver.lo -MD -MP -MF
.deps/lxc_driver.Tpo -c -o lxc_driver.lo lxc_driver.c
(CC) -o lxc_driver.lo lxc_driver.c
lxc_container.c: In function 'lxcContainerDropCapabilities':
lxc_container.c:657: error: 'PR_CAPBSET_DROP' undeclared (first use in
this function)
lxc_container.c:657: error: (Each undeclared identifier is reported only
lxc_container.c:657: error: for each function it appears in.)

Apparently, my machine doesn't have the PR_CAPBSET_DROP flag defined.
It's inexistent in sys/capability.h and "man prctl".

I run a Ubuntu 8.04, kernel is 2.6.24-24-openvz.

Am I missing headers that are not tested for in the ./configure ? If
not, any way that functionality could be disabled on distros that don't
support it ?


More information about the libvir-list mailing list