compile error on centos?
Added by ruud - about 10 years ago
Hi,
been trying to compile latest git version 20141122 (today) using the following commands:
./configure --release --prefix=/usr --disable-libav make && make install
I get the following error:
CC src/uuid.o src/uuid.c: In function ‘uuid_init’: src/uuid.c:97: error: ‘O_CLOEXEC’ undeclared (first use in this function) src/uuid.c:97: error: (Each undeclared identifier is reported only once src/uuid.c:97: error: for each function it appears in.) make: *** [/opt/src/tvheadend/tvheadend.20141122/build.linux/src/uuid.o] Error 1
any hints?
really looking forward to update my currently installed version
Replies (3)
RE: compile error on centos? - Added by Prof Yaffle about 10 years ago
A quick google suggests that this was a problem a couple of years ago on old kernels - O_CLOEXEC was introduced in kernel 2.6.23 but CentOS didn't have that kernel at that time.
What version of CentOS, what does uname -a report as a kernel version?
RE: compile error on centos? - Added by ruud - about 10 years ago
Thanks for looking over my shoulder
Linux development.xyz.lan 2.6.32.26-175.timb1.i686 #1 SMP Wed Jan 19 22:50:45 GMT 2011 i686 i686 i386 GNU/Linux
RE: compile error on centos? - Added by Prof Yaffle about 10 years ago
Hmmm - kernel version suggests 'yes', build warning says 'no'... but that still sounds like the problem.
All I can suggest is Googling around at the variosu CentOS-related patches that are out there - #define-ing O_CLOEXEC to NOOP and similar. Damned if I can tell you what the implications are, though... or get a new kernel, 2.6.anything is looking a little old now.