From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 10 20:05:27 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70261106567C for ; Wed, 10 Mar 2010 20:05:27 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 55FB38FC33 for ; Wed, 10 Mar 2010 20:05:27 +0000 (UTC) Received: from jnielsen.socialserve.com ([12.53.251.10]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id o2AK5Opf005648; Wed, 10 Mar 2010 15:05:25 -0500 (EST) (envelope-from lists@jnielsen.net) From: John Nielsen To: Alexander Leidinger Date: Wed, 10 Mar 2010 15:05:17 -0500 User-Agent: KMail/1.12.4 (Darwin/9.8.0; KDE/4.3.4; i386; ; ) References: <201003021325.27197.lists@jnielsen.net> <201003081728.14735.lists@jnielsen.net> <20100309093421.15072yygd5bvkm4g@webmail.leidinger.net> In-Reply-To: <20100309093421.15072yygd5bvkm4g@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003101505.17123.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: linux-only jail possible? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 20:05:27 -0000 On Tuesday 09 March 2010 03:34:21 Alexander Leidinger wrote: > Quoting John Nielsen (from Mon, 8 Mar 2010 > > 17:28:14 -0500): > > I hit another hurdle with Apache but I don't seem to be the first. > > httpd will start but its forked connection-handling children die: > > > > linux: pid 79586 (httpd): syscall epoll_create not implemented > > pid 79586 (httpd), uid 48: exited on signal 11 > > > > I saw on the wiki that epoll_create support is in perforce. Is that > > still a true statement? If so what is the most straightforward way to > > get a patch to test against? > > This is not complete. The most easy way would be to recompile apache > without epoll support (if in doubt edit the config.h by hand to undef > the epoll stuff). This took some head-scratching but I eventually determined that it was the RPM for apr (rather than httpd itself) that needed to be rebuilt. I temporarily renamed /usr/include/sys/epoll.h on my Linux build host while building the RPM and that seems to have done the trick. With the tweaked apr RPM Apache can now serve requests from the jail. I'm definitely getting closer. After some more testing I hope to write up the complete process for posterity. Stay tuned and thanks again for the pointers. JN