# Get alert : sem\_init() failed (78: Function not implemented

**URL:** <https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103>\
**Category:** NGINX\
**Created:** [March 4, 2013, 4:30pm UTC](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103 "2013-03-04T16:30:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meteor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Meteor](https://www.ruby-forum.com/u/Meteor)\
**Post date:** [March 4, 2013, 4:30pm UTC](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103/1 "2013-03-04T16:30:51Z")

</div>

Hi All,

I just upgrade freebsd from 8.1 to 9.1. And after that, every time I  
start Nginx, I’l get below error message:

2013/03/04 09:21:27 [alert] 43757#0: sem\_init() failed (78: Function not  
implemented)  
2013/03/04 09:21:27 [alert] 43757#0: sem\_init() failed (78: Function not  
implemented)

This is the only error message I got, does anyone know how can I fix  
this problem?

Thank

---

<div class="post-metadata">

**Author:** ![Meteor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Meteor](https://www.ruby-forum.com/u/Meteor)\
**Post date:** [March 4, 2013, 4:40pm UTC](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103/2 "2013-03-04T16:40:13Z")

</div>

On Mar 4, 2013, at 19:30 , Meteor wrote:

> Hi All,
> 
> I just upgrade freebsd from 8.1 to 9.1. And after that, every time I start  
> Nginx, I’l get below error message:
> 
> 2013/03/04 09:21:27 [alert] 43757#0: sem\_init() failed (78: Function not  
> implemented)  
> 2013/03/04 09:21:27 [alert] 43757#0: sem\_init() failed (78: Function not  
> implemented)
> 
> This is the only error message I got, does anyone know how can I fix this  
> problem?

Do you FreeBSD?  
You need to rebuilt nginx.

---

<div class="post-metadata">

**Author:** ![Meteor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/839c29/32.png) [@Meteor](https://www.ruby-forum.com/u/Meteor)\
**Post date:** [March 5, 2013, 8:49am UTC](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103/3 "2013-03-05T08:49:52Z")

</div>

On Mar 4, 2013, at 7:30 PM, Meteor [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi All,
> 
> I just upgrade freebsd from 8.1 to 9.1. And after that, every time I start  
> Nginx, I’l get below error message:
> 
> 2013/03/04 09:21:27 [alert] 43757#0: sem\_init() failed (78: Function not  
> implemented)  
> 2013/03/04 09:21:27 [alert] 43757#0: sem\_init() failed (78: Function not  
> implemented)
> 
> This is the only error message I got, does anyone know how can I fix this  
> problem?

You are likely running old binary built against FreeBSD 8.x.  
The latter uses in-kernel implementation of semaphores.  
FreeBSD 9.x switched to the new semaphore implementation based on umtx.  
Here the kernel module is only used to support old binaries for pre-9.x.  
So that’s why you seem “Function not implemented” error message:  
since in 9.x sem isn’t present in the default GENERIC kernel.  
I could try to kldload the module sem.ko, or better upgrade your system  
canonically which means rebuilding nginx, as said in another mail.  
See

> **[Chapter 25. Updating and Upgrading FreeBSD](https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld)**
>
> Information about how to keep a FreeBSD system up-to-date with freebsd-update or Git, how to rebuild and reinstall the entire base system, etc

for the canonical way to update your system.

–  
Sergey Kandaurov  
removed\_email\_address@domain.invalid
