Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting epoll system calls to work with gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
chatgris
Guru
Guru


Joined: 14 Oct 2002
Posts: 383
Location: Canada

PostPosted: Thu May 06, 2004 12:15 am    Post subject: Getting epoll system calls to work with gentoo Reply with quote

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 ;)

Joshua Moore-Oliva.
_________________
Open your mind. Open your source.

Due credit for avatar from http://www.aikida.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum