Subject: kern/35248: profiling code wont compile
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <liamjfoy@netbsd.org>
List: netbsd-bugs
Date: 12/13/2006 16:50:01
>Number:         35248
>Category:       kern
>Synopsis:       profiling code wont compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 13 16:50:01 +0000 2006
>Originator:     Liam J. Foy
>Release:        
>Organization:
None
>Environment:
$ uname -a
NetBSD router 4.0_BETA NetBSD 4.0_BETA (IPFF6_KERNEL) #4: Mon Dec  4 13:56:22 GMT 2006  liamfoy@foy:/home/liamfoy/netbsd-4-ipff/netbsd-4/src/sys/arch/i386/compile/IPFF6_KERNEL i386
$

>Description:
When compiling new netbsd-4 branch with profiling on GENERIC, it fails.
>How-To-Repeat:
$ make
making sure the profiled compat library is up to date...
`libcompat_p.a' is up to date.
making sure the profiled kern library is up to date...
`libkern.po' is up to date.
#   compile  GENERIC.PROF/subr_prof.o
cc -ffreestanding -fno-zero-initialized-in-bss -march=i486 -mtune=pentiumpro -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -fno-strict-aliasing -Di386 -I. -I../../../../contrib/dev/ath/netbsd -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DGPROF -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/i386/string -I../../../../dist/ipf -pg -c ../../../../kern/subr_prof.c
cc1: warnings being treated as errors
../../../../kern/subr_prof.c:58: warning: missing initializer
../../../../kern/subr_prof.c:58: warning: (near initialization for '_gmonparam.kcount')
*** Error code 1

Stop.
make: stopped in /root/src/sys/arch/i386/compile/GENERIC.PROF
$
>Fix: