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

Stéphane Graber stgraber at ubuntu.com
Thu Jun 19 13:50:45 UTC 2014


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?


> 
> -- 
> Yun Tong Jin, Simon
> Linux Technology Center, Open Virtualization project
> IBM Systems&  Technology Group
> jinyt at cn.ibm.com, Phone: 824549654
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140619/4f102db4/attachment.sig>


More information about the lxc-devel mailing list