Actions
Bug #797
openAdd more test for epoll in configure
Start date:
05/21/2014
Due date:
% Done:
0%
Estimated time:
Description
I was trying to compile lttng-tools on centos 5 (yes I know too old), but configure did not complain.
We should test for the presence of these and fail configure or add a compat layer.
In file included from compat-epoll.c:33:
poll.h:72: error: 'EPOLLRDHUP' undeclared here (not in a function)
poll.h:74: error: 'EPOLL_CLOEXEC' undeclared here (not in a function)
compat-epoll.c: In function 'compat_epoll_create':
compat-epoll.c:84: warning: implicit declaration of function 'epoll_create1'
Updated by David Goulet over 10 years ago
- Status changed from New to Confirmed
- Target version set to 2.5
Hmmm, for epoll_create1(), we check against the glibc version in src/common/compat/poll.h +130
#if __GLIBC_PREREQ(2, 9) static inline int compat_glibc_epoll_create(int size __attribute__((unused)), int flags) { return epoll_create1(flags); } #else ...
So I agree with the symbols you mention (constants) but why would CentOS 5 fail to find epoll_create1 if the glibc is >= 2.9 ?
Updated by David Goulet over 10 years ago
- Status changed from Confirmed to Feedback
Actions