Actions
Bug #797
open
YB
Add more test for epoll in configure
Bug #797:
Add 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'
DG Updated by David Goulet over 11 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 ?
DG Updated by David Goulet over 11 years ago
- Status changed from Confirmed to Feedback
DG Updated by David Goulet over 11 years ago
- Target version deleted (
2.5)
JG Updated by Jérémie Galarneau about 10 years ago
- Target version set to Wishlist
Any update?
Actions