Subject: Re: kernel compile error
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 03/11/2007 18:38:02
In article <20070311.231832.132440248.ryoh@jaist.ac.jp>,
Ryo HAYASAKA <ryoh@jaist.ac.jp> wrote:
>-=-=-=-=-=-
>
>Hi,
>
>The VIA_PADLOCK enabled kernel fails to compile:
>
>$ make dependall
>...
># compile BONNIE/via_padlock.o
>/usr/src/obj/toolsdir/bin/i386--netbsdelf-gcc -pipe -ffreestanding
>-fno-zero-initialized-in-bss -march=i486 -mtune=pentiumpro -ggdb
>-march=athlon -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
>-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch
>-Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign
>-Wno-attributes -Wextra -Wno-unused-parameter -fno-strict-aliasing
>-Di386 -I. -I../../../../contrib/dev/ath/netbsd
>-I../../../../../common/include -I../../../../arch -I../../../..
>-nostdinc -DSHMMNI=1024 -DSHMSEG=1024 -DLKM -DDIAGNOSTIC -DDEBUG
>-DEXT2FS_SYSTEM_FLAGS -DIPSEC_DEBUG -DMSGBUFSIZE=131072 -DMAXUSERS=32
>-D_KERNEL -D_KERNEL_OPT
>-I../../../../lib/libkern/../../../common/lib/libc/quad
>-I../../../../lib/libkern/../../../common/lib/libc/string
>-I../../../../lib/libkern/../../../common/lib/libc/arch/i386/string
>-I../../../../dist/pf -I../../../../dist/i
> pf -c ../../../../arch/x86/x86/via_padlock.c
>cc1: warnings being treated as errors
>../../../../arch/x86/x86/via_padlock.c: In function 'via_padlock_crypto_encdec':
>../../../../arch/x86/x86/via_padlock.c:363: warning: pointer of type
>'void *' used in arithmetic
>../../../../arch/x86/x86/via_padlock.c:379: warning: pointer of type
>'void *' used in arithmetic
>../../../../arch/x86/x86/via_padlock.c:391: warning: pointer of type
>'void *' used in arithmetic
>../../../../arch/x86/x86/via_padlock.c:405: warning: pointer of type
>'void *' used in arithmetic
>../../../../arch/x86/x86/via_padlock.c:419: warning: pointer of type
>'void *' used in arithmetic
>../../../../arch/x86/x86/via_padlock.c:419: warning: pointer of type
>'void *' used in arithmetic
>../../../../arch/x86/x86/via_padlock.c:419: warning: pointer of type
>'void *' used in arithmetic
>
>*** Failed target: via_padlock.o
Fixed, thanks
christos