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

simonjin simonjin at linux.vnet.ibm.com
Thu Jun 19 08:14:25 UTC 2014


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

-- 
Yun Tong Jin, Simon
Linux Technology Center, Open Virtualization project
IBM Systems&  Technology Group
jinyt at cn.ibm.com, Phone: 824549654



More information about the lxc-devel mailing list