Subject: kern/5100: 'options MALLOCLOG' causes audio code compile to lose
To: None <>
From: None <cgd@NetBSD.ORG>
List: netbsd-bugs
Date: 03/02/1998 14:52:41
>Number:         5100
>Category:       kern
>Synopsis:       'options MALLOCLOG' causes audio code compile to lose
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar  2 15:05:00 1998
>Originator:     Chris G. Demetriou
Kernel Hackers 'r' Us
>Release:        NetBSD-current as of March 1, 1998
System: NetBSD 1.3D NetBSD 1.3D (BRICK) #36: Wed Feb 18 21:00:25 PST 1998 i386

	'options MALLOCLOG' causes compilation of the audio code (audio.c)
	to lose.

	An example:

	294 [brick] BRICK_MALLOCLOG % pwd      
	295 [brick] BRICK_MALLOCLOG % cat opt_malloclog.h
	#define MALLOCLOGSIZE   0x186a0
	#define MALLOCLOG
	296 [brick] BRICK_MALLOCLOG % make audio.o
	cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I../../../../arch -I../../../.. -nostdinc -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_12 -DCOMPAT_13 -DCOMPAT_43 -DCOMPAT_386BSD_MBRPART -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DNFSSERVER -DFIFO -DINET -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL  -Di386  -c ../../../../dev/audio.c
	../../../../dev/audio.c:490: macro `free' used with too many (3) args
	*** Error code 1


	take a kernel config that includes audio support.
	add 'options MALLOCLOG'.  make clean && make

	Unknown.  Looks like the easiest way would be to change the name
	of the 'free' element of struct audio_hw_if, but that's ...
	kind-of gross.