[lxc-devel] No libcap.a on Fedora and derived distros

Serge Hallyn serge.hallyn at ubuntu.com
Mon Jun 9 18:51:53 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On Mon, Jun 09, 2014 at 02:34:07PM -0400, Dwight Engen wrote:
> > On Mon, 9 Jun 2014 14:14:31 -0400
> > Stéphane Graber <stgraber at ubuntu.com> wrote:
> > 
> > > On Mon, Jun 09, 2014 at 02:10:36PM -0400, Dwight Engen wrote:
> > > > Hi,
> > > > 
> > > > I ran into a bit of a problem building master:
> > > > Fedora (and derived distro's such as CentOs, Oracle, RHEL) don't
> > > > ship with a static lib for libcap, which is needed to build
> > > > init.lxc.static (commit 2d4b3e3d). Apparently [1] Fedora doesn't
> > > > intend to ship one, thus there isn't a libcap-static. Any ideas of
> > > > how we want to proceed here? I guess we can just not build it and
> > > > it won't be available on these distros?
> > > 
> > > So I got into a similar problem with the Android port initially though
> > > there I just changed the build process to retain the .a, therefore
> > > fixing the issue.
> > > 
> > > But while debugging that, I think Serge told me that he doesn't really
> > > see why libcap is even required for the static init as it doesn't
> > > actually do any capability operation itself.
> > > 
> > > So maybe the right answer is to fix the code to no longer need that
> > > dependency on libcap.a.
> > 
> > Well I quickly tried manually linking it without -lcap and caps.o, but
> > lxc_init.c does call lxc_caps_init() and lxc_caps_reset(), are you
> > saying these calls are not needed?
> 
> Serge? ^

Right - it's init, imo it shouldn't be dropping caps...


More information about the lxc-devel mailing list