[lxc-devel] [PATCH 0/3] The poor man's attach
Cedric Le Goater
legoater at free.fr
Thu Nov 3 08:36:54 UTC 2011
> Hi Greg,
>
> I successfully applied the patches, but the compilation fails with:
>
> /home/dlezcano/work/src/lxc/src/lxc/lxc_init.c:164: undefined reference
> to `lxc_error_set_and_log_siginfo'
> /home/dlezcano/work/src/lxc/src/lxc/lxc_init.c:193: undefined reference
> to `lxc_error_set_and_log_siginfo'
I have a different behavior :
/usr/bin/ld: cannot find -llxc
Probably because you didn't cleanup your build directory ? Anyhow, here's
a fix to be applied on top of Greg's patchset.
Signed-off-by: Cedric Le Goater <clg at fr.ibm.com>
---
src/lxc/Makefile.am | 2 +-
src/lxc/lxc_init.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
Index: lxc.git/src/lxc/Makefile.am
===================================================================
--- lxc.git.orig/src/lxc/Makefile.am
+++ lxc.git/src/lxc/Makefile.am
@@ -113,7 +113,7 @@ lxc_execute_SOURCES = lxc_execute.c
lxc_freeze_SOURCES = lxc_freeze.c
lxc_info_SOURCES = lxc_info.c
lxc_init_SOURCES = lxc_init.c
-lxc_init_LDADD = -lutil -lcap -llxc
+lxc_init_LDFLAGS = -lutil
lxc_monitor_SOURCES = lxc_monitor.c
lxc_restart_SOURCES = lxc_restart.c
lxc_start_SOURCES = lxc_start.c
Index: lxc.git/src/lxc/lxc_init.c
===================================================================
--- lxc.git.orig/src/lxc/lxc_init.c
+++ lxc.git/src/lxc/lxc_init.c
@@ -36,6 +36,7 @@
#include <sys/signalfd.h>
#include <sys/socket.h>
#include <linux/limits.h>
+#include <pty.h>
#include "arguments.h"
#include "log.h"
More information about the lxc-devel
mailing list