Project

General

Profile

Actions

Bug #797

open

Add more test for epoll in configure

Added by Yannick Brosseau over 10 years ago. Updated about 9 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
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'

Actions #1

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 ?

Actions #2

Updated by David Goulet over 10 years ago

  • Status changed from Confirmed to Feedback
Actions #3

Updated by David Goulet about 10 years ago

  • Target version deleted (2.5)
Actions #4

Updated by Jérémie Galarneau about 9 years ago

  • Target version set to Wishlist

Any update?

Actions

Also available in: Atom PDF