[lxc-devel] How to make lxc

Yuji NISHIDA nishidy at nict.go.jp
Tue Nov 9 00:24:12 UTC 2010


# rpm -q glibc
glibc-2.8-3.x86_64
glibc-2.8-3.i686

Should that be the reason?
I need to add defines in utmp.c then it works.

#define TFD_CLOEXEC O_CLOEXEC
#define TFD_NONBLOCK O_NONBLOCK

-----
Yuji Nishida
nishidy at nict.go.jp

On 2010/11/09, at 0:10, Daniel Lezcano wrote:

> On 11/08/2010 10:48 AM, Yuji NISHIDA wrote:
>> Hi
>> 
>> I found the following errors which I could find every version of LXC included git one.
>> 
>> gcc -DHAVE_CONFIG_H -I. -I../../src    -fPIC -DPIC -I../../src -g -O2 -Wall -MT liblxc_so-utmp.o -MD -MP -MF .deps/liblxc_so-utmp.Tpo -c -o liblxc_so-utmp.o `test -f 'utmp.c' || echo './'`utmp.c
>> utmp.c: In function 'lxc_utmp_add_timer':
>> utmp.c:337: error: 'TFD_NONBLOCK' undeclared (first use in this function)
>> utmp.c:337: error: (Each undeclared identifier is reported only once
>> utmp.c:337: error: for each function it appears in.)
>> utmp.c:337: error: 'TFD_CLOEXEC' undeclared (first use in this function)
>> 
>> I did
>> ./autogen.sh
>> ./configure
>> make
>> 
>> I know defines for those two variables in sys/timerfd.h from kernel source.
>> How do I make this without such errors?
>> 
> 
> Is it possible you have an old glibc ?
> 





More information about the lxc-devel mailing list