Subject: lib/17922: humanize_number(3) and humanize_number(9) decl type conflict
To: None <gnats-bugs@gnats.netbsd.org>
From: None <naoki@fukaumi.org>
List: netbsd-bugs
Date: 08/13/2002 13:07:07
>Number:         17922
>Category:       lib
>Synopsis:       humanize_number(3) and humanize_number(9) decl type conflict
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 12 21:08:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     FUKAUMI Naoki
>Release:        NetBSD 1.6E 2002/08/12
>Organization:
	FUKAUMI Naoki
>Environment:
System: NetBSD nforce.naobsd.org 1.6E NetBSD 1.6E (NFORCE) #0: Sat Aug 3 19:02:55 JST 2002 fun@nforce.naobsd.org:/usr/obj/i386/sys/arch/i386/compile/NFORCE i386
Architecture: i386
Machine: i386
>Description:
	humanize_number(3) and humanize_number(9) is incompatible.

% grep humanize_number src/include/util.h src/sys/sys/systm.h

src/include/util.h:int		humanize_number(char *, size_t, int64_t, const char *, int, int);
src/sys/sys/systm.h:int	humanize_number __P((char *, size_t, u_int64_t, const char *, int));

	make snapshot was failed at sbin/sysctl.
dependall ===> sbin/sysctl
CC=/home/t/hpcmips/bin/mipsel--netbsd-gcc /home/t/hpcmips/bin/nbmkdep -a  -DINET6 -DIPSEC -I/usr/src/sbin/sysctl -I/usr/src/sbin/sysctl/../../sys -nostdinc -isystem /home/d/hpcmips/usr/include  /usr/src/sbin/sysctl/sysctl.c
/home/t/hpcmips/bin/mipsel--netbsd-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werror  -DINET6 -DIPSEC -I/usr/src/sbin/sysctl -I/usr/src/sbin/sysctl/../../sys -nostdinc -isystem /home/d/hpcmips/usr/include  -c /usr/src/sbin/sysctl/sysctl.c
In file included from /usr/src/sbin/sysctl/sysctl.c:114:
/home/d/hpcmips/usr/include/util.h:77: conflicting types for `humanize_number'
/usr/src/sbin/sysctl/../../sys/sys/systm.h:208: previous declaration of `humanize_number'
*** Error code 1

>How-To-Repeat:
	get current source and build it.
>Fix:
	#ifdef _KERNEL ??? I don't know.
>Release-Note:
>Audit-Trail:
>Unformatted: