lxc : linux containers tool 0.6.0 release

Daniel Lezcano dlezcano at fr.ibm.com
Mon Mar 23 02:26:10 PDT 2009


anqin wrote:
>> What compilation error do you have ?
>>
> 
> The compilation error is:
> 
> ----------------------
> ...
> In file included from start.c:55:
> ../../src/lxc/lxc.h:175: warning: type qualifiers ignored on function
> return type
> start.c: In function 'lxc_start':
> start.c:339: error: 'PR_CAPBSET_DROP' undeclared (first use in this function)
> start.c:339: error: (Each undeclared identifier is reported only once
> start.c:339: error: for each function it appears in.)
> ...
> ---------------------
> 
> The libcap2 is installed manually by source codes
> (from  http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/)
> And then, I installed the libcap-devel-2.16
> (from  ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/tiwai/openSUSE_10.3/i586/libcap-devel-2.16-2.1.i586.rpm)
> 
> In lxc-0.6.0 directory, "./configure" is ok, but "make" throw out the above
> error message. It seems some predefination is lost.
> 
> Any help? maybe, something wrong in my installation.

This compilation error is coming from the distro you are using which 
does not provide the PR_CAPBSET_DROP. It has been fixed and will be in 
the lxc-0.6.1 which will come as soon as a setcap problem is resolved.

Until I release this new version, you can hack lxc/src/lxc/start.c and add:

#define PR_CAPBSET_DROP 24

That should fix you problem.







More information about the Containers mailing list