Subject: kern/33343: an altq kernel does not compile
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <pr200604@veego.de>
List: netbsd-bugs
Date: 04/23/2006 06:30:01
>Number:         33343
>Category:       kern
>Synopsis:       an altq kernel does not compile
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 23 06:30:01 +0000 2006
>Originator:     Bernd Ernesti
>Release:        NetBSD 3.99.18
>Organization:
	
>Environment:
System: NetBSD 3.99.18
Architecture: i386
Machine: i386
>Description:
	Try to build a kernel with some altq options:

cc -ffreestanding -g -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/src/sys/arch -I/src/sys -nostdinc -DLKM -DPIC_DELAY -DSHMMNI=256 -DSHMSEG=256 -DOPEN_MAX=128 -DPPPOE_TERM_UNKNOWN_SESSIONS -DMSGBUFSIZE=65536 -DPCMCIACISDEBUG -DUSB_DEBUG -DWSDISPLAY_CHARFUNCS -DALTQ_PRIQ -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I/src/sys/lib/libkern/../../../common/lib/libc/quad -I/src/sys/lib/libkern/../../../common/lib/libc/string -I/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -I/src/sys/dist/ipf -c /src/sys/altq/altq_cdnr.c
/src/sys/altq/altq_cdnr.c: In function `cdnr_cballoc':
/src/sys/altq/altq_cdnr.c:283: error: case label does not reduce to an integer constant

#   compile  PARRESUM/altq_wfq.o
cc -ffreestanding -g -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/src/sys/arch -I/src/sys -nostdinc -DLKM -DPIC_DELAY -DSHMMNI=256 -DSHMSEG=256 -DOPEN_MAX=128 -DPPPOE_TERM_UNKNOWN_SESSIONS -DMSGBUFSIZE=65536 -DPCMCIACISDEBUG -DUSB_DEBUG -DWSDISPLAY_CHARFUNCS -DALTQ_PRIQ -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I/src/sys/lib/libkern/../../../common/lib/libc/quad -I/src/sys/lib/libkern/../../../common/lib/libc/string -I/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -I/src/sys/dist/ipf -c /src/sys/altq/altq_wfq.c
/src/sys/altq/altq_wfq.c: In function `wfq_config':
/src/sys/altq/altq_wfq.c:585: error: case label does not reduce to an integer constant

>How-To-Repeat:
	Build a kernel with these options:
options        ALTQ                    # Manipulate network interfaces' output queues
options        ALTQ_CBQ                # Class-Based Queueing
options        ALTQ_CDNR               # Diffserv Traffic Conditioner
options        ALTQ_FIFOQ              # First-In First-Out Queue
options        ALTQ_HFSC               # Hierarchical Fair Service Curve
options        ALTQ_PRIQ               # Priority Queueing
options        ALTQ_RED                # Random Early Detection
options        ALTQ_RIO                # RED with IN/OUT
options        ALTQ_WFQ                # Weighted Fair Queueing
options        FIFOQ_STATS

>Fix: