# Eventfd() failed (38: Function not implemented)

**URL:** <https://www.ruby-forum.com/t/eventfd-failed-38-function-not-implemented/244009>\
**Category:** NGINX\
**Created:** [February 4, 2016, 8:28pm UTC](https://www.ruby-forum.com/t/eventfd-failed-38-function-not-implemented/244009 "2016-02-04T20:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [February 4, 2016, 8:28pm UTC](https://www.ruby-forum.com/t/eventfd-failed-38-function-not-implemented/244009/1 "2016-02-04T20:28:43Z")

</div>

I try to run Nginx, but i have error: eventfd() failed (38: Function  
not  
implemented)

I found this patch  
([Re: [1.8.0 stable] bug when install on old linux version](https://forum.nginx.org/read.php?29,258676,258685#REPLY))  
to 1.9.0, i cannot do diff so i do it manualy.

So i found ngx\_epoll\_init(ngx\_cycle\_t

And now my file:

static ngx\_int\_t ngx\_epoll\_init(ngx\_cycle\_t \*cycle, ngx\_msec\_t timer);  
#if (NGX\_HAVE\_EVENTFD)  
if (ngx\_epoll\_notify\_init(cycle-\>log) != NGX\_OK) {

- return NGX\_ERROR;

- ngx\_epoll\_module\_ctx.actions.notify = NULL;  
}  
#endif

But i have compiler error

src/event/modules/ngx\_epoll\_module.c:105: error: expected identifier or  
‘(’  
before ‘if’  
make[1]: \*\*\* [objs/src/event/modules/ngx\_epoll\_module.o] Error 1

Any ideas how to make it working?

Posted at Nginx Forum:

> **[eventfd() failed (38: Function not implemented)](https://forum.nginx.org/read.php?2,264360,264360#msg-264360)**
>
> I try to run Nginx, but i have error: eventfd() failed (38: Function not implemented) I found this patch (https://forum.nginx.org/read.php?29,258676,258685#REPLY) to 1.9.0, i cannot do diff so i do it manualy. So i found ngx\_epoll\_init(ngx\_cycle\_t...

---

<div class="post-metadata">

**Author:** ![sirwiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@sirwiz](https://www.ruby-forum.com/u/sirwiz)\
**Post date:** [February 5, 2016, 2:05pm UTC](https://www.ruby-forum.com/t/eventfd-failed-38-function-not-implemented/244009/2 "2016-02-05T14:05:59Z")

</div>

Hello!

On Thu, Feb 04, 2016 at 02:28:07PM -0500, sirwiz wrote:

> static ngx\_int\_t ngx\_epoll\_init(ngx\_cycle\_t \*cycle, ngx\_msec\_t timer);  
> before ‘if’  
> make[1]: \*\*\* [objs/src/event/modules/ngx\_epoll\_module.o] Error 1
> 
> Any ideas how to make it working?

Try obtaining latest nginx version instead, 1.9.10.  
It can be downloaded here:

> **[nginx: download](http://nginx.org/en/download.html)**

–  
Maxim D.

> **[nginx](http://nginx.org/)**
