Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Kernels w/o IPX, NETATALK support build failure

Following the most recent changes to network subsystem, kernels which
lack both IPX and NETATALK support fail to build as follows:

--- if_loop.o ---
#   compile  FAYE/if_loop.o
/d0/build/current/tools/i386/bin/i486--netbsdelf-gcc -msoft-float -mno-mmx 
-mno-sse -mno-avx -ffreestanding -fno-zero-initialized-in-bss -O2 
-fno-omit-frame-pointer -fstack-protector -Wstack-protector --param 
ssp-buffer-size=1 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall 
-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra 
-Wno-unused-parameter -Wold-style-definition -Wno-sign-compare -march=pentium3 
--sysroot=/d0/build/current/DEST/i386 -Di386 -I. 
-I/x/current/src/sys/../common/include -I/x/current/src/sys/arch 
-I/x/current/src/sys -nostdinc -DDIAGNOSTIC -DCOMPAT_PECOFF -DIPSEC_ESP -DISO 
-std=gnu99 -I/x/current/src/sys/lib/libkern/../../../common/lib/libc/quad 
-D_FORTIFY_SOURCE=2 -I/x/current/src/sys/dist/pf 
-I/x/current/src/sys/external/bsd/acpica/dist/include -c 
In file included from /x/current/src/sys/net/if_loop.c:88:0:
/x/current/src/sys/net/if_loop.c: In function 'lostart':
/x/current/src/sys/net/if.h:429:30: error: 'ifq' may be used uninitialized in 
this function [-Werror=maybe-uninitialized]
 #define IF_QFULL(ifq)  ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
/x/current/src/sys/net/if_loop.c:362:19: note: 'ifq' was declared here
   struct ifqueue *ifq;
/x/current/src/sys/net/if_loop.c:425:14: error: 'isr' may be used uninitialized 
in this function [-Werror=maybe-uninitialized]
cc1: all warnings being treated as errors
*** [if_loop.o] Error code 1

nbmake: stopped in /d0/build/current/obj/i386/sys/arch/i386/compile/FAYE

In "if_loop.c", function lostart(), "ifq" and "isr" are uninitialized
unless at least either of "options IPX" or "options NETATALK" is present
in the kernel configuration AND the address family matches AF_IPX or
AF_APPLETALK, in the switch() statement, respectively.

For the INET{,6} cases, they remain uninitialized should control reach
the statements shown in the error messages above.

|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Home | Main Index | Thread Index | Old Index