Re: incompatible pointer type

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Tue, 1 Apr 2008 08:08:00 -0700
On Mon, Mar 31, 2008 at 11:17 PM, Okalany Daniel <daniel_at_one2net.co.ug>
wrote:

> Good morning everyone,
> After making buildworld successfully,
> make buildkernel exits and the last lines are below. What could be the
> problem?
>
>
> totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
>  -Wundef
> -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/linux/../../i386/linux/linux_machdep.c
> cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99
> -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/IPFWKERNEL/opt_global.h -I. -I_at_ -I_at_/contrib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fno-common -g
> -I/usr/obj/usr/src/sys/IPFWKERNEL
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/linux/../../compat/linux/linux_mib.c
> cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99
> -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/IPFWKERNEL/opt_global.h -I. -I_at_ -I_at_/contrib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fno-common -g
> -I/usr/obj/usr/src/sys/IPFWKERNEL
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c
> cc1: warnings being treated as errors
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c: In function
> 'linux_sched_getaffinity':
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c:1753: warning:
> assignment from incompatible pointer type
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c: In function
> 'linux_sched_setaffinity':
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c:1779: warning:
> assignment from incompatible pointer type
> *** Error code 1
>
> Stop in /usr/src/sys/modules/linux.
> *** Error code 1
>
> Stop in /usr/src/sys/modules.
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/IPFWKERNEL.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>

The APIs that bind Linux to FreeBSD are out of date; time to email the
maintainer this info so they might look into fixing the issue :(...
-Garrett
Received on Tue Apr 01 2008 - 13:08:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC