Subject: kernel compile error for altq_cdnr (MALLOC problem?)
To: None <current-users@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: current-users
Date: 04/15/2006 17:16:47
Hi,

I'm getting this compile error while i try to compile a new kernel:

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 -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
*** Error code 1

This is a little strange because nothing changed in the altq source since
the last time i build a kernel (that was one month ago).
I removed all my kernel obj files before runing a new config.

Maybe it is a problem with the MALLOC macro.

And then there is a second file which has the same problem:

/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

Bernd