All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
To: anqin <anqin.qin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Linux Containers
	<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	LXC Development
	<lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: lxc : linux containers tool 0.6.0 release
Date: Mon, 23 Mar 2009 10:26:10 +0100	[thread overview]
Message-ID: <49C755B2.90104@fr.ibm.com> (raw)
In-Reply-To: <d95d44a20903230158l42459b45x3cc5e0c05113bb04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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.

  parent reply	other threads:[~2009-03-23  9:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 15:04 lxc : linux containers tool 0.6.0 release Daniel Lezcano
     [not found] ` <499EC673.8020808-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-03-23  7:48   ` anqin
     [not found]     ` <d95d44a20903230048ke520376gd7701de00ff4e72d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23  8:18       ` Américo Wang
2009-03-23  8:34         ` anqin
     [not found]           ` <d95d44a20903230134j5d527b3cn3e7497069c128856-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23  8:45             ` anqin
     [not found]               ` <d95d44a20903230145m441abd8fga4bba277ba783e42-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23  8:52                 ` Daniel Lezcano
     [not found]                   ` <49C74DB3.50004-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-03-23  8:58                     ` anqin
     [not found]                       ` <d95d44a20903230158l42459b45x3cc5e0c05113bb04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23  9:26                         ` Daniel Lezcano [this message]
     [not found]                           ` <49C755B2.90104-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-03-23  9:38                             ` anqin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49C755B2.90104@fr.ibm.com \
    --to=dlezcano-nmtc/0zbporqt0dzr+alfa@public.gmane.org \
    --cc=anqin.qin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.