[CUWiN-Dev] in_getifa-patch on NetBSD-current

Bill Comisky bcomisky at pobox.com
Fri Jun 17 15:05:06 CDT 2005


Dave,

I'm getting the same problem with NetBSD-current where 169.254/16 
addressed packets are going out to our local LAN through the gateway 
instead of 10/8 addressed packets.  So I applied the in_getifa-patch.  I 
had to merge one hunk in sys/netinet/in.c manually because the __P() stuff 
has been removed since your patch was generated.  However, after patching, 
the build dies compiling in.c.  See the tail of the output at the bottom 
of this message; there didn't seem to be an instructive error message.

Do you know what's going on?

Bill

--
Bill Comisky
bcomisky at pobox.com

# compile cuw_45x1/in.o 
/home/bcomisky/cuwin/netbsd/build.cnt/T/bin/i386--netbsdelf-gcc 
-ffreestanding -g -Os -mcpu=i486 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/arch 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys -nostdinc 
-DTIMER_FREQ=1189200 -DMALLOC_NOINLINE -DDUMMY_NOPS -DLKM -DATW_DEBUG 
-DDIAGNOSTIC -DIEEE80211_DEBUG -DRTW_DEBUG -DWI_DEBUG -DWI_RING_DEBUG 
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dist/ipf -c 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c: In 
function `in_getifa': 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c:1147:
warning: cast discards qualifiers from pointer target type 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c:1147: 
warning: cast discards qualifiers from pointer target type 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c:1158: 
warning: cast discards qualifiers from pointer target type 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c:1158: 
warning: cast discards qualifiers from pointer target type

*** Failed target:  in.o
*** Failed command: echo '# ' "compile cuw_45x1/in.o"; echo 
/home/bcomisky/cuwin/netbsd/build.cnt/T/bin/i386--netbsdelf-gcc 
-ffreestanding -g -Os -mcpu=i486 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/arch 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys -nostdinc 
-DTIMER_FREQ="1189200" -DMALLOC_NOINLINE -DDUMMY_NOPS -DLKM -DATW_DEBUG 
-DDIAGNOSTIC -DIEEE80211_DEBUG -DRTW_DEBUG -DWI_DEBUG -DWI_RING_DEBUG 
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dist/ipf -c 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c; 
/home/bcomisky/cuwin/netbsd/build.cnt/T/bin/i386--netbsdelf-gcc 
-ffreestanding -g -Os -mcpu=i486 -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/arch 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys -nostdinc 
-DTIMER_FREQ="1189200" -DMALLOC_NOINLINE -DDUMMY_NOPS -DLKM -DATW_DEBUG 
-DDIAGNOSTIC -DIEEE80211_DEBUG -DRTW_DEBUG -DWI_DEBUG -DWI_RING_DEBUG 
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT 
-I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dist/ipf -c 
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/netinet/in.c
*** Error code 1

Stop.
nbmake: stopped in 
/home/bcomisky/cuwin/netbsd/build.cnt/O/sys/arch/i386/compile/cuw_45x1

ERROR: Failed to make all in 
/home/bcomisky/cuwin/netbsd/build.cnt/O/sys/arch/i386/compile/cuw_45x1
*** BUILD ABORTED ***
failed sh build.sh -m i386 -V MAKEFLAGS='COPTS.libevent=-g' -V 
MKKERBEROS=no -V MKKERBEROS4=no -V MKCATPAGES=no -V MKDOC=no -V MKINFO=no 
-V MKLINT=no -V MKMAN=no -V MKPAM=no -V STRIPFLAG=-s -O 
/home/bcomisky/cuwin/netbsd/build.cnt/O -T 
/home/bcomisky/cuwin/netbsd/build.cnt/T -D 
/home/bcomisky/cuwin/netbsd/build.cnt/D -R 
/home/bcomisky/cuwin/netbsd/build.cnt/R 
kernel=/home/bcomisky/cuwin/svkrepo/src/boot-image/kernel-conf/cuw_45x1
./mkstaboot: line 54: [: argument expected
Can't find kernel.



More information about the CU-Wireless-Dev mailing list