Subject: Kernel with 'options PPPOE_SERVER' does not compile.
To: NetBSD-current <current-users@NetBSD.org>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 08/30/2005 17:25:53
Hi guys.
Compiling kernel with options PPPOE_SERVER - as described in pppoe(4) gives following error :
# compile MX1/if_pppoe.o
/usr/src/../tools/bin/i386--netbsdelf-gcc -O2 -pipe -march=pentium3 -ffreestanding -O2 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DPPPOE_SERVER -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/net/if_pppoe.c
/usr/src/sys/net/if_pppoe.c: In function `pppoe_send_pads':
/usr/src/sys/net/if_pppoe.c:1327: warning: `l1' might be used uninitialized in this function
*** Failed target: if_pppoe.o
*** Failed command: echo '# ' "compile MX1/if_pppoe.o"; echo /usr/src/../tools/bin/i386--netbsdelf-gcc -O2 -pipe -march=pentium3 -ffreestanding -O2 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DPPPOE_SERVER -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/net/if_pppoe.c; /usr/src/../tools/bin/i386--netbsdelf-gcc -O2 -pipe -march=pentium3 -ffreestanding -O2 -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/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DPPPOE_SERVER -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf -c /usr/src/sys/net/if_
pppoe.c
*** Error code 1
Stop.
nbmake: stopped in /usr/obj/sys/arch/i386/compile/MX1
ERROR: Failed to make all in /usr/src/../obj/sys/arch/i386/compile/MX1
*** BUILD ABORTED ***