[lxc-devel] [PATCH 1/4] lxc-init: use lxc_mainloop

Daniel Lezcano daniel.lezcano at free.fr
Sun Dec 4 10:33:10 UTC 2011


On 11/08/2011 12:49 PM, Greg Kurz wrote:
> The goal here is to be able to multiplex several event sources in
> lxc-init. It will be a lot easier to add I/O driven features: for
> example, a rexec-like service to start extra commands in a
> container.
>
> Signed-off-by: Greg Kurz <gkurz at fr.ibm.com>
> Signed-off-by: Cedric Le Goater <clg at fr.ibm.com>
> ---

Hi Greg,

the compilation fails with:

gcc -I../../src -DLXCROOTFSMOUNT=\"/usr/lib/lxc/rootfs\"
-DLXCPATH=\"/var/lib/lxc\" -DLXCINITDIR=\"/usr/lib/lxc\" -g -O2 -Wall
-lutil  -o lxc-init lxc_init.o liblxc.so -lcap
/usr/bin/ld: lxc_init.o: undefined reference to symbol
'login_tty@@GLIBC_2.0'
/usr/bin/ld: note: 'login_tty@@GLIBC_2.0' is defined in DSO
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libutil.so so
try adding it to the linker command line
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libutil.so:
could not read symbols: Invalid operation
collect2: ld returned 1 exit status





More information about the lxc-devel mailing list