Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2006 17:52:08 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        emulation@freebsd.org
Subject:   Re: Fix for errno 2 - expected 14 (EFAULT) problems
Message-ID:  <46427671@bsam.ru>
In-Reply-To: <60660670@bsam.ru> (Boris Samorodov's message of "Sun, 17 Sep 2006 15:47:45 %2B0400")
References:  <450C0C0E.8060402@SYSTEM.PL> <20060916171840.5dd744b7@Magellan.Leidinger.net> <26755448@bsam.ru> <20060917131228.42b2cd23@Magellan.Leidinger.net> <60660670@bsam.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsam@ipt.ru> (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 <machine/../linux32/linux.h>
    49  #include <machine/../linux32/linux32_proto.h>
    50  #else
    51  #include <machine/../linux/linux.h>
    52  #include <machine/../linux/linux_proto.h>
    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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46427671>