Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Sep 2016 07:30:53 -0600
From:      James Gritton <jamie@freebsd.org>
To:        Grzegorz Junka <list1@gjunka.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: timerfd in FreeBSD jail?
Message-ID:  <d879c920fcb6798a85a8ee4a5aacf6ab@gritton.org>
In-Reply-To: <d46c175a-1b66-541d-600d-d389cbe183a3@gjunka.com>
References:  <dfdcac92-c5d0-51d5-b307-5c1484c6278d@gjunka.com> <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> <d46c175a-1b66-541d-600d-d389cbe183a3@gjunka.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 2016-09-06 07:08, Grzegorz Junka wrote:
>> On 06/09/2016 12:49, James Gritton wrote:
>> On 2016-09-06 05:38, Grzegorz Junka wrote:
>> I am trying to compile dart-sdk in Centos 6 that's running in a
>> FreeBSD jail. I am getting the following error:
>> 
>> runtime/bin/eventhandler_linux.cc:114: error: Failed creating timerfd
>> file descriptor: 38
>> 
>> Is this a limitation of the jail or I need to enable something to have
>> it available?
>> No idea, given that error message and unfamiliarity with the source.  
>> Is there a linux system call or at >least library function you can 
>> narrow it down to?
> 
> Yes, this is when compiling sipxecs https://github.com/sipXcom/sipxecs, 
> which uses the dart-sdk package >(dart_1.9.1-1_amd64.deb). The dart-sdk 
> has been installed as instructed in this email (by unpacking a .deb):
> 
> https://groups.google.com/forum/#!msg/sipxcom-dev/EeRsfbh32CA/QXalcr0S2p4J
> 
> And the actual file with the error is here (probably not the same 
> version):
> 
> https://github.com/dart-lang/sdk/blob/master/runtime/bin/eventhandler_linux.cc#L114
> 
> So, the linux call would be timerfd_create

It's not a jail problem, but a linux emulation problem.  timerfd_create 
isn't implemented in FreeBSD's linux emulation.  Of note, the "38" is 
linux's ENOSYS errno code.

- Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d879c920fcb6798a85a8ee4a5aacf6ab>