From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 11:00:47 2006 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 398CA16A609 for ; Sun, 17 Sep 2006 11:00:47 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C80643D67 for ; Sun, 17 Sep 2006 11:00:44 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8HB0h0d005877 for ; Sun, 17 Sep 2006 11:00:43 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8HB0hdn005876; Sun, 17 Sep 2006 11:00:43 GMT (envelope-from gnats) Date: Sun, 17 Sep 2006 11:00:43 GMT Message-Id: <200609171100.k8HB0hdn005876@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/102897: commit references a PR X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2006 11:00:47 -0000 The following reply was made to PR ports/102897; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/102897: commit references a PR Date: Sun, 17 Sep 2006 10:56:43 +0000 (UTC) netchild 2006-09-17 10:56:16 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/compat/linux linux_file.c Log: MFC rev 1.97: The Linux unlink syscall uses a different errno value when trying to unlink a directory. PR: 102897 [1] http://www.FreeBSD.org/cgi/query-pr.cgi?pr=102897 Noticed by: Knut Anders Hatlen [1], testrun with LTP Submitted by: Marcin Cieslak Tested by: netchild (LTP test run) Approved by: re Revision Changes Path 1.91.2.1 +7 -0 src/sys/compat/linux/linux_file.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 11:12:09 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F3F816A417 for ; Sun, 17 Sep 2006 11:12:09 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C6A643D58 for ; Sun, 17 Sep 2006 11:12:07 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E5B9.dip.t-dialin.net [84.165.229.185]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8HAnFbl032382; Sun, 17 Sep 2006 12:49:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8HBC0MP050124; Sun, 17 Sep 2006 13:12:00 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 17 Sep 2006 13:12:28 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060917131228.42b2cd23@Magellan.Leidinger.net> In-Reply-To: <26755448@bsam.ru> References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MP_hVqxU7HOFPeEiuvZfHCf_fb X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 11:12:09 -0000 --MP_hVqxU7HOFPeEiuvZfHCf_fb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Quoting Boris Samorodov (Sun, 17 Sep 2006 03:24:23 +0400): > On Sat, 16 Sep 2006 17:18:40 +0200 Alexander Leidinger wrote: > > > Anyone with an amd64 system out there and willing to test this (with > > the LTP testsuite as described on > > http://wiki.freebsd.org/linux-kernel)? Because this doesn't seems to be > > the final fix, it isn't necessary to test this particular patch, but it > > would be nice to know if there are some differences between the results > > on i386 (as can be seen in the wiki) and amd64. > > Should the patch (linuxolator-p4.diff) from a wiki page be applied to > -current? It applies well but the kernel is not builded: > ----- > /usr/src/sys/compat/linux/linux_aio.c:47:36: machine/../linux/linux.h: No such file or directory > /usr/src/sys/compat/linux/linux_aio.c:48:42: machine/../linux/linux_proto.h: No such file or directory I committed the attached patch to p4 (please give it a try), I didn't updated the patch on the webpage yet. Bye, Alexander. -- Want colour in your directory listings? Use "ls -G". "ls -F" is also useful, and they can be combined as "ls -FG". http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 --MP_hVqxU7HOFPeEiuvZfHCf_fb Content-Type: text/x-patch; name=amd64.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=amd64.diff Change 106236 by netchild@netchild_magellan on 2006/09/17 11:08:35 Include the right files on amd64. Noticed by: bsam Affected files ... ... //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#3 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#3 (text+ko) ==== @@ -44,8 +44,13 @@ #include #include +#ifdef COMPAT_LINUX32 +#include +#include +#else #include #include +#endif #define LINUX_AIO_DEBUG --MP_hVqxU7HOFPeEiuvZfHCf_fb-- From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 11:24:51 2006 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 022C616A412; Sun, 17 Sep 2006 11:24:51 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B089543D4C; Sun, 17 Sep 2006 11:24:50 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8HBOo02007438; Sun, 17 Sep 2006 11:24:50 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8HBOoL3007434; Sun, 17 Sep 2006 11:24:50 GMT (envelope-from netchild) Date: Sun, 17 Sep 2006 11:24:50 GMT From: Alexander Leidinger Message-Id: <200609171124.k8HBOoL3007434@freefall.freebsd.org> To: kahatlen@gmail.com, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/102897: linux_base-fc-4 - remove() function does not delete empty directories 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, 17 Sep 2006 11:24:51 -0000 Synopsis: linux_base-fc-4 - remove() function does not delete empty directories State-Changed-From-To: patched->closed State-Changed-By: netchild State-Changed-When: Sun Sep 17 11:24:14 UTC 2006 State-Changed-Why: Fix committed to RELENG_6. http://www.freebsd.org/cgi/query-pr.cgi?pr=102897 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 11:48:07 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C72FA16A412 for ; Sun, 17 Sep 2006 11:48:07 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E6C43D95 for ; Sun, 17 Sep 2006 11:48:06 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.151]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HBlmLt099295; Sun, 17 Sep 2006 15:47:58 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GOv7h-0000E9-LW; Sun, 17 Sep 2006 15:47:45 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> From: Boris Samorodov Date: Sun, 17 Sep 2006 15:47:45 +0400 In-Reply-To: <20060917131228.42b2cd23@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 17 Sep 2006 13:12:28 +0200") Message-ID: <60660670@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 11:48:07 -0000 On Sun, 17 Sep 2006 13:12:28 +0200 Alexander Leidinger wrote: > Quoting Boris Samorodov (Sun, 17 Sep 2006 03:24:23 +0400): > > /usr/src/sys/compat/linux/linux_aio.c:47:36: machine/../linux/linux.h: No such file or directory > > /usr/src/sys/compat/linux/linux_aio.c:48:42: machine/../linux/linux_proto.h: No such file or directory > I committed the attached patch to p4 (please give it a try), I didn't > updated the patch on the webpage yet. I applied the patch manually, but it didn't help. The same error: ----- /usr/src/sys/compat/linux/linux_aio.c:51:36: machine/../linux/linux.h: No such file or directory /usr/src/sys/compat/linux/linux_aio.c:52:42: machine/../linux/linux_proto.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 ----- But I use GENERIC where COMPAT_LINUX32 is defined. I'll try to check it from the beginning (cvsup to -current and so on). WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 13:52:29 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D91B416A407 for ; Sun, 17 Sep 2006 13:52:29 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 172B643D49 for ; Sun, 17 Sep 2006 13:52:28 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.151]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HDq9Os018126; Sun, 17 Sep 2006 17:52:20 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GOx44-0000KF-1E; Sun, 17 Sep 2006 17:52:08 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> From: Boris Samorodov Date: Sun, 17 Sep 2006 17:52:08 +0400 In-Reply-To: <60660670@bsam.ru> (Boris Samorodov's message of "Sun, 17 Sep 2006 15:47:45 +0400") Message-ID: <46427671@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 13:52:29 -0000 On Sun, 17 Sep 2006 15:47:45 +0400 Boris Samorodov wrote: > On Sun, 17 Sep 2006 13:12:28 +0200 Alexander Leidinger wrote: > > Quoting Boris Samorodov (Sun, 17 Sep 2006 03:24:23 +0400): > > > /usr/src/sys/compat/linux/linux_aio.c:47:36: machine/../linux/linux.h: No such file or directory > > > /usr/src/sys/compat/linux/linux_aio.c:48:42: machine/../linux/linux_proto.h: No such file or directory > > I committed the attached patch to p4 (please give it a try), I didn't > > updated the patch on the webpage yet. > I applied the patch manually, but it didn't help. The same error: > ----- > /usr/src/sys/compat/linux/linux_aio.c:51:36: machine/../linux/linux.h: No such file or directory > /usr/src/sys/compat/linux/linux_aio.c:52:42: machine/../linux/linux_proto.h: No such file or directory > mkdep: compile failed > *** Error code 1 > Stop in /usr/obj/usr/src/sys/GENERIC. > *** Error code 1 > ----- > But I use GENERIC where COMPAT_LINUX32 is defined. I'll try to check > it from the beginning (cvsup to -current and so on). I'm stalled. Your last patch (amd64.diff) alone (after cvsup to -current) works -- at least the kernel is built without errors. But if I apply the patch from wiki (linuxolator-p4.diff) the kernel stops with the error. But somehow it stops at line 51 of sys/compat/linux/linux_aio.c. But: ----- tinderbox# cat -n /usr/src/sys/compat/linux/linux_aio.c | head -53 | tail -7 47 #ifdef COMPAT_LINUX32 48 #include 49 #include 50 #else 51 #include 52 #include 53 #endif ----- And: ----- tinderbox# grep LINUX /sys/amd64/conf/GENERIC options COMPAT_LINUX32 # Compatible with i386 linux binaries ----- Help...! Thanks! WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 15:45:26 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71D8116A407 for ; Sun, 17 Sep 2006 15:45:26 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75AB443D46 for ; Sun, 17 Sep 2006 15:45:24 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E5B9.dip.t-dialin.net [84.165.229.185]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8HFMRlN036135; Sun, 17 Sep 2006 17:22:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8HFjEXY088399; Sun, 17 Sep 2006 17:45:15 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 17 Sep 2006 17:45:43 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060917174543.48bff192@Magellan.Leidinger.net> In-Reply-To: <46427671@bsam.ru> References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> <46427671@bsam.ru> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 15:45:26 -0000 Quoting Boris Samorodov (Sun, 17 Sep 2006 17:52:08 +0400): > And: > ----- > tinderbox# grep LINUX /sys/amd64/conf/GENERIC > options COMPAT_LINUX32 # Compatible with i386 linux binaries > ----- > > Help...! Ok, add #include "opt_compat.h" like here: ---snip--- #include __FBSDID("$FreeBSD$"); #include "opt_compat.h" #include #include #include #include #include ---snip--- to linux_aio.c (you need the patch from the wiki, the patch I did send to you and the above fix I'm going to commit to p4 now). Bye, Alexander. -- hardware stress fractures http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 16:07:00 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D18216A40F for ; Sun, 17 Sep 2006 16:07:00 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E99343D68 for ; Sun, 17 Sep 2006 16:06:59 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E5B9.dip.t-dialin.net [84.165.229.185]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8HFi76R036211; Sun, 17 Sep 2006 17:44:07 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8HG6sUp091458; Sun, 17 Sep 2006 18:06:55 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 17 Sep 2006 18:07:26 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060917180726.75d0a358@Magellan.Leidinger.net> In-Reply-To: <46427671@bsam.ru> References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> <46427671@bsam.ru> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 16:07:00 -0000 Quoting Boris Samorodov (Sun, 17 Sep 2006 17:52:08 +0400): > Help...! Yes... uhm... sorry! Additionally you need: ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#4 (text+ko) ==== @@ -25,6 +25,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_compat.h" + #include #include #include Bye, Alexander. -- BOFH excuse #325: Your processor does not develop enough heat. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 18:12:25 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0462016A49E; Sun, 17 Sep 2006 18:12:25 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56D2043D45; Sun, 17 Sep 2006 18:12:23 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E5B9.dip.t-dialin.net [84.165.229.185]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8HHnToN037364; Sun, 17 Sep 2006 19:49:30 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8HICISb009132; Sun, 17 Sep 2006 20:12:18 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 17 Sep 2006 20:12:49 +0200 From: Alexander Leidinger To: Marcin Cieslak Message-ID: <20060917201249.7d29fcf0@Magellan.Leidinger.net> In-Reply-To: <450C0F5A.30804@SYSTEM.PL> References: <450C0C0E.8060402@SYSTEM.PL> <450C0F5A.30804@SYSTEM.PL> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org, bsam@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 18:12:25 -0000 Quoting Marcin Cieslak (Sat, 16 Sep 2006 16:51:06 +0200): > ... however it breaks mmap07 (BSD mmap succeeds), > writev03 and writev04 - BSD mmap with PROT_NONE and MAP_PRIVATE fails. > I counted 25 tests which switch from FAIL to PASS and 5 tests which switch from PASS to FAIL (if I didn't miscounted...). Acroread and realplayer still run just fine. I'm tempted to commit this. But I want to know what the outcome on amd64 is. Boris the PROT_READ removal from linux_mmap_common() we are talking aobut is not included in the patch in the wiki... just to make sure you are aware of this. Bye, Alexander. -- Nice tcsh prompt: set prompt = '%n@%m%# ' http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 18:21:31 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 710F716A415 for ; Sun, 17 Sep 2006 18:21:31 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD11B43D5D for ; Sun, 17 Sep 2006 18:21:28 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.171]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HIKtpw056577; Sun, 17 Sep 2006 22:21:05 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GP1GA-0000ER-I7; Sun, 17 Sep 2006 22:20:54 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> <46427671@bsam.ru> <20060917180726.75d0a358@Magellan.Leidinger.net> From: Boris Samorodov Date: Sun, 17 Sep 2006 22:20:54 +0400 In-Reply-To: <20060917180726.75d0a358@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 17 Sep 2006 18:07:26 +0200") Message-ID: <82100473@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 18:21:31 -0000 On Sun, 17 Sep 2006 18:07:26 +0200 Alexander Leidinger wrote: > ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#4 (text+ko) ==== > @@ -25,6 +25,8 @@ > #include > __FBSDID("$FreeBSD$"); > +#include "opt_compat.h" > + > #include > #include > #include This patch did the trick and buildworld went further. But another error occures: ----- cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/amd64/linux32/linux32_sysvec.c cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/compat/linux/linux_aio.c /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_setup': /usr/src/sys/compat/linux/linux_aio.c:501: warning: cast from pointer to integer of different size /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_destroy': /usr/src/sys/compat/linux/linux_aio.c:542: warning: cast from pointer to integer of different size /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_getevents': /usr/src/sys/compat/linux/linux_aio.c:683: warning: cast from pointer to integer of different size /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_submit': /usr/src/sys/compat/linux/linux_aio.c:938: warning: cast from pointer to integer of different size /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_cancel': /usr/src/sys/compat/linux/linux_aio.c:1054: warning: cast from pointer to integer of different size *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 ----- I'll try to double check it, maybe I've messed the sources... WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 18:26:13 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C595D16A40F for ; Sun, 17 Sep 2006 18:26:13 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 570AA43D6D for ; Sun, 17 Sep 2006 18:26:06 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.171]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HIPmRu057162; Sun, 17 Sep 2006 22:25:58 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GP1Kt-0000Ev-H4; Sun, 17 Sep 2006 22:25:47 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <450C0F5A.30804@SYSTEM.PL> <20060917201249.7d29fcf0@Magellan.Leidinger.net> From: Boris Samorodov Date: Sun, 17 Sep 2006 22:25:47 +0400 In-Reply-To: <20060917201249.7d29fcf0@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 17 Sep 2006 20:12:49 +0200") Message-ID: <16020180@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org, Marcin Cieslak Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 18:26:13 -0000 On Sun, 17 Sep 2006 20:12:49 +0200 Alexander Leidinger wrote: > Quoting Marcin Cieslak (Sat, 16 Sep 2006 16:51:06 +0200): > > ... however it breaks mmap07 (BSD mmap succeeds), > > writev03 and writev04 - BSD mmap with PROT_NONE and MAP_PRIVATE fails. > > > I counted 25 tests which switch from FAIL to PASS and 5 tests which > switch from PASS to FAIL (if I didn't miscounted...). > Acroread and realplayer still run just fine. I'm tempted to commit > this. But I want to know what the outcome on amd64 is. > Boris the PROT_READ removal from linux_mmap_common() we are talking > aobut is not included in the patch in the wiki... just to make sure you > are aware of this. Yep, I followed your conversation, but I'm going to do first tests without the wiki test (as you recommended). I'm testing that patch for... say, perfection purposes -- to get a working patch. ;-) WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 18:42:46 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7622D16A5EC for ; Sun, 17 Sep 2006 18:42:41 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C55343D46 for ; Sun, 17 Sep 2006 18:42:40 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.171]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HIgM8f059172; Sun, 17 Sep 2006 22:42:32 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GP1av-0000FZ-Lj; Sun, 17 Sep 2006 22:42:21 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> <46427671@bsam.ru> <20060917180726.75d0a358@Magellan.Leidinger.net> <82100473@bsam.ru> From: Boris Samorodov Date: Sun, 17 Sep 2006 22:42:21 +0400 In-Reply-To: <82100473@bsam.ru> (Boris Samorodov's message of "Sun, 17 Sep 2006 22:20:54 +0400") Message-ID: <49949186@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 18:42:46 -0000 On Sun, 17 Sep 2006 22:20:54 +0400 Boris Samorodov wrote: > On Sun, 17 Sep 2006 18:07:26 +0200 Alexander Leidinger wrote: > > ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#4 (text+ko) ==== > > @@ -25,6 +25,8 @@ > > #include > > __FBSDID("$FreeBSD$"); > > +#include "opt_compat.h" > > + > > #include > > #include > > #include > This patch did the trick and buildworld went further. But another > error occures: > ----- > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/amd64/linux32/linux32_sysvec.c > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/compat/linux/linux_aio.c > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_setup': > /usr/src/sys/compat/linux/linux_aio.c:501: warning: cast from pointer to integer of different size > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_destroy': > /usr/src/sys/compat/linux/linux_aio.c:542: warning: cast from pointer to integer of different size > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_getevents': > /usr/src/sys/compat/linux/linux_aio.c:683: warning: cast from pointer to integer of different size > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_submit': > /usr/src/sys/compat/linux/linux_aio.c:938: warning: cast from pointer to integer of different size > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_cancel': > /usr/src/sys/compat/linux/linux_aio.c:1054: warning: cast from pointer to integer of different size > *** Error code 1 > Stop in /usr/obj/usr/src/sys/GENERIC. > *** Error code 1 > ----- > I'll try to double check it, maybe I've messed the sources... Well, I removed /usr/src, /usr/obj, cvsupped to -current, add all patches (wiki + amd64 + quoted). The result is the same. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 20:06:57 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1B2416A4DA for ; Sun, 17 Sep 2006 20:06:57 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79DF143D4C for ; Sun, 17 Sep 2006 20:06:40 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E5B9.dip.t-dialin.net [84.165.229.185]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8HJhhvG037732; Sun, 17 Sep 2006 21:43:45 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8HK6WLX025124; Sun, 17 Sep 2006 22:06:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 17 Sep 2006 22:07:04 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060917220704.58ec3963@Magellan.Leidinger.net> In-Reply-To: <49949186@bsam.ru> References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> <46427671@bsam.ru> <20060917180726.75d0a358@Magellan.Leidinger.net> <82100473@bsam.ru> <49949186@bsam.ru> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 20:06:57 -0000 Quoting Boris Samorodov (Sun, 17 Sep 2006 22:42:21 +0400): > On Sun, 17 Sep 2006 22:20:54 +0400 Boris Samorodov wrote: > > On Sun, 17 Sep 2006 18:07:26 +0200 Alexander Leidinger wrote: > > > > ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_aio.c#4 (text+ko) ==== > > > > @@ -25,6 +25,8 @@ > > > #include > > > __FBSDID("$FreeBSD$"); > > > > +#include "opt_compat.h" > > > + > > > #include > > > #include > > > #include > > > This patch did the trick and buildworld went further. But another > > error occures: > > ----- > > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_setup': > > /usr/src/sys/compat/linux/linux_aio.c:501: warning: cast from pointer to integer of different size > > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_destroy': > > /usr/src/sys/compat/linux/linux_aio.c:542: warning: cast from pointer to integer of different size > > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_getevents': > > /usr/src/sys/compat/linux/linux_aio.c:683: warning: cast from pointer to integer of different size > > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_submit': > > /usr/src/sys/compat/linux/linux_aio.c:938: warning: cast from pointer to integer of different size > > /usr/src/sys/compat/linux/linux_aio.c: In function `linux_io_cancel': > > /usr/src/sys/compat/linux/linux_aio.c:1054: warning: cast from pointer to integer of different size > > *** Error code 1 The code isn't tested on amd64 at all. To be honest, I expected something like this. Sorry that I haven't told you about it. Intron submitted the i386 part, and I just added it to amd64 too. I try to have a look at it in the next days, but I hope Intron comes up with a patch earlier. Bye, Alexander. -- A princess should not be afraid -- not with a brave knight to protect her. -- McCoy, "Shore Leave", stardate 3025.3 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 20:30:23 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E958616A403 for ; Sun, 17 Sep 2006 20:30:23 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id C12B243D53 for ; Sun, 17 Sep 2006 20:30:22 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.133]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HKU0xq077105; Mon, 18 Sep 2006 00:30:11 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GP3H6-0000BO-7D; Mon, 18 Sep 2006 00:30:00 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru> <46427671@bsam.ru> <20060917180726.75d0a358@Magellan.Leidinger.net> <82100473@bsam.ru> <49949186@bsam.ru> <20060917220704.58ec3963@Magellan.Leidinger.net> From: Boris Samorodov Date: Mon, 18 Sep 2006 00:30:00 +0400 In-Reply-To: <20060917220704.58ec3963@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 17 Sep 2006 22:07:04 +0200") Message-ID: <92822007@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 20:30:24 -0000 On Sun, 17 Sep 2006 22:07:04 +0200 Alexander Leidinger wrote: > The code isn't tested on amd64 at all. To be honest, I expected > something like this. Sorry that I haven't told you about it. Intron Thats OK to me. Actually, I was expecting it. That's why I tested those patches. ;-) > submitted the i386 part, and I just added it to amd64 too. I try to > have a look at it in the next days, but I hope Intron comes up with a > patch earlier. OK, just give me a chance to test those patches. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 20:34:57 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6824C16A417 for ; Sun, 17 Sep 2006 20:34:57 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip249.ish.de [80.69.98.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D7A043D7D for ; Sun, 17 Sep 2006 20:34:52 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 67170987 for emulation@freebsd.org; Sun, 17 Sep 2006 22:34:51 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8HKYcOZ002252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 17 Sep 2006 22:34:44 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450DB15E.1090406@SYSTEM.PL> Date: Sun, 17 Sep 2006 22:34:38 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: linux jdk 1.4.2_12 may fail with Linux procfs mounted 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, 17 Sep 2006 20:34:57 -0000 I have just installed Linux JDK 1.4.2_12 to check for various incompatibities (http://people.freebsd.org/~tjr/linux32.html) I noticed that according to comment to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4881146: In the short term, developers using this product [Rational ClearCase] can easily develop their own interposer library that will cause readlink of /proc/self/exe to fail. The java launcher does not require /proc to be present and will fallback to another mechanism when /proc is not present (chroot environments for example). And running without /proc has been fixed according to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4881146. java without /proc just issues warning message: % /usr/local/linux-sun-jdk1.4.2/bin/java -jar /usr/local/linux-sun-jdk1.4.2/demo/jfc/Java2D/Java2Demo.jar Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location but when /compat/linux/proc is mounted fails reading some values from /proc/self/stat on my machine: % /usr/local/linux-sun-jdk1.4.2/bin/java -jar /usr/local/linux-sun-jdk1.4.2/demo/jfc/Java2D/Java2Demo.jar Fatal: Stack size too small. Use 'java -Xss' to increase default stack size. The fix should be relatively easy, probably implementing some more entries in the linprocfs_doprocstat() function. Just in case somebody hits this problem... -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 17 21:02:10 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 732C416A40F for ; Sun, 17 Sep 2006 21:02:10 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97F7243D6E for ; Sun, 17 Sep 2006 21:02:02 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.133]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8HL1gIb081807; Mon, 18 Sep 2006 01:01:52 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GP3lm-0000DK-Lm; Mon, 18 Sep 2006 01:01:42 +0400 To: Alexander Leidinger References: <450C0C0E.8060402@SYSTEM.PL> <450C0F5A.30804@SYSTEM.PL> <20060917201249.7d29fcf0@Magellan.Leidinger.net> From: Boris Samorodov Date: Mon, 18 Sep 2006 01:01:42 +0400 In-Reply-To: <20060917201249.7d29fcf0@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 17 Sep 2006 20:12:49 +0200") Message-ID: <26740105@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: emulation@freebsd.org, Marcin Cieslak Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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, 17 Sep 2006 21:02:10 -0000 On Sun, 17 Sep 2006 20:12:49 +0200 Alexander Leidinger wrote: > Acroread and realplayer still run just fine. I'm tempted to commit > this. But I want to know what the outcome on amd64 is. The test package doesn't build at amd64-current: ----- tinderbox ltp-test # cd ltp-full-20060822 tinderbox ltp-full-20060822 # make Segmentation fault (core dumped) ----- I tried to check if I didn't make mistakes and (as a result) lost my i386-current: ----- ... make[4]: Entering directory `/ltp-test/ltp-full-20060822/testcases/kernel/syscalls/dup' cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g dup01.c -L../../../../lib -lltp -o dup01 cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g dup02.c -L../../../../lib -lltp -o dup02 cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g dup03.c -L../../../../lib -lltp -o dup03 cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g dup04.c -L../../../../lib -lltp -o dup04 Read from remote host tinderbox.i386.ipt.ru: Operation timed out Connection to tinderbox.i386.ipt.ru closed. bsam@bsam$ ssh tinderbox.i386.ipt.ru ssh: connect to host tinderbox.i386.ipt.ru port 22: Operation timed out ----- That's all for today. Those machines are far away from me. Sorry, my tests were not of a great help. :-( WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 18 07:32:20 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DBBA16A40F for ; Mon, 18 Sep 2006 07:32:20 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54EEB43D46 for ; Mon, 18 Sep 2006 07:32:18 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D52D.dip.t-dialin.net [84.165.213.45]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8I79FXI043044; Mon, 18 Sep 2006 09:09:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8I7WBlR021664; Mon, 18 Sep 2006 09:32:11 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 18 Sep 2006 09:32:00 +0200 Message-ID: <20060918093200.7xxmws6qccg04k8w@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 18 Sep 2006 09:32:00 +0200 From: Alexander Leidinger To: Boris Samorodov References: <450C0C0E.8060402@SYSTEM.PL> <450C0F5A.30804@SYSTEM.PL> <20060917201249.7d29fcf0@Magellan.Leidinger.net> <26740105@bsam.ru> In-Reply-To: <26740105@bsam.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org, Marcin Cieslak Subject: Re: Fix for errno 2 - expected 14 (EFAULT) problems 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: Mon, 18 Sep 2006 07:32:20 -0000 Quoting Boris Samorodov (from Mon, 18 Sep 2006 01:01:42 +0400)= : > On Sun, 17 Sep 2006 20:12:49 +0200 Alexander Leidinger wrote: > >> Acroread and realplayer still run just fine. I'm tempted to commit >> this. But I want to know what the outcome on amd64 is. > > The test package doesn't build at amd64-current: > ----- > tinderbox ltp-test # cd ltp-full-20060822 > tinderbox ltp-full-20060822 # make > Segmentation fault (core dumped) > ----- First I thought this is something related to amd64 and should be =20 reported to the LTP people... > I tried to check if I didn't make mistakes and (as a result) lost my > i386-current: > ----- > ... > make[4]: Entering directory =20 > `/ltp-test/ltp-full-20060822/testcases/kernel/syscalls/dup' > cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g =20 > dup01.c -L../../../../lib -lltp -o dup01 > cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g =20 > dup02.c -L../../../../lib -lltp -o dup02 > cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g =20 > dup03.c -L../../../../lib -lltp -o dup03 > cc -Wall -I../../include -g -Wall -I../../../../include -Wall -g =20 > dup04.c -L../../../../lib -lltp -o dup04 > Read from remote host tinderbox.i386.ipt.ru: Operation timed out > Connection to tinderbox.i386.ipt.ru closed. > bsam@bsam$ ssh tinderbox.i386.ipt.ru > ssh: connect to host tinderbox.i386.ipt.ru port 22: Operation timed out > ----- That's strange. Very strange. Compiling the stuff in a gentoo-stage3 =20 chroot didn't resulted in a panic/reboot for me. I got reports about a =20 missing /proc and /dev/null, but after I mounted linprocfs and devfs =20 in the gentoo chroot, it went just fine. I suggest to find the cause of this when you are back in front of the =20 machines. Bye, Alexander. --=20 Where there's no emotion, there's no motive for violence. =09=09-- Spock, "Dagger of the Mind", stardate 2715.1 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 18 11:08:07 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E0C616A407 for ; Mon, 18 Sep 2006 11:08:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3686143D4C for ; Mon, 18 Sep 2006 11:08:07 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8IB872Q040933 for ; Mon, 18 Sep 2006 11:08:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8IB85s6040929 for freebsd-emulation@FreeBSD.org; Mon, 18 Sep 2006 11:08:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Sep 2006 11:08:05 GMT Message-Id: <200609181108.k8IB85s6040929@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 18 Sep 2006 11:08:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/77710 emulation [linux] Linux page fault sigcontext information is wro f ports/102474 emulation linux_base-fc-4_8 appears broken, does not allow to ru o kern/102956 emulation [linux] [patch] Add partial support for SO_PEERCRED in 4 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] feature request: easier wine/w23 support o kern/55835 emulation [linux] [patch] Linux IPC emulation missing SETALL sys a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula 8 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 18 19:53:48 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D44C16A40F for ; Mon, 18 Sep 2006 19:53:48 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCD2E43D7F for ; Mon, 18 Sep 2006 19:53:47 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.142]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k8IJrRkH062429 for ; Mon, 18 Sep 2006 23:53:37 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GPPBF-0000B1-3e for freebsd-emulation@FreeBSD.org; Mon, 18 Sep 2006 23:53:25 +0400 To: freebsd-emulation@FreeBSD.org References: <200609181924.46929.adrian790@catv.embit.ro> <12492986@bsam.ru> <1158605911.450eec57c9ca8@mail.iasi.embit.ro> From: Boris Samorodov Date: Mon, 18 Sep 2006 23:53:25 +0400 In-Reply-To: <1158605911.450eec57c9ca8@mail.iasi.embit.ro> (adrian's message of "Mon, 18 Sep 2006 21:58:31 +0300") Message-ID: <91055130@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: Subject: Re: linux_base-fc4_9 install problem 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: Mon, 18 Sep 2006 19:53:48 -0000 Forwarding this to freebsd-emulation@ just for archives. On Mon, 18 Sep 2006 21:58:31 +0300 adrian790@catv.embit.ro wrote: > Quoting Boris Samorodov : > thanx for suggestion. i've commented out in make.conf NO_CHECKSUM=YES and this > did the trick. > > On Mon, 18 Sep 2006 19:24:46 +0300 Adrian Vraciu wrote: > > > > > ===> Vulnerability check disabled, database not found > > > ===> Extracting for linux_base-fc-4_9 > > > ===> linux_base-fc-4_9 depends on file: /usr/local/bin/rpm2cpio - found > > > error reading header from package > > > /usr/bin/cpio: premature end of archive > > > *** Error code 1 > > > > > how can i fix that? > > > > How did you install the port? What if you do a make checksum at the > > port (you didn't show that output): > > ----- > > # cd /usr/ports/emulation/linux_base-fc4 > > # make checksum > > ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 19 00:09:24 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3A2216A412 for ; Tue, 19 Sep 2006 00:09:23 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip251.ish.de [80.69.98.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 462D543D46 for ; Tue, 19 Sep 2006 00:09:22 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-01.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 76170517 for emulation@freebsd.org; Tue, 19 Sep 2006 02:09:20 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8J09AvH005947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 19 Sep 2006 02:09:12 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450F3525.5080305@SYSTEM.PL> Date: Tue, 19 Sep 2006 02:09:09 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: multipart/mixed; boundary="------------020603020907000609080904" Cc: Subject: mmap(2) fingerprinting on 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: Tue, 19 Sep 2006 00:09:24 -0000 This is a multi-part message in MIME format. --------------020603020907000609080904 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Attached please find a very simple brute-force mmap(2) testing program. 1. It would be nice if somebody could run this on real amd64 linux machine. and under FreeBSD linuxolator on amd64 machine. Please mail results to me. 2. I don't know how to include simple test for PROT_EXEC behaviour (there should be at least one case more in the mapprots[] plus somehow execute something in the access_test(). -- << Marcin Cieslak // saper@system.pl >> --------------020603020907000609080904 Content-Type: text/plain; name="mmap_test.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mmap_test.c" #include #include #include #include #include #include struct intdesc { const int val; const char *desc; }; static char TESTFILE[] = "/tmp/test"; static sigjmp_buf env; static char nofile[] = "anonymous"; static char * mmap_test(int map_prot, int map_mode, int fd) { char *qp; qp = mmap(0, 1024, map_prot, map_mode, fd, 0); if (qp != MAP_FAILED) { printf("mmap OK "); return qp; } else { printf("mmap error (%d)", errno); return NULL; } }; static void unmap_test(void *ptr) { if (ptr != NULL) munmap(ptr, 1024); } static int sigsegv = 0; static int buserr = 0; static int othersig = 0; static void handle_sig(int sig) { switch(sig) { case SIGSEGV: sigsegv ++; break; case SIGBUS: buserr ++; break; default: othersig = sig; } siglongjmp(env, 1); } static void access_test(void *ptr) { char *qp = (char *)ptr; struct sigaction newsig = { .sa_handler = &handle_sig, .sa_flags = 0, .sa_mask = 0, }; struct sigaction oldsegv; struct sigaction oldbus; sigsegv = buserr = othersig = 0; sigaction(SIGSEGV, &newsig, &oldsegv); sigaction(SIGBUS, &newsig, &oldbus); printf("read: "); if (sigsetjmp(env, 1) == 0) { printf("0x%02x", qp[0]); } else { if (sigsegv) printf("sigsegv"); if (buserr) printf("buserr"); if (othersig) printf("sig%02d", othersig); }; sigsegv = buserr = othersig = 0; printf(" write: "); if (sigsetjmp(env, 1) == 0) { qp[0] = 'B'; printf("OK"); } else { if (sigsegv) { printf("sigsegv"); }; if (buserr) { printf("buserr"); }; } sigaction(SIGSEGV, &oldsegv, NULL); sigaction(SIGBUS, &oldbus, NULL); } static void run_cases(struct intdesc filemodes[], struct intdesc mapmodes[], struct intdesc mapprots[], char * (* mapfunc)(int, int, int), void (* accessfunc)(void *), void (* unmapfunc)(void *)) { struct intdesc *filemode, *map_mode, *map_prot; int fd, caseid, anon; void *region; caseid = 1; for (filemode = filemodes; filemode->desc != NULL; filemode++) for (map_mode = mapmodes; map_mode->desc != NULL; map_mode++) for (map_prot = mapprots; map_prot->desc != NULL; map_prot++) { if (filemode->desc != nofile) { anon = 0; if ((fd = open(TESTFILE, filemode->val, 0644)) < 0 ) { perror("open testfile"); return; }; } else { fd = -1; anon = MAP_ANON; } printf("%04d: mmap(0, 1024, %s, %s%s, ...)\n" " for filemode %s: ", caseid, map_prot->desc, anon ? "MAP_ANON|":"", map_mode->desc, filemode->desc); region = (*mapfunc)(map_prot->val, anon | map_mode->val, fd); if (region) { (*accessfunc)(region); (*unmapfunc)(region); }; caseid ++; if (fd > 0) close(fd); printf("\n"); }; } int main() { struct intdesc filemodes[] = { {O_RDONLY, "O_RDONLY"}, {O_WRONLY, "O_WRONLY"}, {O_RDWR, "O_RDWR"}, {-1, nofile}, {-1, NULL}, }; struct intdesc mapmodes[] = { #if 0 {0, "none"}, #endif {MAP_SHARED, "MAP_SHARED"}, {MAP_PRIVATE, "MAP_PRIVATE"}, {-1, NULL}, }; struct intdesc mapprots[] = { {PROT_NONE, "PROT_NONE"}, {PROT_READ, "PROT_READ"}, {PROT_WRITE, "PROT_WRITE"}, {PROT_READ|PROT_WRITE, "PROT_READ|PROT_WRITE"}, {-1, NULL}, }; char *qp; int fd, caseid, anon; fd = open(TESTFILE, O_CREAT|O_WRONLY, 0644); write(fd, "ABCD"); if (fd > -1) close(fd); run_cases(filemodes, mapmodes, mapprots, &mmap_test, &access_test, &unmap_test); }; --------------020603020907000609080904-- From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 19 00:37:10 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B04C16A40F for ; Tue, 19 Sep 2006 00:37:10 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip249.ish.de [80.69.98.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6445043D49 for ; Tue, 19 Sep 2006 00:37:09 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [81.210.201.87] (account saper@iesy.net HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPSA id 67267536 for emulation@freebsd.org; Tue, 19 Sep 2006 02:37:05 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8J0apgb006264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 19 Sep 2006 02:36:58 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <450F3BA3.40304@SYSTEM.PL> Date: Tue, 19 Sep 2006 02:36:51 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: emulation@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: i386 mmap(2) fixed for LTP 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: Tue, 19 Sep 2006 00:37:10 -0000 Hallo, Using my mmap fingerprinter (see amd64 post above) I have managed to compare basic mmap(2) behaviour between real Linux and FreeBSD machine. Our mmap(2) allows you map write-only file for writing, Linux is giving up immediately on that. (Probably because they always need the file to be open for reading as well and then they add PROT_READ internally). Using this patch I guess we have all mmap()-related LTP issues solved. This fixes outstanding map07 test. I guess that writev03 and writev04 - that started to fail after my initial quick fix for mmap() - were just false positives initially. Since linuxolator mmap() added PROT_READ that gave access to whole iovec address space, writev() calls suceeded although not in a way meant by author tests: http://sf.net/tracker/index.php?func=detail&aid=1561083&group_id=3382&atid=103382 The only thing left is the amd64 part of the fix for mmap(2). Please feel free to review. -- << Marcin Cieslak // saper@system.pl >> Index: /usr/src/sys/i386/linux/linux_machdep.c =================================================================== RCS file: /usr/home/ncvs/src/sys/i386/linux/linux_machdep.c,v retrieving revision 1.48.2.1 diff -u -u -r1.48.2.1 linux_machdep.c --- /usr/src/sys/i386/linux/linux_machdep.c 4 Aug 2005 23:25:32 -0000 1.48.2.1 +++ /usr/src/sys/i386/linux/linux_machdep.c 19 Sep 2006 00:34:53 -0000 @@ -31,6 +31,8 @@ #include #include +#include +#include #include #include #include @@ -469,9 +471,19 @@ off_t pos; } */ bsd_args; int error; + struct file *fp; error = 0; bsd_args.flags = 0; + fp = NULL; + + /* Linux mmap(2): + * You must specify exactly one of MAP_SHARED and MAP_PRIVATE. + */ + if (! ((linux_args->flags & LINUX_MAP_SHARED) ^ + (linux_args->flags & LINUX_MAP_PRIVATE))) + return EINVAL; + if (linux_args->flags & LINUX_MAP_SHARED) bsd_args.flags |= MAP_SHARED; if (linux_args->flags & LINUX_MAP_PRIVATE) @@ -549,11 +561,34 @@ bsd_args.len = linux_args->len; } - bsd_args.prot = linux_args->prot | PROT_READ; /* always required */ - if (linux_args->flags & LINUX_MAP_ANON) + bsd_args.prot = linux_args->prot; + if (linux_args->flags & LINUX_MAP_ANON) { bsd_args.fd = -1; - else + } else { + /* + * Linux follows Solaris mmap(2) description: + * The file descriptor fildes is opened with + * read permission, regardless of the + * protection options specified. + * If PROT_WRITE is specified, the application + * must have opened the file descriptor + * fildes with write permission unless + * MAP_PRIVATE is specified in the flags + * argument as described below. + */ + + if ((error = fget(td, linux_args->fd, &fp)) != 0) + return error; + if (fp->f_type != DTYPE_VNODE) + return EINVAL; + + /* Linux mmap() just fails for O_WRONLY files */ + if (! (fp->f_flag & FREAD)) + return EACCES; + bsd_args.fd = linux_args->fd; + fdrop(fp, td); + } bsd_args.pos = linux_args->pos; bsd_args.pad = 0; From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 19 02:09:59 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47B4E16A412 for ; Tue, 19 Sep 2006 02:09:59 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35D0943D5A for ; Tue, 19 Sep 2006 02:09:55 +0000 (GMT) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.128]) by hub.org (Postfix) with ESMTP id E8F973A464E for ; Mon, 18 Sep 2006 23:09:45 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 84919-03 for ; Tue, 19 Sep 2006 02:08:38 +0000 (UTC) Received: from ganymede.hub.org (blk-137-86-60.eastlink.ca [24.137.86.60]) by hub.org (Postfix) with ESMTP id 768313A464F for ; Mon, 18 Sep 2006 23:08:29 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 101AE5C986; Mon, 18 Sep 2006 23:08:43 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 0C4E2343F5 for ; Mon, 18 Sep 2006 23:08:43 -0300 (ADT) Date: Mon, 18 Sep 2006 23:08:42 -0300 (ADT) From: "Marc G. Fournier" To: freebsd-emulation@freebsd.org Message-ID: <20060918230348.I1031@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: /dev/null: No such file or directory 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: Tue, 19 Sep 2006 02:09:59 -0000 I have linux_base-fc-4_8 installed, clean install, and the two sysctl referred to in /usr/ports/UPDATING haven't been changed from the default: # sysctl -a | grep compat.linux.osname compat.linux.osname: Linux # sysctl -a | grep compat.linux.osrelease compat.linux.osrelease: 2.4.2 But, when I try to run configure from a chroot environment, I get: ../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory I've searched through /usr/ports/UPDATING, but am not finding anything except for the section on "remove /compat/linux completely", which I've done ... So, either the port isn't creating something, or I'm missing something in the UPDATING doc :( Help ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 19 02:25:42 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 356DF16A40F for ; Tue, 19 Sep 2006 02:25:42 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77B6943D45 for ; Tue, 19 Sep 2006 02:25:41 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20060919022539m9200dpfd4e>; Tue, 19 Sep 2006 02:25:39 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.6/8.13.6) with ESMTP id k8J2PVqO044323; Mon, 18 Sep 2006 21:25:32 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.6/8.13.6/Submit) id k8J2PUYd044322; Mon, 18 Sep 2006 21:25:30 -0500 (CDT) (envelope-from brooks) Date: Mon, 18 Sep 2006 21:25:30 -0500 From: Brooks Davis To: "Marc G. Fournier" Message-ID: <20060919022530.GA44301@lor.one-eyed-alien.net> References: <20060918230348.I1031@ganymede.hub.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20060918230348.I1031@ganymede.hub.org> User-Agent: Mutt/1.5.11 Cc: freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory 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: Tue, 19 Sep 2006 02:25:42 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 18, 2006 at 11:08:42PM -0300, Marc G. Fournier wrote: >=20 > I have linux_base-fc-4_8 installed, clean install, and the two sysctl=20 > referred to in /usr/ports/UPDATING haven't been changed from the default: >=20 > # sysctl -a | grep compat.linux.osname > compat.linux.osname: Linux > # sysctl -a | grep compat.linux.osrelease > compat.linux.osrelease: 2.4.2 >=20 > But, when I try to run configure from a chroot environment, I get: >=20 > ../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory >=20 > I've searched through /usr/ports/UPDATING, but am not finding anything=20 > except for the section on "remove /compat/linux completely", which I've= =20 > done ... >=20 > So, either the port isn't creating something, or I'm missing something in= =20 > the UPDATING doc :( You must have devfs containing at least null and zero mounted in your chroot. -- Brooks --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFD1UZXY6L6fI4GtQRAsndAKDa5NAlwiAqggLv5MnECeBM4dvLUgCgto7m FGlIeLq63m6fRq6tg9p19xA= =6dad -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 19 07:21:35 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE74F16A40F for ; Tue, 19 Sep 2006 07:21:35 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9578443D46 for ; Tue, 19 Sep 2006 07:21:33 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D442.dip.t-dialin.net [84.165.212.66]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8J6wKXG048768; Tue, 19 Sep 2006 08:58:21 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8J7LSbW022825; Tue, 19 Sep 2006 09:21:28 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 19 Sep 2006 09:21:17 +0200 Message-ID: <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 19 Sep 2006 09:21:17 +0200 From: Alexander Leidinger To: Brooks Davis References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> In-Reply-To: <20060919022530.GA44301@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new X-Mailman-Approved-At: Tue, 19 Sep 2006 11:36:43 +0000 Cc: freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory 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: Tue, 19 Sep 2006 07:21:35 -0000 Quoting Brooks Davis (from Mon, 18 Sep =20 2006 21:25:30 -0500): > On Mon, Sep 18, 2006 at 11:08:42PM -0300, Marc G. Fournier wrote: >> >> I have linux_base-fc-4_8 installed, clean install, and the two sysctl >> referred to in /usr/ports/UPDATING haven't been changed from the default: >> >> # sysctl -a | grep compat.linux.osname >> compat.linux.osname: Linux >> # sysctl -a | grep compat.linux.osrelease >> compat.linux.osrelease: 2.4.2 >> >> But, when I try to run configure from a chroot environment, I get: >> >> ../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory >> >> I've searched through /usr/ports/UPDATING, but am not finding anything >> except for the section on "remove /compat/linux completely", which I've >> done ... >> >> So, either the port isn't creating something, or I'm missing something in >> the UPDATING doc :( > > You must have devfs containing at least null and zero mounted in your > chroot. Right. Additionally I suggest to use a linux_dist-gento-* port if you =20 want to do cross-development. The default linux_base port only =20 contains stuff to run the programs in the ports collection (and maybe =20 a little bit more). To compile the stuff to test the linuxolator in =20 -current I use linux_dist-gento-stage3. You should mount devfs, =20 linprovfs and maybe linsysfs in the chroot. Bye, Alexander. --=20 As of next Thursday, UNIX will be flushed in favor of TOPS-10. Please update your programs. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 19 21:12:46 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FC4D16A568 for ; Tue, 19 Sep 2006 21:12:46 +0000 (UTC) (envelope-from scrappy@freebsd.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id D749B43D6A for ; Tue, 19 Sep 2006 21:12:39 +0000 (GMT) (envelope-from scrappy@freebsd.org) Received: from localhost (unknown [200.46.208.251]) by hub.org (Postfix) with ESMTP id 481D33A40C7; Tue, 19 Sep 2006 18:12:24 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 15116-01; Tue, 19 Sep 2006 18:11:22 -0300 (ADT) Received: from ganymede.hub.org (blk-137-86-60.eastlink.ca [24.137.86.60]) by hub.org (Postfix) with ESMTP id 9CB183A4633; Tue, 19 Sep 2006 18:11:08 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 4F5A14A9D8; Tue, 19 Sep 2006 18:11:24 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 4E4ED3A6F0; Tue, 19 Sep 2006 18:11:24 -0300 (ADT) Date: Tue, 19 Sep 2006 18:11:24 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: freebsd@ganymede.hub.org To: Alexander Leidinger In-Reply-To: <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> Message-ID: <20060919181052.T1031@ganymede.hub.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory 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: Tue, 19 Sep 2006 21:12:46 -0000 On Tue, 19 Sep 2006, Alexander Leidinger wrote: > Quoting Brooks Davis (from Mon, 18 Sep 2006 > 21:25:30 -0500): > >> On Mon, Sep 18, 2006 at 11:08:42PM -0300, Marc G. Fournier wrote: >>> >>> I have linux_base-fc-4_8 installed, clean install, and the two sysctl >>> referred to in /usr/ports/UPDATING haven't been changed from the default: >>> >>> # sysctl -a | grep compat.linux.osname >>> compat.linux.osname: Linux >>> # sysctl -a | grep compat.linux.osrelease >>> compat.linux.osrelease: 2.4.2 >>> >>> But, when I try to run configure from a chroot environment, I get: >>> >>> ../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory >>> >>> I've searched through /usr/ports/UPDATING, but am not finding anything >>> except for the section on "remove /compat/linux completely", which I've >>> done ... >>> >>> So, either the port isn't creating something, or I'm missing something in >>> the UPDATING doc :( >> >> You must have devfs containing at least null and zero mounted in your >> chroot. > > Right. Additionally I suggest to use a linux_dist-gento-* port if you > want to do cross-development. The default linux_base port only contains > stuff to run the programs in the ports collection (and maybe a little > bit more). To compile the stuff to test the linuxolator in -current I > use linux_dist-gento-stage3. You should mount devfs, linprovfs and maybe > linsysfs in the chroot. Is there a trick I need to do to get stage3 to install in a jail? :) dev/ttya4: Can't restore device node: Operation not permitted dev/radio49: Can't restore device node: Operation not permitted dev/sdd14: Can't restore device node: Operation not permitted dev/xda8: Can't restore device node: Operation not permitted dev/mcdx0: Can't restore device node: Operation not permitted dev/scd3: Can't restore device node: Operation not permitted dev/vcs54: Can't restore device node: Operation not permitted dev/fd0u800: Can't restore device node: Operation not permitted *** Error code 1 ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 01:41:29 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 518F716A403 for ; Wed, 20 Sep 2006 01:41:29 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0730E43D49 for ; Wed, 20 Sep 2006 01:41:29 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id D786D1A3C19; Tue, 19 Sep 2006 18:41:28 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 96B21515F7; Tue, 19 Sep 2006 21:41:27 -0400 (EDT) Date: Tue, 19 Sep 2006 21:41:27 -0400 From: Kris Kennaway To: Alexander Leidinger Message-ID: <20060920014127.GA52449@xor.obsecurity.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory 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, 20 Sep 2006 01:41:29 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 19, 2006 at 09:21:17AM +0200, Alexander Leidinger wrote: > Quoting Brooks Davis (from Mon, 18 Sep =20 > 2006 21:25:30 -0500): >=20 > >On Mon, Sep 18, 2006 at 11:08:42PM -0300, Marc G. Fournier wrote: > >> > >>I have linux_base-fc-4_8 installed, clean install, and the two sysctl > >>referred to in /usr/ports/UPDATING haven't been changed from the defaul= t: > >> > >># sysctl -a | grep compat.linux.osname > >>compat.linux.osname: Linux > >># sysctl -a | grep compat.linux.osrelease > >>compat.linux.osrelease: 2.4.2 > >> > >>But, when I try to run configure from a chroot environment, I get: > >> > >>../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory > >> > >>I've searched through /usr/ports/UPDATING, but am not finding anything > >>except for the section on "remove /compat/linux completely", which I've > >>done ... > >> > >>So, either the port isn't creating something, or I'm missing something = in > >>the UPDATING doc :( > > > >You must have devfs containing at least null and zero mounted in your > >chroot. >=20 > Right. Additionally I suggest to use a linux_dist-gento-* port if you =20 > want to do cross-development. The default linux_base port only =20 > contains stuff to run the programs in the ports collection (and maybe =20 > a little bit more). To compile the stuff to test the linuxolator in =20 > -current I use linux_dist-gento-stage3. You should mount devfs, =20 > linprovfs and maybe linsysfs in the chroot. What happened to the linux_devtools port (which is supposed to take care of this) - was it never updated to parity with linux_base? Kris --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEJxHWry0BWjoQKURAhMaAJ9X1j86Y6x3FBAN73KjOAGLllaf2QCgrBE4 PhgKyrHJpSSeZTcmc0ifWag= =2qi9 -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk-- From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 01:52:08 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B64816A407 for ; Wed, 20 Sep 2006 01:52:08 +0000 (UTC) (envelope-from scrappy@freebsd.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C28F43D53 for ; Wed, 20 Sep 2006 01:52:07 +0000 (GMT) (envelope-from scrappy@freebsd.org) Received: from localhost (unknown [200.46.208.251]) by hub.org (Postfix) with ESMTP id 3BD613A4660; Tue, 19 Sep 2006 22:51:50 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 01963-04; Tue, 19 Sep 2006 22:50:52 -0300 (ADT) Received: from ganymede.hub.org (blk-137-86-60.eastlink.ca [24.137.86.60]) by hub.org (Postfix) with ESMTP id B09643A464F; Tue, 19 Sep 2006 22:50:34 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 397CD36093; Tue, 19 Sep 2006 22:50:57 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 3872D343F5; Tue, 19 Sep 2006 22:50:57 -0300 (ADT) Date: Tue, 19 Sep 2006 22:50:57 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: freebsd@ganymede.hub.org To: Kris Kennaway In-Reply-To: <20060920014127.GA52449@xor.obsecurity.org> Message-ID: <20060919224942.J1031@ganymede.hub.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory 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, 20 Sep 2006 01:52:08 -0000 On Tue, 19 Sep 2006, Kris Kennaway wrote: > On Tue, Sep 19, 2006 at 09:21:17AM +0200, Alexander Leidinger wrote: >> Quoting Brooks Davis (from Mon, 18 Sep >> 2006 21:25:30 -0500): >> >>> On Mon, Sep 18, 2006 at 11:08:42PM -0300, Marc G. Fournier wrote: >>>> >>>> I have linux_base-fc-4_8 installed, clean install, and the two sysctl >>>> referred to in /usr/ports/UPDATING haven't been changed from the default: >>>> >>>> # sysctl -a | grep compat.linux.osname >>>> compat.linux.osname: Linux >>>> # sysctl -a | grep compat.linux.osrelease >>>> compat.linux.osrelease: 2.4.2 >>>> >>>> But, when I try to run configure from a chroot environment, I get: >>>> >>>> ../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory >>>> >>>> I've searched through /usr/ports/UPDATING, but am not finding anything >>>> except for the section on "remove /compat/linux completely", which I've >>>> done ... >>>> >>>> So, either the port isn't creating something, or I'm missing something in >>>> the UPDATING doc :( >>> >>> You must have devfs containing at least null and zero mounted in your >>> chroot. >> >> Right. Additionally I suggest to use a linux_dist-gento-* port if you >> want to do cross-development. The default linux_base port only >> contains stuff to run the programs in the ports collection (and maybe >> a little bit more). To compile the stuff to test the linuxolator in >> -current I use linux_dist-gento-stage3. You should mount devfs, >> linprovfs and maybe linsysfs in the chroot. > > What happened to the linux_devtools port (which is supposed to take > care of this) - was it never updated to parity with linux_base? Apparently not ... ? > ls -ld */*devtools* drwxr-xr-x 2 root wheel 512 Nov 6 2005 devel/linux_devtools-6 drwxr-xr-x 2 root wheel 512 Nov 6 2005 devel/linux_devtools-7 And all they contain in them is README.html files ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 06:20:50 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C317916A415 for ; Wed, 20 Sep 2006 06:20:50 +0000 (UTC) (envelope-from yyjfquiimkv@classifiedtoday.com) Received: from classifiedtoday.com (cmo116.neoplus.adsl.tpnet.pl [83.31.142.116]) by mx1.FreeBSD.org (Postfix) with SMTP id 87E0443D72 for ; Wed, 20 Sep 2006 06:20:42 +0000 (GMT) (envelope-from yyjfquiimkv@classifiedtoday.com) Received: from 83.31.142.116 by classifiedtoday.com Date: Wed, 20 Sep 2006 08:20:40 +0100 From: "hermon gibb" X-Sender: yyjfquiimkv@classifiedtoday.com To: Message-Id: <5050021885.UfILAPZk-2831603-899169009@classifiedtoday.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Slow as a snail. 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, 20 Sep 2006 06:20:50 -0000 HOT ALERT - THIS ONE IS STILL CLIMBING THE CHARTS ALERT -- BREAKING MARKET NEWS REPORT ---- WBRS.PK Company Name: WILD BRUSH ENERGY Lookup: WBRS.PK Current Price: .05 Expected: STEADILY CLIMB FOR THE TOP Breaking News: Wild Brush Acquires Additional Powder River Oil & Gas Lease Wild Brush Energy (PINKSHEETS: WBRS) announces the purchase of an additional Powder River Basin Federal Oil & Gas Lease in the State of Wyoming. The lease is located on the eastern side of the Basin in Weston County. This is the fifth lease the Company now controls in the region. Wild Brush maintains its expansion strategy through acquisition of low risk, high probability oil and gas properties in proven regions such as Powder River basin. Wild Brush will continue to concentrate on the Powder River Basin area, due to the number of lease acre ages it currently controls. The Powder River Basin claims a high probability rate of discoveries and proven production as demonstrated by such companies as Chevron and Western Gas. There are presently over 12,000 gas wells, in addition to nearly 400 new wells monthly, producing over 330 billion cubic feet annually, in an area with an estimated 32 trillion cubic feet of natural gas. About WBRS.PK Wild Brush Energy is a diversified energy company whose primary goal is to identify and develop Oil & Coalbed Methane sites within the State of Wyoming. In addition, Wild Brush Energy continues to evaluate clean air alternative energy producing technologies such as Wind Power. Wild Brush trades in the U.S. under the symbol "WBRS." WATCH THIS STOCK GO HIGHER AND HIGHER -------------------------------------------------------------------------------- the results speak for themselves You have to see the results to believe them ----------------------- The squeaky wheel gets the grease. This is for the birds. Spring to mind. Rain, rain go away; come again some other day. A thorn in my side. You feel like a fish out of water. We'll hand you out to dry. Walking on water. The season of goodwill. Tastes like chicken. This is for the birds. Play a harp before a cow. Tastes like chicken. Pull it up by the roots. Plant kindness and gather love. They're like two peas in a pod. She's a nut. Tossed around like a hot potato. The season of goodwill. Too little too late. You say potayto, I say potahto. Sick as a dog. Welcome to my garden. Plant kindness and gather love. You never miss the water till the well runs dry. Useless as tits on bull. Tossed around like a hot potato. Under the weather. A thorn in my side. Throw pearls before swine. Stir up an ant's nest. Under the weather. Put that in your pipe and smoke it. Root it out. Walking on thin ice. You reap what you sow. A thorn in my side. We hung them out to dry. Waking up with the chickens. From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 07:27:29 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E650116A6F0; Wed, 20 Sep 2006 07:27:28 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59E3143D55; Wed, 20 Sep 2006 07:27:27 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D5BD.dip.t-dialin.net [84.165.213.189]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8K741ak054419; Wed, 20 Sep 2006 09:04:01 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8K7RKD4025971; Wed, 20 Sep 2006 09:27:20 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 20 Sep 2006 09:27:09 +0200 Message-ID: <20060920092709.hkhg24ii8oggc0ok@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 20 Sep 2006 09:27:09 +0200 From: Alexander Leidinger To: "Marc G. Fournier" References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060919181052.T1031@ganymede.hub.org> In-Reply-To: <20060919181052.T1031@ganymede.hub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, gkovesdan@t-hosting.hu Subject: Re: /dev/null: No such file or directory 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, 20 Sep 2006 07:27:29 -0000 Quoting "Marc G. Fournier" (from Tue, 19 Sep =20 2006 18:11:24 -0300 (ADT)): > On Tue, 19 Sep 2006, Alexander Leidinger wrote: > >> Quoting Brooks Davis (from Mon, 18 Sep =20 >> 2006 21:25:30 -0500): >> >>> On Mon, Sep 18, 2006 at 11:08:42PM -0300, Marc G. Fournier wrote: >>>> >>>> I have linux_base-fc-4_8 installed, clean install, and the two sysctl >>>> referred to in /usr/ports/UPDATING haven't been changed from the defaul= t: >>>> >>>> # sysctl -a | grep compat.linux.osname >>>> compat.linux.osname: Linux >>>> # sysctl -a | grep compat.linux.osrelease >>>> compat.linux.osrelease: 2.4.2 >>>> >>>> But, when I try to run configure from a chroot environment, I get: >>>> >>>> ../gcc-4.0.3/configure: line 533: /dev/null: No such file or directory >>>> >>>> I've searched through /usr/ports/UPDATING, but am not finding anything >>>> except for the section on "remove /compat/linux completely", which I've >>>> done ... >>>> >>>> So, either the port isn't creating something, or I'm missing something = in >>>> the UPDATING doc :( >>> >>> You must have devfs containing at least null and zero mounted in your >>> chroot. >> >> Right. Additionally I suggest to use a linux_dist-gento-* port if =20 >> you want to do cross-development. The default linux_base port only =20 >> contains stuff to run the programs in the ports collection (and =20 >> maybe a little bit more). To compile the stuff to test the =20 >> linuxolator in -current I use linux_dist-gento-stage3. You should =20 >> mount devfs, linprovfs and maybe linsysfs in the chroot. > > Is there a trick I need to do to get stage3 to install in a jail? :) I don't know, but what about installing it on the host (with a PREFIX =20 which is ok for you) and then making a jail out of it (so you can ssh =20 to a linux-in-a-jail)? Maintainer CCed (and therefore no quote-trimming). > dev/ttya4: Can't restore device node: Operation not permitted > dev/radio49: Can't restore device node: Operation not permitted > dev/sdd14: Can't restore device node: Operation not permitted > dev/xda8: Can't restore device node: Operation not permitted > dev/mcdx0: Can't restore device node: Operation not permitted > dev/scd3: Can't restore device node: Operation not permitted > dev/vcs54: Can't restore device node: Operation not permitted > dev/fd0u800: Can't restore device node: Operation not permitted > *** Error code 1 > > ---- > Marc G. Fournier Hub.Org Networking Services (http://www.hub.org= ) > Email . scrappy@hub.org MSN . scrappy@hub.org > Yahoo . yscrappy Skype: hub.org ICQ . 7615664 Bye, Alexander. --=20 I think I am an overnight sensation right now!! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 07:49:59 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9A1A16A53A for ; Wed, 20 Sep 2006 07:49:59 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73A8D43E40 for ; Wed, 20 Sep 2006 07:46:27 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id k8K7kDhu040837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Sep 2006 09:46:13 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id k8K7kDLg040836; Wed, 20 Sep 2006 09:46:13 +0200 (CEST) Date: Wed, 20 Sep 2006 09:46:13 +0200 From: Divacky Roman To: Kris Kennaway Message-ID: <20060920074613.GA40694@stud.fit.vutbr.cz> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060920014127.GA52449@xor.obsecurity.org> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory 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, 20 Sep 2006 07:50:00 -0000 > What happened to the linux_devtools port (which is supposed to take > care of this) - was it never updated to parity with linux_base? we have gentoo base where you can install just about anything using portage. there's no need for having separate port of outdated developing tools. From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 08:26:12 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F3D516A47B for ; Wed, 20 Sep 2006 08:26:12 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id A875543D60 for ; Wed, 20 Sep 2006 08:26:10 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D5BD.dip.t-dialin.net [84.165.213.189]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8K82jCZ054629; Wed, 20 Sep 2006 10:02:46 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8K8Q503034186; Wed, 20 Sep 2006 10:26:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 20 Sep 2006 10:25:54 +0200 Message-ID: <20060920102554.mxditjplogkscw44@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 20 Sep 2006 10:25:54 +0200 From: Alexander Leidinger To: Kris Kennaway References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> In-Reply-To: <20060920014127.GA52449@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: linux cross-development (was: Re: /dev/null: No such file or directory) 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, 20 Sep 2006 08:26:12 -0000 Quoting Kris Kennaway (from Tue, 19 Sep 2006 =20 21:41:27 -0400): > What happened to the linux_devtools port (which is supposed to take > care of this) - was it never updated to parity with linux_base? No. There are several reasons. The current devtools port is a mess and interfered with the old =20 linux_base port in undesirable ways (can't remember exactly how, I =20 would have to have a look at it again). Bringing it into shape would =20 be a lot of work (nobody stepped up so far, but I didn't asked for =20 help for this because of the next reason). To cross-develop you need a full system, the linux_base port is a lean =20 and mean system. The current linux_base port is designed to extend the =20 FreeBSD system and to provide a good user experience for those ports =20 which are available in the ports collection (and most probably for a =20 lot of other applications). We rely on the fallthrough to the native =20 stuff in various places (e.g. we have symlinks to the corresponding =20 FreeBSD configs where it applies). Doing a chroot into /compat/linux =20 may work for some use cases, but not for all (and you need to do a =20 chroot for cross-compiling, else you may pickup FreeBSD native stuff =20 and get a lot of trouble) and it is not advised to to a chroot into it =20 (I should add a note about this to the port...). The linux_dist ports are full linux systems. You can chroot into them =20 and you already have all you need (and you can use the gentoo =20 package-stuff to add additional stuff). Bye, Alexander. --=20 Whatever carrousel you stand by, your baggage will come in on another one. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 09:23:08 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FC2516A407 for ; Wed, 20 Sep 2006 09:23:08 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id C142343D69 for ; Wed, 20 Sep 2006 09:23:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D5BD.dip.t-dialin.net [84.165.213.189]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8K8xZ9p054829; Wed, 20 Sep 2006 10:59:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8K9MuEU042192; Wed, 20 Sep 2006 11:22:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 20 Sep 2006 11:22:44 +0200 Message-ID: <20060920112244.3gx7bjlfk44g4w8g@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 20 Sep 2006 11:22:44 +0200 From: Alexander Leidinger To: Marcin Cieslak References: <450F3BA3.40304@SYSTEM.PL> In-Reply-To: <450F3BA3.40304@SYSTEM.PL> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: i386 mmap(2) fixed for LTP 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, 20 Sep 2006 09:23:08 -0000 Quoting Marcin Cieslak (from Tue, 19 Sep 2006 =20 02:36:51 +0200): > Using this patch I guess we have all mmap()-related LTP issues solved. > This fixes outstanding map07 test. Please add patches as attachments, not inline. Somehow they are =20 mangled and I have to aapply them by hand. This is ok for such small =20 patches (and I have to review them at the same time...), but not for =20 larger patches. > Please feel free to review. > +=09/* Linux mmap(2): The /* should be on a line by itself. Fixed locally. > -=09bsd_args.prot =3D linux_args->prot | PROT_READ;=09/* always required *= / > -=09if (linux_args->flags & LINUX_MAP_ANON) > +=09bsd_args.prot =3D linux_args->prot; > +=09if (linux_args->flags & LINUX_MAP_ANON) { No need for the opening { here. > =09=09bsd_args.fd =3D -1; > -=09else > +=09} else { > +=09=09/* > +=09=09 * Linux follows Solaris mmap(2) description: > +=09=09 * The file descriptor fildes is opened with > +=09=09 * read permission, regardless of the > +=09=09 * protection options specified. > +=09=09 * If PROT_WRITE is specified, the application > +=09=09 * must have opened the file descriptor > +=09=09 * fildes with write permission unless > +=09=09 * MAP_PRIVATE is specified in the flags > +=09=09 * argument as described below. > +=09=09 */ > + > +=09=09if ((error =3D fget(td, linux_args->fd, &fp)) !=3D 0) > + return error; > +=09=09if (fp->f_type !=3D DTYPE_VNODE) > +=09=09=09return EINVAL; Missing fdrop in the error case? Added locally for testing. > +=09=09/* Linux mmap() just fails for O_WRONLY files */ > +=09=09if (! (fp->f_flag & FREAD)) > +=09=09=09return EACCES; Same as above. Bye, Alexander. --=20 If it would be cheaper to repair the old one, the company will insist on the latest model. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 13:17:51 2006 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0075D16A51C for ; Wed, 20 Sep 2006 13:17:50 +0000 (UTC) (envelope-from unsubscribe@bigfoot.com) Received: from dogmail.org (alb122.neoplus.adsl.tpnet.pl [83.26.31.122]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D99743F0E for ; Wed, 20 Sep 2006 13:11:47 +0000 (GMT) (envelope-from unsubscribe@bigfoot.com) Received: from bigfoot.com (mail-kr5.bigfoot.com [211.115.216.252]) by dogmail.org (Postfix) with ESMTP id 3BF9E7CA52 for ; Wed, 20 Sep 2006 17:12:11 -0400 Message-ID: <010101c6dcf9$bd653996$70a054d2@bigfoot.com> From: =?windows-1251?B?zeDr7uPu4uD/IOHl5+7v4PHt7vHy/A==?= To: Emulation Date: Wed, 20 Sep 2006 17:12:11 -0400 Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.4682 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123 X-Kaspersky-Antivirus: passed MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: =?windows-1251?b?wu3o7ODt6P4g8PPq7uLu5Ojy5ev/IO7w4+Dt6Ofg9ujo?= X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: 74sara@yahoo.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 13:17:51 -0000 =ca=ce=cd=d1=d3=cb=dc=d2=c0=d6=c8=ce=cd=cd=db=c9 =d1=c5=cc=c8=cd= =c0=d0 26 =f1=e5=ed=f2=ff=e1=f0=ff 2006 =e3=ee=e4=e0 "=cd=c0=cb=ce=c3=ce=c2=c0=df =c1=c5=c7=ce=cf=c0=d1=cd=ce=d1=d2=dc =ca=ce=cc= =cf=c0=cd=c8=c8, =cf=d0=c5=c4=c5=cb=db =cd=c0=cb=ce=c3=ce=c2=ce=c9 =ce=cf= =d2=c8=cc=c8=c7=c0=d6=c8=c8" =d1=e5=ec=e8=ed=e0p =e2=e5=e4=f3=f2: =c7=e0=f0=e8=ef=ee=e2 =c2= =e0=e4=e8=ec =cc=e0=f0=e0=f2=ee=e2=e8=f7, =f0=f3=ea=ee=e2=ee=e4=e8= =f2=e5=eb=fc =e0=ed=e0=eb=e8=f2=e8=f7=e5=f1=ea=ee=e9 =f1=eb=f3=e6=e1=fb =fe= =f0=e8=e4=e8=f7=e5=f1=ea=ee=e9 =ea=ee=ec=ef=e0=ed=e8=e8=20 =ab=cf=e5=ef=e5=eb=ff=e5=e2, =c3=ee=eb=fc=f6=e1=eb=e0=f2 =e8 =ef=e0=f0=f2= =ed=e5=f0=fb=bb, =e7=e0=ec=e5=f1=f2=e8=f2=e5=eb=fc =e3=eb=e0=e2=ed=ee=e3=ee= =f0=e5=e4=e0=ea=f2=ee=f0=e0 =e6=f3=f0=ed=e0=eb=e0 =ab=cd=e0=eb=ee=e3=ee=e2= =e5=e4=bb=2e =d9=e5=ea=e8=ed =c4=e5=ed=e8=f1 =cc=e8=f5=e0=e9=eb=ee=e2=e8=f7<= /B>, =ea=e0=ed=e4=e8=e4=e0=f2 =fe=f0=e8=e4=e8=f7=e5=f1=ea=e8=f5 =ed=e0=f3= =ea, =ef=e0=f0=f2=ed=e5=f0 =fe=f0=e8=e4=e8=f7=e5=f1=ea=ee=e9 =ea=ee=ec=ef= =e0=ed=e8=e8 =ab=cf=e5=ef=e5=eb=ff=e5=e2, =c3=ee=eb=fc=f6=e1=eb=e0=f2 =e8 =ef=e0=f0=f2= =ed=e5=f0=fb=bb, =ef=f0=e5=ef=ee=e4=e0=e2=e0=f2=e5=eb=fc =ea=e0=f4=e5=e4=f0= =fb =ab=c0=e4=ec=e8=ed=e8=f1=f2=f0=e0=f2=e8=e2=ed=ee=e3=ee =e8 =f4=e8=ed=e0= =ed=f1=ee=e2=ee=e3=ee =ef=f0=e0=e2=e0=bb=20 =fe=f0=e8=e4=e8=f7=e5=f1=ea=ee=e3=ee =f4=e0=ea=f3=eb=fc=f2=e5=f2=e0 =cc=c3= =d3 =e8=ec=2e =cc=2e=c2=2e =cb=ee=ec=ee=ed=ee=f1=ee=e2=e0 =cf=f0=ee=e3=f0=e0=ec=ec=e0 =f1=e5=ec=e8=ed=e0=f0=e0: =cd=c0=cb=ce=c3=ce=c2=c0=df =c1=c5=c7=ce=cf=c0=d1=cd=ce=d1=d2=dc =ca=ce=cc= =cf=c0=cd=c8=c8 =c2 =d1=ce=c2=d0=c5=cc=c5=cd=cd=db=d5 =d3=d1=cb=ce=c2=c8=df= =d5 -=cf=f0=e5=e4=f1=f2=ee=ff=f9=e8=e5 =e8=e7=ec=e5=ed=e5=ed=e8=ff =e2 =ed=e0= =eb=ee=e3=ee=ee=e1=eb=ee=e6=e5=ed=e8=e8 =e2 2007 - 2009 =e3=ee=e4=e0=f5 <= BR> - =ca=ee=ec=ec=e5=ed=f2=e0=f0=e8=e9 =c7=e0=ea=ee=ed=e0 =ee =f1=ee=e2=e5=f0= =f8=e5=ed=f1=f2=e2=ee=e2=e0=ed=e8=e8 =ed=e0=eb=ee=e3=ee=e2=ee=e3=ee =e0=e4= =ec=e8=ed=e8=f1=f2=f0=e8=f0=ee=e2=e0=ed=e8=ff -=cf=ee=e4=e3=ee=f2=ee=e2=ea=e0 =ea=ee=ec=ef=e0=ed=e8=e8 =ea =ed=e0=eb=ee= =e3=ee=e2=ee=e9 =ef=f0=ee=e2=e5=f0=ea=e5, =e4=e5=e9=f1=f2=e2=e8=ff =f1= =ee=f2=f0=f3=e4=ed=e8=ea=ee=e2 =ea=ee=ec=ef=e0=ed=e8=e8 =e2=ee =e2=f0=e5=ec=ff =ef=f0=ee=e2=e5=e4=e5=ed=e8= =ff =ef=f0=ee=e2=e5=f0=ea=e8 - =ce=f1=ee=e1=e5=ed=ed=ee=f1=f2=e8 =ef=ee=e4=e3=ee=f2=ee=e2=ea=e8 =f1=f3= =e4=e5=e1=ed=fb=f5 =e4=ee=ea=f3=ec=e5=ed=f2=ee=e2 =ef=ee =ed=e0=eb=ee=e3=ee= =e2=fb=ec =f1=ef=ee=f0=e0=ec =d2=c5=cd=c4=c5=cd=d6=c8=c8 =c2 =d0=c0=c7=c2=c8=d2=c8=c8 =cd=c0=cb=ce=c3=ce= =c2=ce=c3=ce =cf=d0=c0=c2=c0 =d0=ce=d1=d1=c8=c8 - =d1=ed=e8=e6=e5=ed=e8=e5 =fd=ea=ee=ed=ee=ec=e8=f7=e5=f1=ea=ee=e3=ee =e1= =f0=e5=ec=e5=ed=e8 =ed=e0=eb=ee=e3=ee=e2 - =d0=ee=f1=f2 =ed=e5=ee=ef=f0=e5=e4=e5=eb=e5=ed=ed=ee=f1=f2=e8 =f0=ee=f1= =f1=e8=e9=f1=ea=ee=e3=ee =ed=e0=eb=ee=e3=ee=e2=ee=e3=ee =ef=f0=e0=e2=e0 <= BR> - =d0=ee=f1=f2 =ea=e0=f0=e0=f2=e5=eb=fc=ed=ee=f1=f2=e8 =f0=ee=f1=f1=e8=e9= =f1=ea=ee=e3=ee =ed=e0=eb=ee=e3=ee=e2=ee=e3=ee =ef=f0=e0=e2=e0 - =d0=ee=f1=f2 =f4=ee=f0=ec=e0=eb=e8=e7=ec=e0 =ef=f0=e8 =f0=e0=e7=f0=e5=f8= =e5=ed=e8=e8 =ed=e0=eb=ee=e3=ee=e2=fb=f5 =f1=ef=ee=f0=ee=e2 - =cf=e5=f0=e5=eb=ee=e6=e5=ed=e8=e5 =e1=f0=e5=ec=e5=ed=e8 =ed=e0=eb=ee=e3= =ee=e2=ee=e3=ee =ea=ee=ed=f2=f0=ee=eb=ff =f1 =ed=e0=eb=ee=e3=ee=e2=fb=f5 = =ee=f0=e3=e0=ed=ee=e2 =ed=e0 =ed=e0=eb=ee=e3=ee=ef=eb=e0=f2=e5=eb=fc=f9=e8= =ea=e0 =ca=d0=c8=d2=c5=d0=c8=c9 =c4=ce=c1=d0=ce=d1=ce=c2=c5=d1=d2=cd=ce=d1=d2=c8= =cd=c0=cb=ce=c3=ce=cf=cb=c0=d2=c5=cb=dc=d9=c8=ca=c0 =ca=c0=ca =d4=c0=ca=d2= =ce=d0 =cd=c0=cb=ce=c3=ce=c2=ce=c3=ce =d0=c8=d1=ca=c0 - =c4=ee=ea=f2=f0=e8=ed=e0 =ab=e4=e5=eb=ee=e2=ee=e9 =f6=e5=eb=e8=bb = - =ca=f0=e8=f2=e5=f0=e8=e9 =f3=f7=e5=f2=e0 =ef=f3=e1=eb=e8=f7=ed=ee=e3=ee= =e8=ed=f2=e5=f0=e5=f1=e0 =ef=f0=e8 =f0=e5=e0=eb=e8=e7=e0=f6=e8=e8 =e3=f0= =e0=e6=e4=e0=ed=ea=e8=f5 =ef=f0=e0=e2 =ce=d1=cd=ce=c2=cd=db=c5 =d2=c5=d5=cd=ce=cb=ce=c3=c8=c8 =d3=cf=d0=c0=c2=cb= =c5=cd=c8=df =cd=c0=cb=ce=c3=ce=c2=db=cc=c8 =d0=c8=d1=ca=c0=cc=c8 - =cc=e5=f2=ee=e4 =e4=ee=ef=ee=eb=ed=e8=f2=e5=eb=fc=ed=ee=e3=ee =e4=ee=ea= =f3=ec=e5=ed=f2=e0=eb=fc=ed=ee=e3=ee =ef=ee=e4=f2=e2=e5=f0=e6=e4=e5=ed=e8= =ff - =cc=e5=f2=ee=e4 =ed=e0=eb=ee=e3=ee=e2=ee=e9 =ef=ee=e4=f3=f8=ea=e8 =e1=e5= =e7=ee=ef=e0=f1=ed=ee=f1=f2=e8 - =cc=e5=f2=ee=e4 =f1=ee=e7=e4=e0=ed=e8=ff =f1=f3=e4=e5=e1=ed=ee=e3=ee =ef= =f0=e5=f6=e5=ed=e4=e5=ed=f2=e0 =d1=f2=ee=e8=ec=ee=f1=f2=fc =f3=f7=e0=f1=f2=e8=ff =e2 =f1=e5=ec= =e8=ed=e0=f0=e5: 5982 =f0=f3=e1=2e =f1 =f3=f7=e5=f2=ee=ec =cd=c4=d1=2e= =c1=ee=eb=e5=e5 =ee=e4=ed=ee=e3=ee =f3=f7=e0=f1=f2=ed=e8=ea=e0 =ee=f2 =ea= =ee=ec=ef=e0=ed=e8=e8 - =f1=ea=e8=e4=ea=e0 l0% =c2 =f1=f2=ee=e8=ec=ee=f1=f2=fc =e2=ea=eb=fe=f7=e5=ed=fb: =f0=e0=e7= =e4=e0=f2=ee=f7=ed=fb=e5 =ec=e0=f2=e5=f0=e8=e0=eb=fb, =ea=ee=f4=e5-=e1=f0= =e5=e9=ea, =ee=e1=e5=e4=2e, =ea=e0=ed=f6=e5=eb=ff=f0=f1=ea=e8=e5 =eb=f0=e8= =ed=e0=e4=eb=e5=e6=ed=ee=f1=f2=e8=2e =d1=e5=ec=e8=ed=e0=f0=fb =ef=f0=ee=f5=ee=e4=ff=f2 =e2 =f1=ee=e2=f0=e5=ec=e5= =ed=ed=fb=f5, =ee=e1=ee=f0=f3=e4=ee=e2=e0=ed=ed=fb=f5 =e0=f3=e4=e8=f2=ee=f0= =e8=ff=f5 (=ec=e5=f2=f0=ee =c0=e2=e8=e0=ec=ee=f2=ee=f0=ed=e0=ff)=2e =c2=f0=e5=ec=ff =ef=f0=ee=e2=e5=e4=e5=ed=e8=ff: =f1 l0=2e00 =e4=ee= l7=2e00=2e [1]=d0=e5=e3=e8=f1=f2=f0=e0=f6= =e8=ff =ed=e0 =f1=e0=e9=f2=e5=2e _________________________________________________________________ =c4=ee=ef=ee=eb=ed=e8=f2=e5=eb=fc=ed=e0=ff =e8=ed=f4=ee=f0=ec=e0=f6=e8= =ff =ef=ee =f2=e5=eb=e5=f4=ee=ed=f3: /=d795/ 585-l0-69 [2]=c5=f1=eb=e8 =e2=fb =f5=ee=f2=e8=f2=e5 =ee=f2=ea=e0=e7=e0=f2=fc=f1=ff =ee= =f2 =ef=ee=e4=ef=e8=f1=ea=e8 =ed=e0 =ed=e0=f8=e8 =f0=e0=f1=f1=fb=eb=ea=e8= , =ed=e0=e6=ec=e8=f2=e5 =f1=fe=e4=e0=2e References 1. 3d"http://infopb=2eru/" 2. 3d"http://infopb=2eru/info/in= From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 18:22:00 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F45416A407 for ; Wed, 20 Sep 2006 18:22:00 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C62D343D6B for ; Wed, 20 Sep 2006 18:21:57 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id ABAF11A4D91; Wed, 20 Sep 2006 11:21:57 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1397D5164F; Wed, 20 Sep 2006 14:21:57 -0400 (EDT) Date: Wed, 20 Sep 2006 14:21:56 -0400 From: Kris Kennaway To: Alexander Leidinger Message-ID: <20060920182156.GA83026@xor.obsecurity.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20060920102554.mxditjplogkscw44@webmail.leidinger.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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, 20 Sep 2006 18:22:00 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 20, 2006 at 10:25:54AM +0200, Alexander Leidinger wrote: > Quoting Kris Kennaway (from Tue, 19 Sep 2006 =20 > 21:41:27 -0400): >=20 > >What happened to the linux_devtools port (which is supposed to take > >care of this) - was it never updated to parity with linux_base? >=20 > No. There are several reasons. >=20 > The current devtools port is a mess and interfered with the old =20 > linux_base port in undesirable ways (can't remember exactly how, I =20 > would have to have a look at it again). Bringing it into shape would =20 > be a lot of work (nobody stepped up so far, but I didn't asked for =20 > help for this because of the next reason). >=20 > To cross-develop you need a full system, the linux_base port is a lean = =20 > and mean system. The current linux_base port is designed to extend the = =20 > FreeBSD system and to provide a good user experience for those ports =20 > which are available in the ports collection (and most probably for a =20 > lot of other applications). We rely on the fallthrough to the native =20 > stuff in various places (e.g. we have symlinks to the corresponding =20 > FreeBSD configs where it applies). Doing a chroot into /compat/linux =20 > may work for some use cases, but not for all (and you need to do a =20 > chroot for cross-compiling, else you may pickup FreeBSD native stuff =20 > and get a lot of trouble) and it is not advised to to a chroot into it = =20 > (I should add a note about this to the port...). OK, but under linux_base-8 it was enough to install the linux_devtools and then chroot, in order to compile linux stuff; in fact this was precisely the purpose of the linux_devtools port. Hopefully this will be addressed soon, it would be a shame to lose this functionality. Is anyone working on it? Kris --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEYbEWry0BWjoQKURAtgLAJ9n3aWo/3i+tmjIdFjKGaSgNSHumQCghyaL 9fXqcy4YzZsyJ28PnAL1lkE= =XZju -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm-- From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 18:23:39 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5708916A403 for ; Wed, 20 Sep 2006 18:23:39 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DDBF43D70 for ; Wed, 20 Sep 2006 18:23:39 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id ECA5B1A4D8F; Wed, 20 Sep 2006 11:23:38 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 66285513F0; Wed, 20 Sep 2006 14:23:38 -0400 (EDT) Date: Wed, 20 Sep 2006 14:23:38 -0400 From: Kris Kennaway To: Divacky Roman Message-ID: <20060920182338.GA83065@xor.obsecurity.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920074613.GA40694@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20060920074613.GA40694@stud.fit.vutbr.cz> User-Agent: Mutt/1.4.2.2i Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: /dev/null: No such file or directory 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, 20 Sep 2006 18:23:39 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 20, 2006 at 09:46:13AM +0200, Divacky Roman wrote: > > What happened to the linux_devtools port (which is supposed to take > > care of this) - was it never updated to parity with linux_base? >=20 > we have gentoo base where you can install just about anything using > portage. there's no need for having separate port of outdated developing > tools. There's the same need there always was (your argument could always have been said about linux_base and installing your own rpms). linux_devtools was pretty commonly used, and very useful. Kris --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEYcqWry0BWjoQKURApLnAKDnWLMYps9AU+1V2UrkuFpQfbtZPACfdCxN BS7mCSafXwHQ+Y4RY9cwPPs= =n4+j -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 18:58:53 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45F6916A417 for ; Wed, 20 Sep 2006 18:58:53 +0000 (UTC) (envelope-from shild@sbcglobal.net) Received: from flpi101.sbcis.sbc.com (flpi101.sbcis.sbc.com [207.115.20.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BB8D43D7E for ; Wed, 20 Sep 2006 18:58:44 +0000 (GMT) (envelope-from shild@sbcglobal.net) X-ORBL: [71.155.228.226] Received: from fbsd1.dyndns.org (adsl-71-155-228-226.dsl.emhril.sbcglobal.net [71.155.228.226]) by flpi101.sbcis.sbc.com (8.13.7 out spool5000 dk/8.13.7) with ESMTP id k8KIwIO9001086; Wed, 20 Sep 2006 11:58:18 -0700 Received: from fbsd1.dyndns.org (localhost [127.0.0.1]) by fbsd1.dyndns.org (8.13.8/8.13.8) with ESMTP id k8KIxlDu036712; Wed, 20 Sep 2006 13:59:48 -0500 (CDT) (envelope-from shild@sbcglobal.net) Received: (from shildret@localhost) by fbsd1.dyndns.org (8.13.8/8.13.8/Submit) id k8KIxj9w036711; Wed, 20 Sep 2006 13:59:45 -0500 (CDT) (envelope-from shild@sbcglobal.net) X-Authentication-Warning: fbsd1.dyndns.org: shildret set sender to shild@sbcglobal.net using -f From: "Scott T. Hildreth" To: Kris Kennaway In-Reply-To: <20060920182338.GA83065@xor.obsecurity.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920074613.GA40694@stud.fit.vutbr.cz> <20060920182338.GA83065@xor.obsecurity.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 20 Sep 2006 13:59:43 -0500 Message-Id: <1158778784.15501.34.camel@fbsd1.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: /dev/null: No such file or directory X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shild@sbcglobal.net List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 18:58:53 -0000 On Wed, 2006-09-20 at 14:23 -0400, Kris Kennaway wrote: > On Wed, Sep 20, 2006 at 09:46:13AM +0200, Divacky Roman wrote: > > > What happened to the linux_devtools port (which is supposed to take > > > care of this) - was it never updated to parity with linux_base? > > > > we have gentoo base where you can install just about anything using > > portage. there's no need for having separate port of outdated developing > > tools. > > There's the same need there always was (your argument could always > have been said about linux_base and installing your own rpms). > linux_devtools was pretty commonly used, and very useful. I brought this up about a month or so ago, since I used devtools to compile some linux binaries. I installed linux_dist-gentoo-stage3 (based on the advice I got on the list), did a chroot, installed some software using gentoo's portage system, and then compiled some code. It was fairly easy to use, when I compiled on the old linux_base using the linux_devtools I do remember having to mess with some of the paths. I haven't had time to test usage from the gentoo dirs, a a chroot is not real convenient as opposed to running from the /usr/compat/linux setup, but as stated I haven't had much time to test usage yet. Just thought I would share my experiences so far. STH > > Kris -- Scott T. Hildreth From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 19:24:12 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F09DA16A412 for ; Wed, 20 Sep 2006 19:24:12 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BA2D43D68 for ; Wed, 20 Sep 2006 19:24:11 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D5BD.dip.t-dialin.net [84.165.213.189]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8KJ0eQC057763; Wed, 20 Sep 2006 21:00:41 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8KJO6pP026531; Wed, 20 Sep 2006 21:24:06 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 20 Sep 2006 21:24:42 +0200 From: Alexander Leidinger To: Kris Kennaway Message-ID: <20060920212442.41c9ed0f@Magellan.Leidinger.net> In-Reply-To: <20060920182156.GA83026@xor.obsecurity.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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, 20 Sep 2006 19:24:13 -0000 Quoting Kris Kennaway (Wed, 20 Sep 2006 14:21:56 -0400): > OK, but under linux_base-8 it was enough to install the linux_devtools > and then chroot, in order to compile linux stuff; in fact this was > precisely the purpose of the linux_devtools port. > > Hopefully this will be addressed soon, it would be a shame to lose > this functionality. Is anyone working on it? Nobody is working on it and the linux base port diverged here since -8 (let's call it a little shift in what to expect from it since Trevor maintained them). A chroot will not work as expected: ---snip--- REMOVE_DIRS= boot dev home initrd root tmp var/log var/run var/tmp \ usr/local usr/tmp REMOVE_FILES= bin/df bin/su etc/exports etc/group etc/localtime \ etc/motd etc/passwd etc/printcap etc/services \ etc/protocols ---snip--- We rely on the fallthrough to the FreeBSD files. The same applies to e.g. fonts.conf in the linux-fontconfig (or linuxfreetype?) port. For the gtk/X11 port I'm not sure if we already did the fallthrough for the icons. Any ideas how to provide a chroot while not losing the fallthrough if not chrooted (and we try to identify other files/dirs where we want a fallthrough)? Bye, Alexander. -- Systems tend to grow and as they grow they encroach. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 19:48:52 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E60A16A492 for ; Wed, 20 Sep 2006 19:48:52 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD49343D45 for ; Wed, 20 Sep 2006 19:48:51 +0000 (GMT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id k8KJmpkw029604; Wed, 20 Sep 2006 13:48:51 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.8/8.13.8) with ESMTP id k8KJmmlO079912; Wed, 20 Sep 2006 13:48:48 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.8/8.13.8/Submit) id k8KJmmrS079909; Wed, 20 Sep 2006 13:48:48 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17681.39712.119019.147240@gromit.timing.com> Date: Wed, 20 Sep 2006 13:48:48 -0600 From: John E Hein To: Alexander Leidinger In-Reply-To: <20060920212442.41c9ed0f@Magellan.Leidinger.net> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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, 20 Sep 2006 19:48:52 -0000 Alexander Leidinger wrote at 21:24 +0200 on Sep 20, 2006: > Any ideas how to provide a chroot while not losing the fallthrough if > not chrooted (and we try to identify other files/dirs where we want a > fallthrough)? That smells a little like unionfs. FWIW, I'd like to see a resurrection of linux_devtools or some equivalent. >From a system building perspective, it seems difficult to build a system in an automated way (as in a product) that needs to build apps compiled for linux. We build packages in a FreeBSD chroot and pkg_add -p them into an image hierarchy (which is then copied to the target media, typically a Compact Flash). So, if we wanted to deploy a system that has linux_base and some linux-compiled apps, we'd have to build the linux_base .tgz package in our build chroot, pkg_delete it, then install linux_dist in order to compile linux apps (there are some closed linux libs we need to link with otherwise we'd just compile the apps as freebsd). Maybe there's an easier way, but if not, it would require changes to our build infrastructure here. This is one reason I haven't updated to the latest linux ports infrastructure for our products yet. It's getting more difficult to stay that course, however, as ports/Mk, et. al., diverges from our snapshot. From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 20:04:42 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 755EA16A4CA for ; Wed, 20 Sep 2006 20:04:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E38543DB8 for ; Wed, 20 Sep 2006 20:02:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E08891A3C1A; Wed, 20 Sep 2006 13:02:16 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DE35A513F0; Wed, 20 Sep 2006 16:02:15 -0400 (EDT) Date: Wed, 20 Sep 2006 16:02:15 -0400 From: Kris Kennaway To: Alexander Leidinger Message-ID: <20060920200215.GA84299@xor.obsecurity.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <20060920212442.41c9ed0f@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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, 20 Sep 2006 20:04:42 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 20, 2006 at 09:24:42PM +0200, Alexander Leidinger wrote: > Quoting Kris Kennaway (Wed, 20 Sep 2006 14:21:56 -0= 400): >=20 >=20 > > OK, but under linux_base-8 it was enough to install the linux_devtools > > and then chroot, in order to compile linux stuff; in fact this was > > precisely the purpose of the linux_devtools port. > >=20 > > Hopefully this will be addressed soon, it would be a shame to lose > > this functionality. Is anyone working on it? >=20 > Nobody is working on it and the linux base port diverged here since -8 > (let's call it a little shift in what to expect from it since Trevor > maintained them). >=20 > A chroot will not work as expected: > ---snip--- > REMOVE_DIRS=3D boot dev home initrd root tmp var/log var/run v= ar/tmp \ > usr/local usr/tmp > REMOVE_FILES=3D bin/df bin/su etc/exports etc/group etc/localti= me \ > etc/motd etc/passwd etc/printcap etc/services \ > etc/protocols > ---snip--- >=20 > We rely on the fallthrough to the FreeBSD files. The same applies to > e.g. fonts.conf in the linux-fontconfig (or linuxfreetype?) port. >=20 > For the gtk/X11 port I'm not sure if we already did the fallthrough for > the icons. >=20 > Any ideas how to provide a chroot while not losing the fallthrough if > not chrooted (and we try to identify other files/dirs where we want a > fallthrough)? Actually none of these seem to be critical for typical compilation needs, except for /dev and /tmp. The former you'll have to mount devfs to supply (in principle linux_devtools can do this automatically, by startup script), and you can make linux_devtools create a /compat/linux/tmp to handle that problem too (it's not ideal to have it use a private /tmp, but not a big deal either). Kris P.S. I'm not sure that falling through some of the etc/ files will DTRT, since Linux may require a different file format. --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEZ5HWry0BWjoQKURAi0BAJ9vLeLCbXfMilLFMZMCWeGd9XtYrQCeJIZs D870o5KbY5mO2s635In6HMI= =S472 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24-- From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 21:46:39 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7220116A403 for ; Wed, 20 Sep 2006 21:46:39 +0000 (UTC) (envelope-from scrappy@freebsd.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0FEB43D46 for ; Wed, 20 Sep 2006 21:46:38 +0000 (GMT) (envelope-from scrappy@freebsd.org) Received: from localhost (unknown [200.46.204.128]) by hub.org (Postfix) with ESMTP id 57F513A4658; Wed, 20 Sep 2006 18:46:24 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 13574-05; Wed, 20 Sep 2006 21:45:15 +0000 (UTC) Received: from ganymede.hub.org (blk-137-86-60.eastlink.ca [24.137.86.60]) by hub.org (Postfix) with ESMTP id 383663A464C; Wed, 20 Sep 2006 18:44:59 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 261845C5B7; Wed, 20 Sep 2006 18:45:09 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 2173C5C57A; Wed, 20 Sep 2006 18:45:09 -0300 (ADT) Date: Wed, 20 Sep 2006 18:45:09 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: freebsd@ganymede.hub.org To: Alexander Leidinger In-Reply-To: <20060920102554.mxditjplogkscw44@webmail.leidinger.net> Message-ID: <20060920184438.I1031@ganymede.hub.org> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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, 20 Sep 2006 21:46:39 -0000 On Wed, 20 Sep 2006, Alexander Leidinger wrote: > Quoting Kris Kennaway (from Tue, 19 Sep 2006 21:41:27 > -0400): > >> What happened to the linux_devtools port (which is supposed to take >> care of this) - was it never updated to parity with linux_base? > > No. There are several reasons. > > The current devtools port is a mess and interfered with the old linux_base > port in undesirable ways (can't remember exactly how, I would have to have a > look at it again). Bringing it into shape would be a lot of work (nobody > stepped up so far, but I didn't asked for help for this because of the next > reason). > > To cross-develop you need a full system, the linux_base port is a lean and > mean system. The current linux_base port is designed to extend the FreeBSD > system and to provide a good user experience for those ports which are > available in the ports collection (and most probably for a lot of other > applications). We rely on the fallthrough to the native stuff in various > places (e.g. we have symlinks to the corresponding FreeBSD configs where it > applies). Doing a chroot into /compat/linux may work for some use cases, but > not for all (and you need to do a chroot for cross-compiling, else you may > pickup FreeBSD native stuff and get a lot of trouble) and it is not advised > to to a chroot into it (I should add a note about this to the port...). > > The linux_dist ports are full linux systems. You can chroot into them and you > already have all you need (and you can use the gentoo package-stuff to add > additional stuff). Just curious, but why are the linux_dist ports trying to create devices in the dev directory? shouldn't one be using devfs to mount devices? ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 05:55:39 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8457416A403 for ; Thu, 21 Sep 2006 05:55:39 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id E341143D46 for ; Thu, 21 Sep 2006 05:55:37 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F41D.dip.t-dialin.net [84.165.244.29]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8L5W12v060481; Thu, 21 Sep 2006 07:32:02 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8L5tWr7015521; Thu, 21 Sep 2006 07:55:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 21 Sep 2006 07:55:21 +0200 Message-ID: <20060921075521.635qo889nkkg80cs@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 21 Sep 2006 07:55:21 +0200 From: Alexander Leidinger To: John E Hein References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> <17681.39712.119019.147240@gromit.timing.com> In-Reply-To: <17681.39712.119019.147240@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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: Thu, 21 Sep 2006 05:55:39 -0000 Quoting John E Hein (from Wed, 20 Sep 2006 13:48:48 -0600= ): > Alexander Leidinger wrote at 21:24 +0200 on Sep 20, 2006: > > Any ideas how to provide a chroot while not losing the fallthrough if > > not chrooted (and we try to identify other files/dirs where we want a > > fallthrough)? > > That smells a little like unionfs. Feel free to provide a description how to achieve this. I don't see it =20 at first look. And I don't like to mount stuff at installation time or =20 to request to mount something to get it working. > FWIW, I'd like to see a resurrection of linux_devtools or some > equivalent. Feel free to work on it. See below for your concerns regarding =20 automated building. > From a system building perspective, it seems difficult to build a > system in an automated way (as in a product) that needs to build apps > compiled for linux. > > We build packages in a FreeBSD chroot and pkg_add -p them into an > image hierarchy (which is then copied to the target media, typically a > Compact Flash). > > So, if we wanted to deploy a system that has linux_base and some > linux-compiled apps, we'd have to build the linux_base .tgz package in > our build chroot, pkg_delete it, then install linux_dist in order to > compile linux apps (there are some closed linux libs we need to link You don't need to delete the linux_base. linux_dist-gentoo-stage3 =20 installs into /usr/local/gentoo-stage3. As long as you do a chroot =20 into the linux directory, you will not have any problem. If you don't =20 do a chroot, you have to be careful to not pick up FreeBSD stuff. This =20 may or may not work. If you are very careful, you can do a =20 cross-build, but if you do real cross-development, you should really =20 do a chroot (else you have to verify in the worst case for every bug =20 that no FreeBSD stuff is picked up instead). > with otherwise we'd just compile the apps as freebsd). Maybe there's > an easier way, but if not, it would require changes to our build > infrastructure here. Feel free to describe how it looks currently. I try to get time to write up some docs in the wiki which someone from =20 doc@ can convert to docbook for the handbook. Feel free to nag me =20 about it after some days. Bye, Alexander. --=20 Air pollution is really making us pay through the nose. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 06:12:56 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8F8416A407 for ; Thu, 21 Sep 2006 06:12:56 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id F24A243D55 for ; Thu, 21 Sep 2006 06:12:55 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F41D.dip.t-dialin.net [84.165.244.29]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8L5nKBi060547; Thu, 21 Sep 2006 07:49:20 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8L6Co7H017945; Thu, 21 Sep 2006 08:12:50 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 21 Sep 2006 08:12:39 +0200 Message-ID: <20060921081239.golv9vl58gococko@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 21 Sep 2006 08:12:39 +0200 From: Alexander Leidinger To: Kris Kennaway References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> <20060920200215.GA84299@xor.obsecurity.org> In-Reply-To: <20060920200215.GA84299@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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: Thu, 21 Sep 2006 06:12:56 -0000 Quoting Kris Kennaway (from Wed, 20 Sep 2006 =20 16:02:15 -0400): > Actually none of these seem to be critical for typical compilation > needs, except for /dev and /tmp. The former you'll have to mount > devfs to supply (in principle linux_devtools can do this > automatically, by startup script), and you can make linux_devtools > create a /compat/linux/tmp to handle that problem too (it's not ideal > to have it use a private /tmp, but not a big deal either). Try to print something in acroread while having /compat/linux/tmp. =20 Acroread will use the linux tmp while the FreeBSD native lpr command =20 (configured in acroread to be able to print something) searches in the =20 FreeBSD tmp. Currently you don't need to mount anything for a lot of linux programs =20 to work just fine. I like to keep it this way as long as possible. The common case is that people just use the linux base to run linux =20 programs, and not to cross-develop something. What's the problem to =20 tell those people which want to cross-develop something to use the =20 linux_dist ports? Maintaining linux_base as it is is not hard (if you =20 know the pitfalls and some design decissions). Maintaining linux_dist =20 is easy too (it borrows a lot of knowledge from linux_base). =20 Maintaining a linux_base and a linux_devtools port which uses the =20 linux_base port is much harder than maintaining distinct linux_base =20 and linux_dist ports. And distinct ports don't cause as much problems =20 (see the icc part below for an example) as a combination. > Kris > > P.S. I'm not sure that falling through some of the etc/ files will > DTRT, since Linux may require a different file format. Passwd seems to be compatible enough for GTK to not complain (it =20 complains when someone uses NIS but hasn't setup the corresponding =20 linux config file, I don't know if this NIS config is compatible so =20 that we could depend upon a fallthrough). The printer configuration is =20 not necessary to be compatible, we use the FreeBSD native print =20 commands. BTW: ATM we have CONFLICTS between icc and linux_devtools. Icc is a =20 linux binary which generates FreeBSD native binaries. When =20 linux_devtools is installed icc picks up linux stuff and can't =20 generate FreeBSD native binaries. Not a major problem, but a nuisance =20 for those which want to use both. Bye, Alexander. --=20 I've always made it a solemn practice to never drink anything stronger than tequila before breakfast. =09=09-- R. Nesson http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 06:15:39 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9780A16A403; Thu, 21 Sep 2006 06:15:39 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0644343D45; Thu, 21 Sep 2006 06:15:38 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F41D.dip.t-dialin.net [84.165.244.29]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8L5q3TY060562; Thu, 21 Sep 2006 07:52:03 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8L6FXi5018371; Thu, 21 Sep 2006 08:15:33 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 21 Sep 2006 08:15:22 +0200 Message-ID: <20060921081522.zbnr13vhu88wws84@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 21 Sep 2006 08:15:22 +0200 From: Alexander Leidinger To: "Marc G. Fournier" , gkovesdan@t-hosting.hu References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920184438.I1031@ganymede.hub.org> In-Reply-To: <20060920184438.I1031@ganymede.hub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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: Thu, 21 Sep 2006 06:15:39 -0000 Quoting "Marc G. Fournier" (from Wed, 20 Sep =20 2006 18:45:09 -0300 (ADT)): > On Wed, 20 Sep 2006, Alexander Leidinger wrote: > >> Quoting Kris Kennaway (from Tue, 19 Sep 2006 =20 >> 21:41:27 -0400): >> >>> What happened to the linux_devtools port (which is supposed to take >>> care of this) - was it never updated to parity with linux_base? >> >> No. There are several reasons. >> >> The current devtools port is a mess and interfered with the old =20 >> linux_base port in undesirable ways (can't remember exactly how, I =20 >> would have to have a look at it again). Bringing it into shape =20 >> would be a lot of work (nobody stepped up so far, but I didn't =20 >> asked for help for this because of the next reason). >> >> To cross-develop you need a full system, the linux_base port is a =20 >> lean and mean system. The current linux_base port is designed to =20 >> extend the FreeBSD system and to provide a good user experience for =20 >> those ports which are available in the ports collection (and most =20 >> probably for a lot of other applications). We rely on the =20 >> fallthrough to the native stuff in various places (e.g. we have =20 >> symlinks to the corresponding FreeBSD configs where it applies). =20 >> Doing a chroot into /compat/linux may work for some use cases, but =20 >> not for all (and you need to do a chroot for cross-compiling, else =20 >> you may pickup FreeBSD native stuff and get a lot of trouble) and =20 >> it is not advised to to a chroot into it (I should add a note about =20 >> this to the port...). >> >> The linux_dist ports are full linux systems. You can chroot into =20 >> them and you already have all you need (and you can use the gentoo =20 >> package-stuff to add additional stuff). > > Just curious, but why are the linux_dist ports trying to create devices > in the dev directory? shouldn't one be using devfs to mount devices? Good question. I agree with the devfs part. Let's as the maintainer (CCed). Bye, Alexander. --=20 (1)=09If it's green or it wiggles, it's biology. (2)=09If it stinks, it's chemistry. (3)=09If it doesn't work, it's physics. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 07:27:42 2006 Return-Path: X-Original-To: emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F03916A415; Thu, 21 Sep 2006 07:27:42 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EC7D43D4C; Thu, 21 Sep 2006 07:27:40 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F41D.dip.t-dialin.net [84.165.244.29]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8L744p4060797; Thu, 21 Sep 2006 09:04:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8L7RYUk028410; Thu, 21 Sep 2006 09:27:34 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 21 Sep 2006 09:27:23 +0200 Message-ID: <20060921092723.5yizp11bokw8wkcg@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 21 Sep 2006 09:27:23 +0200 From: Alexander Leidinger To: emulation@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: doc@FreeBSD.org Subject: Please review: cross-development of linux apps on FreeBSD 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: Thu, 21 Sep 2006 07:27:42 -0000 Hi, I wrote a little bit about the state of affairs regarding cross-development of Linux binaries at http://wiki.freebsd.org/linux-xdev Feel free to review and to provide improvements. People with write access to the wiki should feel free to improve inplace. If everything is ok, it would be nice if someone could add it to the handbook after some days. Bye, Alexander. -- I replaced the headlights on my car with strobe lights. Now it looks like I'm the only one moving. -- Steven Wright http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 15:27:07 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9A4416A40F for ; Thu, 21 Sep 2006 15:27:07 +0000 (UTC) (envelope-from saper@SYSTEM.PL) Received: from mail01.ish.de (pip250.ish.de [80.69.98.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B4BD43D78 for ; Thu, 21 Sep 2006 15:27:04 +0000 (GMT) (envelope-from saper@SYSTEM.PL) Received: from [80.69.97.9] (HELO saperski.saper.info) by mail-fe-02.mail01.ish.de (CommuniGate Pro SMTP 5.0.6) with ESMTPS id 67499341; Thu, 21 Sep 2006 17:27:03 +0200 Received: from [127.0.0.1] (saperski.saper.info [127.0.0.1]) by saperski.saper.info (8.13.8/8.13.8) with ESMTP id k8LDen4b006975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 21 Sep 2006 15:40:56 +0200 (CEST) (envelope-from saper@SYSTEM.PL) Message-ID: <45129661.40704@SYSTEM.PL> Date: Thu, 21 Sep 2006 15:40:49 +0200 From: Marcin Cieslak User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.6) Gecko/20060912 SeaMonkey/1.0.4 MIME-Version: 1.0 To: Alexander Leidinger References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> <20060920200215.GA84299@xor.obsecurity.org> <20060921081239.golv9vl58gococko@webmail.leidinger.net> In-Reply-To: <20060921081239.golv9vl58gococko@webmail.leidinger.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development 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: Thu, 21 Sep 2006 15:27:08 -0000 Alexander Leidinger wrote: > Quoting Kris Kennaway (from Wed, 20 Sep 2006 > 16:02:15 -0400): > >> Actually none of these seem to be critical for typical compilation >> needs, except for /dev and /tmp. The former you'll have to mount >> devfs to supply (in principle linux_devtools can do this >> automatically, by startup script), and you can make linux_devtools >> create a /compat/linux/tmp to handle that problem too (it's not ideal >> to have it use a private /tmp, but not a big deal either). > > Try to print something in acroread while having /compat/linux/tmp. > Acroread will use the linux tmp while the FreeBSD native lpr command > (configured in acroread to be able to print something) searches in the > FreeBSD tmp. > > Currently you don't need to mount anything for a lot of linux programs > to work just fine. I like to keep it this way as long as possible. > > The common case is that people just use the linux base to run linux > programs, and not to cross-develop something. What's the problem to tell > those people which want to cross-develop something to use the linux_dist > ports? Maintaining linux_base as it is is not hard (if you know the > pitfalls and some design decissions). Maintaining linux_dist is easy too > (it borrows a lot of knowledge from linux_base). Maintaining a > linux_base and a linux_devtools port which uses the linux_base port is > much harder than maintaining distinct linux_base and linux_dist ports. > And distinct ports don't cause as much problems (see the icc part below > for an example) as a combination. I would like to second Alexander on this. linux_base-fc-4 is the first fully-working-for-me Linux emulation port since almost two years. Finally I have everything running as it should (acroread, skype, etc.) and you can have Oracle 10 Express Edition fully up and running - that's considerable achievement. I would like to thank Alexander and all project participants for making this possible. I was a bit reluctant to give linux_dist ports a try because I misread CONFLICTS_* Makefile clauses. It runs perfectly completely independent from the base package and provides full chroot Linux-like environment. I even got a color "ls" there to remind me it's Linux (although no vi by default). And I *do* mind cluttering my nicely working small /compat/linux with more mis-versioned crap libraries needed for hacking. This setup really encouraged me to join development of the linuxolator since once I got Oracle running you can see that real compatibility is achievable. Alex: more patches to fix small issues in LTP tests are ready, in the meantime I try to improve my style(9) skills... :-) -- << Marcin Cieslak // saper@system.pl >> From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 18:02:44 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86CEB16A5CE; Thu, 21 Sep 2006 18:02:44 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8904343D46; Thu, 21 Sep 2006 18:02:43 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 22 Sep 2006 02:02:41 +0800 id 0010E409.4512D3C1.00002E36 References: <200609100956.k8A9uD0P094639@repoman.freebsd.org> <20060911193600.7ab43fb6@Magellan.Leidinger.net> <200609111528.49054.jhb@freebsd.org> <20060912073021.pvw7p0mit4w4cs8s@webmail.leidinger.net> <3bbf2fe10609120130l55c4590eha3628e7f1c21d8a7@mail.gmail.com> <3bbf2fe10609120147p343f48a4yeef4ad42a8bbb337@mail.gmail.com> <20060916165427.005d28d2@Magellan.Leidinger.net> <20060917131636.0fccc09a@Magellan.Leidinger.net> <20060918205526.65c78d55@Magellan.Leidinger.net> In-Reply-To: <20060918205526.65c78d55@Magellan.Leidinger.net> From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Fri, 22 Sep 2006 02:02:41 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: Alexander Leidinger Subject: [Updated on 2006-9-22] Linux AIO module, Re: PERFORCE change 105930 for review 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: Thu, 21 Sep 2006 18:02:44 -0000 Download: http://ftp.intron.ac/tmp/linux_aio-20060922.tar.bz2 Updated files: linux_aio.c vfs_aio.c.diff readme.txt 1. Flexible on-demand linking to FreeBSD native AIO module. Only when linux_io_xxx() is called will native AIO module be loaded. 2. Only two symbols "aio_init_aioinfo" and "aio_aqueue" of the native AIO module need to be exported. Alexander, please roll back "vfs_aio.c", and then apply my new patch "vfs_aio.c.diff", to conform to POLA (Principle Of Least Astonishment). And please change the value of "EXPORT_SYMS" in "/sys/modules/aio/Makefile". ------------------------------------------------------------------------ From Beijing, China Alexander Leidinger wrote: > > Wait... the aio stuff you need is already made global (instead of > static) and exported by the module. That's all you need. Roman should > have the mail from jhb@ where he explained how to dynamically look up > the stuff for the linux_mq_*() functions in the module load handle by > using the kernel linker to lookup the symbols (AFAIR). > > Roman, could you please forward the corresponding explanation to Intron? > From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 19:58:11 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2244516A403 for ; Thu, 21 Sep 2006 19:58:11 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns1int.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 762E343D6B for ; Thu, 21 Sep 2006 19:58:00 +0000 (GMT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id k8LJvxjU068743; Thu, 21 Sep 2006 13:57:59 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.8/8.13.8) with ESMTP id k8LJvvS3031155; Thu, 21 Sep 2006 13:57:57 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.8/8.13.8/Submit) id k8LJvmxj031145; Thu, 21 Sep 2006 13:57:48 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17682.61115.942535.166114@gromit.timing.com> Date: Thu, 21 Sep 2006 13:57:47 -0600 From: John E Hein To: Alexander Leidinger In-Reply-To: <20060921075521.635qo889nkkg80cs@webmail.leidinger.net> References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> <17681.39712.119019.147240@gromit.timing.com> <20060921075521.635qo889nkkg80cs@webmail.leidinger.net> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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: Thu, 21 Sep 2006 19:58:11 -0000 Alexander Leidinger wrote at 07:55 +0200 on Sep 21, 2006: > Quoting John E Hein (from Wed, 20 Sep 2006 13:48:48 -0600): > > Alexander Leidinger wrote at 21:24 +0200 on Sep 20, 2006: > > > Any ideas how to provide a chroot while not losing the fallthrough if > > > not chrooted (and we try to identify other files/dirs where we want a > > > fallthrough)? > > > > That smells a little like unionfs. > > Feel free to provide a description how to achieve this. I don't see > it at first look. I haven't thought about it. It just sounded a bit like unionfs. > And I don't like to mount stuff at installation time or to request > to mount something to get it working. I agree. > > From a system building perspective, it seems difficult to build a > > system in an automated way (as in a product) that needs to build apps > > compiled for linux. > > > > We build packages in a FreeBSD chroot and pkg_add -p them into an > > image hierarchy (which is then copied to the target media, typically a > > Compact Flash). > > > > So, if we wanted to deploy a system that has linux_base and some > > linux-compiled apps, we'd have to build the linux_base .tgz package in > > our build chroot, pkg_delete it, then install linux_dist in order to > > compile linux apps (there are some closed linux libs we need to link > > You don't need to delete the linux_base. linux_dist-gentoo-stage3 > installs into /usr/local/gentoo-stage3. As long as you do a chroot > into the linux directory, you will not have any problem. If you don't > do a chroot, you have to be careful to not pick up FreeBSD stuff. This > may or may not work. If you are very careful, you can do a > cross-build, but if you do real cross-development, you should really > do a chroot (else you have to verify in the worst case for every bug > that no FreeBSD stuff is picked up instead). Okay, I see that linux_base & linux_dist can co-exist. But I still see some problems... I'd have to change our build to get the source code into the gentoo chroot. Plus right now, the app is built as a FreeBSD port, so I'd have to get the FreeBSD ports infrastructure (and make(1)) working under the gentoo chroot, too. That could be a lot of work. Also, if I build in the gentoo chroot, but deploy the app to be run under linux_base, I suspect there may be library conflicts (this is not unlike the problems that have been mentioned for linux_devtools). From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 04:28:21 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E515616A407 for ; Fri, 22 Sep 2006 04:28:21 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A6B643D80 for ; Fri, 22 Sep 2006 04:28:21 +0000 (GMT) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.128]) by hub.org (Postfix) with ESMTP id D28AA3A466B for ; Fri, 22 Sep 2006 01:28:17 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 35194-09 for ; Fri, 22 Sep 2006 04:27:02 +0000 (UTC) Received: from ganymede.hub.org (blk-137-86-60.eastlink.ca [24.137.86.60]) by hub.org (Postfix) with ESMTP id AE9B63A466D for ; Fri, 22 Sep 2006 01:27:00 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id B89085C571; Fri, 22 Sep 2006 01:27:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id B33045C406 for ; Fri, 22 Sep 2006 01:27:01 -0300 (ADT) Date: Fri, 22 Sep 2006 01:27:01 -0300 (ADT) From: "Marc G. Fournier" To: freebsd-emulation@freebsd.org Message-ID: <20060922012433.A1031@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Linux "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: Fri, 22 Sep 2006 04:28:22 -0000 I know I can install the linux_dist_stage3 to get a linux environment within a FreeBSD jail, and login, do 'chroot /compat/linux /bin/sh' and actually run apache servers and such, just like I was logged into a linux box ... *but* ... is it possible to do this without the FreeBSD jail running first? ie: jail /compat/linux If so ... what would the start command be? ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 09:04:06 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.ORG Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A697916A4AB for ; Fri, 22 Sep 2006 09:04:06 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E18243DB8 for ; Fri, 22 Sep 2006 09:03:21 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (axydil@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k8M92m3i077108; Fri, 22 Sep 2006 11:02:53 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k8M92l5W077107; Fri, 22 Sep 2006 11:02:47 +0200 (CEST) (envelope-from olli) Date: Fri, 22 Sep 2006 11:02:47 +0200 (CEST) Message-Id: <200609220902.k8M92l5W077107@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, freebsd@hub.org In-Reply-To: <20060922012433.A1031@ganymede.hub.org> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 22 Sep 2006 11:02:53 +0200 (CEST) Cc: Subject: Re: Linux "jail" ... possible? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG, freebsd@hub.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 09:04:06 -0000 Marc G. Fournier wrote: > I know I can install the linux_dist_stage3 to get a linux environment > within a FreeBSD jail, and login, do 'chroot /compat/linux /bin/sh' and > actually run apache servers and such, just like I was logged into a linux > box ... > > *but* ... is it possible to do this without the FreeBSD jail running > first? > > ie: > > jail /compat/linux > > If so ... what would the start command be? Sure, I've done that before. Just use /bin/sh as start command to get a root shell within the linux jail. You can also directly run apachectl to start an apache within the linux jail, etc. (might require a wrapper script to setup $PATH and other things within the jail, though). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 09:23:57 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41E1A16A403 for ; Fri, 22 Sep 2006 09:23:57 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F7AA43D69 for ; Fri, 22 Sep 2006 09:23:55 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F5E0.dip.t-dialin.net [84.165.245.224]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8M905pm067467; Fri, 22 Sep 2006 11:00:06 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8M9Nlxb047190; Fri, 22 Sep 2006 11:23:47 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 22 Sep 2006 11:23:36 +0200 Message-ID: <20060922112336.fa6ckmswis8cssw0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 22 Sep 2006 11:23:36 +0200 From: Alexander Leidinger To: John E Hein References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> <17681.39712.119019.147240@gromit.timing.com> <20060921075521.635qo889nkkg80cs@webmail.leidinger.net> <17682.61115.942535.166114@gromit.timing.com> In-Reply-To: <17682.61115.942535.166114@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) 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: Fri, 22 Sep 2006 09:23:57 -0000 Quoting John E Hein (from Thu, 21 Sep 2006 13:57:47 -0600= ): > Alexander Leidinger wrote at 07:55 +0200 on Sep 21, 2006: > > Quoting John E Hein (from Wed, 20 Sep 2006 =20 > 13:48:48 -0600): > > > Alexander Leidinger wrote at 21:24 +0200 on Sep 20, 2006: > > > > Any ideas how to provide a chroot while not losing the fallthrough= if > > > > not chrooted (and we try to identify other files/dirs where we wan= t a > > > > fallthrough)? > > > > > > That smells a little like unionfs. > > > > Feel free to provide a description how to achieve this. I don't see > > it at first look. > > I haven't thought about it. It just sounded a bit like unionfs. Yes, but the pitfalls are in the details. > > And I don't like to mount stuff at installation time or to request > > to mount something to get it working. > > I agree. > Okay, I see that linux_base & linux_dist can co-exist. But I still see > some problems... > > I'd have to change our build to get the source code into the gentoo > chroot. Plus right now, the app is built as a FreeBSD port, so I'd You would have to do this (chroot) with the linux_base too. > have to get the FreeBSD ports infrastructure (and make(1)) working > under the gentoo chroot, too. That could be a lot of work. If you have a build machine which is just that, so you don't need the =20 linux_base for something else, you can try the =20 linux_base-gentoo-stage3 port instead for the generation of the =20 package. We do this for the linux_kdump port, but it only uses the =20 linuc-gcc to preprocess some files to get the linux-numbers instead of =20 the FreeBSD ones when using the FreeBSD-gcc to generate a FreeBSD =20 executable which is able to decode the linux syscalls when ktracing =20 them. If you know what you are doing, you don't need to chroot (I =20 don't chroot in the linux_kdump port), but you have to be very careful. > Also, if I build in the gentoo chroot, but deploy the app to be run > under linux_base, I suspect there may be library conflicts (this is > not unlike the problems that have been mentioned for linux_devtools). For the standard libs (glibc) I don't think there are more problems =20 than on any native linux system (I would expect less problems), for =20 other ones (gtk) you should notice the difference immediatly and then =20 you can try to find a suitable one for either the gentoo build env or =20 for linux_base (I would expect you are lucky and it just works, module =20 bugs in the code of the libs). Bye, Alexander. --=20 The one sure way to make a lazy man look respectable is to put a fishing rod in his hand. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 12:05:24 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CD0D16A415 for ; Fri, 22 Sep 2006 12:05:24 +0000 (UTC) (envelope-from scrappy@freebsd.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB5A243D5D for ; Fri, 22 Sep 2006 12:05:11 +0000 (GMT) (envelope-from scrappy@freebsd.org) Received: from localhost (unknown [200.46.204.128]) by hub.org (Postfix) with ESMTP id BE4E93A4677 for ; Fri, 22 Sep 2006 09:04:51 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 84992-01; Fri, 22 Sep 2006 12:03:32 +0000 (UTC) Received: from ganymede.hub.org (blk-137-86-60.eastlink.ca [24.137.86.60]) by hub.org (Postfix) with ESMTP id 53D563A4676; Fri, 22 Sep 2006 09:03:24 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 178495E599; Fri, 22 Sep 2006 09:03:28 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 135035CB0E; Fri, 22 Sep 2006 09:03:28 -0300 (ADT) Date: Fri, 22 Sep 2006 09:03:27 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: freebsd@ganymede.hub.org To: freebsd-emulation@FreeBSD.ORG, freebsd@hub.org In-Reply-To: <200609220902.k8M92l5W077107@lurza.secnetix.de> Message-ID: <20060922090239.F1031@ganymede.hub.org> References: <200609220902.k8M92l5W077107@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: Linux "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: Fri, 22 Sep 2006 12:05:24 -0000 On Fri, 22 Sep 2006, Oliver Fromme wrote: > Marc G. Fournier wrote: > > I know I can install the linux_dist_stage3 to get a linux environment > > within a FreeBSD jail, and login, do 'chroot /compat/linux /bin/sh' and > > actually run apache servers and such, just like I was logged into a linux > > box ... > > > > *but* ... is it possible to do this without the FreeBSD jail running > > first? > > > > ie: > > > > jail /compat/linux > > > > If so ... what would the start command be? > > Sure, I've done that before. Just use /bin/sh as start > command to get a root shell within the linux jail. > You can also directly run apachectl to start an apache > within the linux jail, etc. (might require a wrapper > script to setup $PATH and other things within the jail, > though). What about stuff like cron, syslog, etc? For instance, when we start up a freebsd jail, we run /etc/rc to make sure all processes are started ... is there an equivalent that can be run within the gentoo/linux tree? ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 15:59:40 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17AA216A417; Fri, 22 Sep 2006 15:59:40 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 386D243D9A; Fri, 22 Sep 2006 15:59:20 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Fri, 22 Sep 2006 23:59:17 +0800 id 0010E40B.45140855.0000655B From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Date: Fri, 22 Sep 2006 23:59:17 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: alexander@leidinger.net Subject: [Updated on 2006-9-22 again] Linux AIO module, Re: PERFORCE change 105930 for review 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: Fri, 22 Sep 2006 15:59:40 -0000 Download: http://ftp.intron.ac/tmp/linux_aio-20060922.tar.bz2 Updated file: linux_aio.h Define the type "linux_aio_context_t" in the same way as genuine Linux instead of "l_ulong". ------------------------------------------------------------------------ From Beijing, China ---------- Forwarded Mail ---------- From: "Intron is my alias on the Internet" To: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org Cc: Alexander Leidinger Subject: [Updated on 2006-9-22] Linux AIO module, Re: PERFORCE change 105930 for review Date: Fri, 22 Sep 2006 02:02:41 +0800 Download: http://ftp.intron.ac/tmp/linux_aio-20060922.tar.bz2 Updated files: linux_aio.c vfs_aio.c.diff readme.txt 1. Flexible on-demand linking to FreeBSD native AIO module. Only when linux_io_xxx() is called will native AIO module be loaded. 2. Only two symbols "aio_init_aioinfo" and "aio_aqueue" of the native AIO module need to be exported. Alexander, please roll back "vfs_aio.c", and then apply my new patch "vfs_aio.c.diff", to conform to POLA (Principle Of Least Astonishment). And please change the value of "EXPORT_SYMS" in "/sys/modules/aio/Makefile". ------------------------------------------------------------------------ From Beijing, China Alexander Leidinger wrote: > > Wait... the aio stuff you need is already made global (instead of > static) and exported by the module. That's all you need. Roman should > have the mail from jhb@ where he explained how to dynamically look up > the stuff for the linux_mq_*() functions in the module load handle by > using the kernel linker to lookup the symbols (AFAIR). > > Roman, could you please forward the corresponding explanation to Intron? > From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 14:24:37 2006 Return-Path: X-Original-To: emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4475616A552 for ; Fri, 22 Sep 2006 14:24:37 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32702.mail.mud.yahoo.com (web32702.mail.mud.yahoo.com [68.142.207.246]) by mx1.FreeBSD.org (Postfix) with SMTP id DA00E43D60 for ; Fri, 22 Sep 2006 14:24:35 +0000 (GMT) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 20890 invoked by uid 60001); 22 Sep 2006 14:24:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=bL1sp8lSe8En/qd2VrKTYwU4TU4efvAP8dXK4GazZ5UYFHKIsUDC1tQo/df2tqU+e44mbDp5xHmymnISIDzggAAv2P5hAPZOrMBGbBW/L6HZXfElEojwYQUyIahWpTRqhfqYQvKVTzprtdDDvL8Iq1S9pXqx/bmKdVf+vpCdmjs= ; Message-ID: <20060922142434.20888.qmail@web32702.mail.mud.yahoo.com> Received: from [200.118.211.52] by web32702.mail.mud.yahoo.com via HTTP; Fri, 22 Sep 2006 16:24:34 CEST Date: Fri, 22 Sep 2006 16:24:34 +0200 (CEST) From: To: emulation@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailman-Approved-At: Fri, 22 Sep 2006 17:14:30 +0000 Cc: Subject: Re: Please review: cross-development of linux apps on FreeBSD X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 14:24:37 -0000 Hi, While I haven't tried it since long ago (before egcs), it is possible to set gcc natively as a cross compiler for linux (or solaris or anything else supported by gcc) and then use ./configure --target=i386-linux or whatever. I recall there were some weird issues, like having to brandelf everything, but it worked. Just FYI ;-). Pedro. __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 23:22:41 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EE1916A47B; Fri, 22 Sep 2006 23:22:41 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23D6443D62; Fri, 22 Sep 2006 23:22:37 +0000 (GMT) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 7613818181; Sat, 23 Sep 2006 02:22:36 +0300 (EEST) Date: Sat, 23 Sep 2006 02:22:34 +0300 From: Ion-Mihai "IOnut" Tetcu To: freebsd-emulation@FreeBSD.org, freebsd-database@freebsd.org Message-ID: <20060923022234.3ce46236@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_vkgP/KTaNfqK3z2CkCc/Jxv"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: Subject: php*-oci8 or an alternative ? 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: Fri, 22 Sep 2006 23:22:41 -0000 --Sig_vkgP/KTaNfqK3z2CkCc/Jxv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, // Background info: I'm migrating a site from a Linux shop. I have an working installation (soon to be a port) of Oracle 10g XE on my 6-STABLE box. I need some way to connect to it from php. Ideally (since the site it's already done and runs OK on Linux) I should use: php4 + php-oci + ZendAccelerator + Smarty + pear-* I'm already behind the schedule. I don't really care if I have to switch to php5 to use oci8 or whatever (even if this means I have to write some wrapper functions in php); I wouldn't object right now to run everything under linuxulator, provided it works. 1. Trying to apply the same trick from php5-oci8 port to make a php4-oci8 port: for lib in ${LOCALBASE}/oracle8-client/lib/libclntsh /usr/lib/libpt= hread; do \ /usr/bin/ar x $${lib}.a; \ done; \ /usr/bin/ar rcs liboci8.a *.o results, at run-time in: PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php= /20020429/oci8.so' - /usr/local/lib/php/20020429/oci8.so: Undefined symbol = "pthread_kill" in Unknown on line 0 # objdump -TR /usr/local/lib/php/20020429/oci8.so | grep pthread_kill 00000000 D *UND* 00000000 pthread_kill 0040d00c R_386_PC32 pthread_kill 004fb188 R_386_JUMP_SLOT pthread_kill 2. php5-oci8 port doesn't work: On a FreeBSD 7.0-CURRENT #1: Thu Oct 12 15:41:06 EEST 2006 box: > php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/p= hp/20050922/oci8.so' - /usr/local/lib/php/20050922/oci8.so: Undefined symbo= l "__h_error" in Unknown on line 0 On my 6-STABLE: > php -r '$conn =3D oci_connect("hr", "hr", "//localhost/XE");' Segmentation fault (core dumped) > gdb php php.core ... Core was generated by `php'. Program terminated with signal 11, Segmentation fault ... #0 0x48a771eb in ?? () from /usr/local/lib/php/20050922-debug/oci8.so [New LWP 100093] (gdb) bt #0 0x48a771eb in ?? () from /usr/local/lib/php/20050922-debug/oci8.so #1 0x48746b25 in __sigsetjmp () from /usr/local/lib/php/20050922-debug/oci= 8.so Previous frame inner to this frame (corrupt stack?) Same if using databases/pecl-PDO_OCI. Same for php-cli or when running from a threaded apache22. So ... does php5-oci work for you ? If so, could you please share your configuration ? (uname -a, php config, apache config, ...). Many thanks for your help, --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" BOFH excuse #198: Post-it Note Sludge leaked into the monitor --Sig_vkgP/KTaNfqK3z2CkCc/Jxv Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFFHA7BX6fi0k6KXsRArXqAJ9MSDUCRQ4t8yUuOGxgk4Cv96H1pQCaA+1Z f2kKis2cImfB7i6SQYYnUSc= =YLxG -----END PGP SIGNATURE----- --Sig_vkgP/KTaNfqK3z2CkCc/Jxv-- From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 23 09:16:14 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8121416A9A2 for ; Sat, 23 Sep 2006 09:16:14 +0000 (UTC) (envelope-from tptaxlou@est.it) Received: from est.it (cjm79.neoplus.adsl.tpnet.pl [83.31.62.79]) by mx1.FreeBSD.org (Postfix) with SMTP id 0822243D58 for ; Sat, 23 Sep 2006 09:16:12 +0000 (GMT) (envelope-from tptaxlou@est.it) Date: Sat, 23 Sep 2006 11:16:12 +0100 From: "Therese Elisabetta" To: Cc: Message-Id: <3357081420.ZVrvou-5629-977888@est.it> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Subject: Stock News Blast 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: Sat, 23 Sep 2006 09:16:14 -0000 Company- A L L I A N C E E N T E R P R I S E Symbol - A E T R (Pink Sheets) C u r r e n t P r i c e: $ 0.48 Estimated Target - $ 2.00 + S T R O N G B U Y AE TR is undergoing a massive promotion and NOW is the time to get in. Add this Gem to your Watch list. Watch it Start a run monday About A L L I A N C E E N T E R P R I S E (.TaeCorp.) TaeCorp's vision is to be the recognized leader in providing Aerial Detection Systems including global de-mining, clearing a path to a safer planet for all humankind. TaeCorp's mission is to reclaim lands around the globe embedded with landmines that victimize countries and their stakeholders. N E W S TaeCorp Appoints TAM Oilfield Services as Representative in Sudan The A L L I A N C E E N T E R P R I S E Corporation ("TaeCorp") (AETR - News) is pleased to announce that it has appointed TAM Oilfield Services ("TAM"), of Khartoum, the capital of Sudan, as its representative to introduce and establish business relationships with oil and related companies interested in TaeCorp's unique landmine detection, location, mapping and removal systems and services. TAM Oilfield Services, established in 2001 under the laws and regulations of the Sudan government, has forged strong relationships with the leading petroleum companies that operate in the Sudan. "TAM's experience in the petroleum field, both with government and operating companies, will allow TaeCorp to 0ffer its services more efficiently and effectively and we are very pleased to have TAM join our team," says Ralph Proceviat, CFO of TaeCorp. Read more A C T N O W on this great news and get in before the move starts. The sun will shine into our yard to. Raking it in. A place in the sun. A place in the sun. Some like carrots others like cabbage. Under the weather. A stick in the mud. Sweating blood. Wait and see. Sow dry and set wet. Worked night and day. We'll hand you out to dry. Survival of the fittest. Shiver me timber. Plant kindness and gather love. Spill the beans. Water doesn't run uphill. Put that in your pipe and smoke it. Under the weather. Worry often gives a small thing a big shadow.