From owner-freebsd-jail@freebsd.org Tue Sep 6 13:30:57 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D90AFBC47C4 for ; Tue, 6 Sep 2016 13:30:57 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [199.192.165.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.gritton.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A756CF88 for ; Tue, 6 Sep 2016 13:30:57 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [199.192.165.131]) by gritton.org (8.15.2/8.15.2) with ESMTPS id u86DUrbM081602 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 6 Sep 2016 07:30:53 -0600 (MDT) (envelope-from jamie@freebsd.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id u86DUrjr081601; Tue, 6 Sep 2016 07:30:53 -0600 (MDT) (envelope-from jamie@freebsd.org) X-Authentication-Warning: gritton.org: www set sender to jamie@freebsd.org using -f To: Grzegorz Junka Subject: Re: timerfd in FreeBSD jail? X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 06 Sep 2016 07:30:53 -0600 From: James Gritton Cc: freebsd-jail@freebsd.org In-Reply-To: References: <7c43d0f1052c93b1e074c4dd2ee8340d@gritton.org> Message-ID: X-Sender: jamie@freebsd.org User-Agent: Roundcube Webmail/1.2.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 13:30:57 -0000 > 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