[lxc-devel] commit d021832111871f46bbce7edb0806944b4247b5d0 code build failed on Fedora19

Serge Hallyn serge.hallyn at ubuntu.com
Thu Jun 19 14:16:28 UTC 2014


Quoting Stéphane Graber (stgraber at ubuntu.com):
> On Thu, Jun 19, 2014 at 04:14:25PM +0800, simonjin wrote:
> > All,
> > 
> > gcc -I../../src -DLXCROOTFSMOUNT=\"/usr/lib64/lxc/rootfs\"
> > -DLXCPATH=\"/usr/var/lib/lxc\"
> > -DLXC_GLOBAL_CONF=\"/usr/etc/lxc/lxc.conf\"
> > -DLXCINITDIR=\"/usr/libexec\" -DLIBEXECDIR=\"/usr/libexec\"
> > -DLXCTEMPLATEDIR=\"/usr/share/lxc/templates\"
> > -DLOGPATH=\"/usr/var/log/lxc\"
> > -DLXC_DEFAULT_CONFIG=\"/usr/etc/lxc/default.conf\"
> > -DLXC_USERNIC_DB=\"/run/lxc/nics\"
> > -DLXC_USERNIC_CONF=\"/usr/etc/lxc/lxc-usernet\"
> > -DDEFAULT_CGROUP_PATTERN=\"/lxc/%n\" -DRUNTIME_PATH=\"/run\"
> > -DSBINDIR=\"/usr/sbin\"   -DHAVE_SELINUX  -DHAVE_SECCOMP  -g -O2
> > -Wall -Werror -static  -o init.lxc.static lxc_init.o error.o log.o
> > utils.o caps.o   -lutil -lpthread -lselinux
> > /usr/bin/ld: cannot find -lselinux
> > /usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../lib64/libpthread.a(libpthread.o):
> > In function `sem_open':
> > (.text+0x67fb): warning: the use of `mktemp' is dangerous, better
> > use `mkstemp'
> > collect2: error: ld returned 1 exit status
> > make[3]: *** [init.lxc.static] Error 1
> 
> Serge, looks like we have one more problem with the static init.lxc, why
> would it need to be linked with libselinux?

more configure.ac badness.

I'll send out a patch to hopefully fix all of these issues today, hopefully
after I get the seccomp cross-arch stuff done, but if that drags out then
I'll do it before.


More information about the lxc-devel mailing list