Subject: problems following -CURRENT
To: None <port-sparc64@NetBSD.org>
From: pasquale minervini <minervini@neuralnoise.com>
List: port-sparc64
Date: 04/23/2006 00:58:18
Hi there, 

It's a few days I'm trying to compile a kernel (a GENERIC with GRE and IPSEC
support I called SUN) without success, since it seems to fail on each warning; 
for example:

#   compile  SUN/ns_ip.o
cc -mcmodel=medlow -mno-fpu -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-fo
rmat-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wre
turn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno
-zero-initialized-in-bss -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I. -I/usr/
src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DIPSEC_DEBUG -DDIRECTED_BROADCAST
 -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../com
mon/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -
I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/sparc64/string -I/usr/
src/sys/dist/pf -I/usr/src/sys/dist/ipf -c /usr/src/sys/netns/ns_ip.c
/usr/src/sys/netns/ns_ip.c: In function `nsipoutput':
/usr/src/sys/netns/ns_ip.c:281: warning: cast from pointer to integer of diffe
rent size
*** Error code 1

Stop.
make: stopped in /usr/obj/sys/arch/sparc64/compile/SUN

I tried to fix some warnings and i got some files to compile successfully, but maybe I did something wrong, since this is the first time this problem happens to me.

Any idea ? 
Thanks a lot in advance.