Project

General

Profile

Bug #797

Add more test for epoll in configure

Added by Yannick Brosseau almost 6 years ago. Updated over 4 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'

#1

Updated by David Goulet over 5 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 ?

#2

Updated by David Goulet over 5 years ago

  • Status changed from Confirmed to Feedback
#3

Updated by David Goulet over 5 years ago

  • Target version deleted (2.5)
#4

Updated by Jérémie Galarneau over 4 years ago

  • Target version set to Wishlist

Any update?

Also available in: Atom PDF