Fix for errno 2 - expected 14 (EFAULT) problems

Boris Samorodov bsam at ipt.ru
Sun Sep 17 11:21:31 PDT 2006


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


More information about the freebsd-emulation mailing list