Joined: 14 Oct 2002
|Posted: Thu May 06, 2004 12:15 am Post subject: Getting epoll system calls to work with gentoo
|I've seen a few people ask this, and recently I went ahead to figure this one out and here's the answer...
glibc 2.3.2 currently supports epoll (and I don't know how many previous versions did).
However, even if you have kernel 2.6 installed, by default gentoo will install the "stable" headers at 2.4.
Here's the steps to get a program with epoll_create to compile without warnings about epoll_create not being implemented.
1) Install a 2.6 kernel (Tested with 2.6.5)
2) update linux-headers to 2.6.x (Tested with 2.6.5.. linux-headers is a package)
3) recompile gcc
now your programs will compile and epoll_* will work.
I hope that helps you programmers out there, as epoll is far more elegant and useful than poll or select IMHO
Open your mind. Open your source.
Due credit for avatar from http://www.aikida.net