From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 16 21:31:25 2011 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 B4A541065674 for ; Sun, 16 Jan 2011 21:31:25 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7436A8FC0A for ; Sun, 16 Jan 2011 21:31:25 +0000 (UTC) Received: from [172.31.193.10] (rrcs-98-101-145-84.midsouth.biz.rr.com [98.101.145.84]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id p0GLVOjr013247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 16 Jan 2011 16:31:24 -0500 (EST) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu p0GLVOjr013247 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1295213484; bh=AA+16ZkR0WkV6VFD0GJVkLQNkV0VOK/uogFXa9UqJjw=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=gdHGe/GmphyIZiF+5bzoiWSAWwzLWbXXAz6XxsoTOe8kb03vVBX+kEDtxTam1T6Iu PQhb1cmLXP5NhP9zEJr2HKweiKcfXd6I6iZ3XkYlypebwdHRuXIcUHoRlW6KufY1x2 KtM+US82a6xCtft3+A656FEohfOXPJsHncjsxDpdCTu5QvBxYURgZiPSYJwR8J5J93 LH7eosWE0pZH4BgNlBH6AgnWb1kdM/4UD20Fp6AwMdK+behha54OMk+nMwqXaJtCEm bXV5hEf7it8hn5B3xyac2gH4Qlp9xXtXUuQSedWe7nc9Puk3Ios0x1tFfFD4TeNfMH FG5DINi1WexNA== Message-ID: <4D3363A5.9000207@cs.duke.edu> Date: Sun, 16 Jan 2011 16:31:17 -0500 From: Andrew Gallatin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: epoll workaround for linux java? 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: Sun, 16 Jan 2011 21:31:25 -0000 Hi, I'm trying to run SageTV, which is a commercial, closed source linux media server on -current. It is a Java based application that uses "native" linux JNI libs for accessing video tuner cards, so unfortunately I must run the Linux JVM, and not a native JVM. I've installed the default linux_base-f10, and the linux-sun-jdk-1.6.0.22. When I start the application, it semi-works, but the clients cannot connect. Using kdump && linux-ktrace, I think I've narrowed the problem to: 9613 java CALL linux_epoll_create 9613 java RET linux_epoll_create -1 errno 78 Function not implemented 9613 java CALL gettimeofday(0x513c9ea0,0) 9613 java RET gettimeofday 0 9613 java CALL gettimeofday(0x513c9eb4,0) 9613 java RET gettimeofday 0 9613 java CALL write(0x4,0x513c7cb0,0x78) 9613 java GIO fd 4 wrote 120 bytes "Sun 1/16 12:05:57.648 [MiniUIServer@14b5f4a] MiniUI ServerSocket died from:java.io.IOException: Function not impleme\ nted" I've done some googling, and it appears that epoll support was worked on as a SOC project in 2007 by rdivacky. Eg: http://p4db.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/soc2007/rdivacky/linux_epoll/sys/compat/linux/linux_epoll.c Were there problems with this code? Last, is there any workaround to be able to use a linux jvm? Perhaps by using a different linux base? What would I be giving up? Thanks! Drew