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