Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2006 22:20:54 +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:  <82100473@bsam.ru>
In-Reply-To: <20060917180726.75d0a358@Magellan.Leidinger.net> (Alexander Leidinger's message of "Sun, 17 Sep 2006 18:07:26 %2B0200")
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/cdefs.h>
>  __FBSDID("$FreeBSD$");

> +#include "opt_compat.h"
> +
>  #include <sys/types.h>
>  #include <sys/param.h>
>  #include <sys/systm.h>

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



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