[lxc-devel] [PATCH] fix build with cgmanager on Fedora

Serge Hallyn serge.hallyn at ubuntu.com
Wed Feb 5 23:13:15 UTC 2014


Quoting Dwight Engen (dwight.engen at oracle.com):
> - configure fails to compile the cgmanager test without -lnih -lnih-dbus
> 
> - fix include path from cgmanger commit f1d9bd1a
> 
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  configure.ac        | 2 +-
>  src/lxc/cgmanager.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index f9e718c..067ab86 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -246,7 +246,7 @@ AC_ARG_ENABLE([cgmanager],
>  	[], [enable_cgmanager=auto])
>  
>  if test "x$enable_cgmanager" = "xauto" ; then
> -	AC_CHECK_LIB([cgmanager],[cgmanager_create],[enable_cgmanager=yes],[enable_cgmanager=no])
> +	AC_CHECK_LIB([cgmanager],[cgmanager_create],[enable_cgmanager=yes],[enable_cgmanager=no],[-lnih -lnih-dbus])
>  fi
>  AM_CONDITIONAL([ENABLE_CGMANAGER], [test "x$enable_cgmanager" = "xyes"])
>  
> diff --git a/src/lxc/cgmanager.c b/src/lxc/cgmanager.c
> index 29a0b58..a3faac1 100644
> --- a/src/lxc/cgmanager.c
> +++ b/src/lxc/cgmanager.c
> @@ -54,7 +54,7 @@
>  lxc_log_define(lxc_cgmanager, lxc);
>  
>  #include <nih-dbus/dbus_connection.h>
> -#include <cgmanager-client/cgmanager-client.h>
> +#include <cgmanager/cgmanager-client.h>

Oh, sorry, I just pushed this by hand 30 seconds after I finally
got it moved the right way in our cgmanager package.

I'll push the other part of your patch.

>  #include <nih/alloc.h>
>  #include <nih/error.h>
>  #include <nih/string.h>
> -- 
> 1.8.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list