Subject: lib/9443: build chokes in lib/libc/db/btree/bt_debug.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@itojun.org>
List: netbsd-bugs
Date: 02/18/2000 02:13:00
>Number:         9443
>Category:       lib
>Synopsis:       build chokes in lib/libc/db/btree/bt_debug.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 18 02:12:01 2000
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Organization:
	
>Release:        latest NetBSD-current
>Environment:
NetBSD turmeric.itojun.org 1.4S NetBSD 1.4S (TURMERIC.v6) #248: Thu Feb 17 20:29:23 PST 2000     itojun@turmeric.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/TURMERIC.v6 i386

>Description:
	build of lib/libc/db/btree/bt_debug.c chokes due to type difference
	between args to printf, and format string.
	Note that from include/db.h, pgno_t is typed u_int32_t.

cc -O2 -DALL_STATE -g  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS  -D_REENTRANT -I/usr/home/itojun/NetBSD/src/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE -DRESOLVSORT -I. -DPOSIX_MISTAKE -DFLOATING_POINT -DDEBUG -c /usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c
cc1: warnings being treated as errors
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c: In function `__bt_dump':
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:77: warning: long unsigned int format, recno_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c: At top level:
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:110: warning: function declaration isn't a prototype
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c: In function `__bt_dmpage':
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:116: warning: long unsigned int format, u_int32_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:117: warning: long unsigned int format, u_int32_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:118: warning: long unsigned int format, u_int32_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:119: warning: long unsigned int format, u_int32_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:120: warning: long unsigned int format, u_int32_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:121: warning: long unsigned int format, u_int32_t arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c: In function `__bt_dpage':
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:222: warning: long unsigned int format, unsigned int arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:230: warning: long unsigned int format, unsigned int arg (arg 3)
/usr/home/itojun/NetBSD/src/lib/libc/db/btree/bt_debug.c:241: warning: long unsigned int format, unsigned int arg (arg 3)
*** Error code 1
>How-To-Repeat:
>Fix:
	typecasts maybe?  or is it my pilot error during build?
>Audit-Trail:
>Unformatted: