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

Dwight Engen dwight.engen at oracle.com
Wed Feb 5 21:59:10 UTC 2014


- 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>
---
 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>
 #include <nih/alloc.h>
 #include <nih/error.h>
 #include <nih/string.h>
-- 
1.8.5.3



More information about the lxc-devel mailing list