From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 2 22:31:22 2009 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 2B9671065693 for ; Wed, 2 Dec 2009 22:31:22 +0000 (UTC) (envelope-from fb-emulation@psconsult.nl) Received: from mx1.psconsult.nl (psc11.adsl.iaf.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id 94D2D8FC1B for ; Wed, 2 Dec 2009 22:31:21 +0000 (UTC) Received: from mx1.psconsult.nl (localhost [80.89.238.138]) by mx1.psconsult.nl (8.14.2/8.14.2) with ESMTP id nB2MVFZx009405 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Dec 2009 23:31:20 +0100 (CET) (envelope-from fb-emulation@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.2/8.14.2/Submit) id nB2MVFjN009404; Wed, 2 Dec 2009 23:31:15 +0100 (CET) (envelope-from fb-emulation@psconsult.nl) Date: Wed, 2 Dec 2009 23:31:15 +0100 From: Paul Schenkeveld To: freebsd-emulation@FreeBSD.org Message-ID: <20091202223114.GA8491@psconsult.nl> Mail-Followup-To: freebsd-emulation@FreeBSD.org, Jung-uk Kim References: <20091202165833.GA813@psconsult.nl> <200912021319.12013.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200912021319.12013.jkim@FreeBSD.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Jung-uk Kim Subject: Re: Missing syscall linux_base-f10 on 8.0-R (amd64) 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, 02 Dec 2009 22:31:22 -0000 On Wed, Dec 02, 2009 at 01:19:10PM -0500, Jung-uk Kim wrote: > On Wednesday 02 December 2009 11:58 am, Paul Schenkeveld wrote: > > Hi, > > > > I'm trying to run an old linux executable on 8.0-R amd64 under > > linux_base-f10. The app (we have no sources) fails when trying to > > open a pipe to the lp command. With truss I see the following: > > > > 70291: read(0,"\n",4096) = 1 (0x1) > > 70291: > > linux_socketcall(0x9,0xffffb424,0x81b0150,0x81b0150,0x81a5ac8,0x6) > > = 4 (0x4) 70291: > > linux_socketcall(0xa,0xffffb400,0x81afc08,0x4,0x81a5c9c,0x6) = 12 > > (0xc) 70291: linux_access(0x8187fc8,0x4,0x8187fc8,0x6,0x0,0x6) > > ERR#2 'No such file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0x6,0x0,0x6) ERR#2 'No such > > file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0x6,0x0,0x6) ERR#2 'No such > > file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xe,0xb,0x6) ERR#2 'No such > > file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xe,0xffffae84,0x6) ERR#2 'No > > such file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xe,0xffffae84,0x6) ERR#2 'No > > such file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xe,0xffffae84,0x6) ERR#2 'No > > such file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xe,0xb,0x6) ERR#2 'No such > > file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xe,0xffffae84,0x6) ERR#2 'No > > such file or directory' 70291: > > linux_access(0x8187fc8,0x4,0x8187fc8,0xffffae84,0xe,0x6) = 0 (0x0) > > 70291: linux_open("/some/file",0x0,00) = 6 (0x6) > > 70291: read(6,"xxxxxx",6) = 6 (0x6) > > 70291: read(6,0xffffafbc,13) = 0 (0x0) > > 70291: close(6) = 0 (0x0) > > -- UNKNOWN SYSCALL 331 -- > > 70291: write(2,"\n ",5) = 5 (0x5) > > > > Is this a system call missing in linux_base-f10 or in the kernel > > part of the linux emulation? The app user to run on 6.2-R i386 > > with linux_base-fc-4. We are trying to move to 8.0-R amd64 to get > > stable ZFS support. > > Linux syscall 331 is pipe2(2) and it was added in Linux 2.6.27 and > glibc 2.9 according to the Linux manual page: > > http://www.kernel.org/doc/man-pages/online/pages/man2/pipe.2.html > > Linuxulator in kernel does not support it. You may try older > linux_base instead. I replaced linux_base-f10 by -fc4 and now our app works fine. Thanks a lot for your help! > Jung-uk Kim Paul Schenkeveld