Fix for errno 2 - expected 14 (EFAULT) problems
Boris Samorodov
bsam at ipt.ru
Sun Sep 17 06:52:29 PDT 2006
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 at 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
More information about the freebsd-emulation
mailing list