Subject: misc/25544: building stable tools fails on current
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jukka-netbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 05/12/2004 18:23:00
>Number:         25544
>Category:       misc
>Synopsis:       building stable tools fails on current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 12 16:24:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 2.0E NetBSD 2.0E (GENERIC) #0: Wed May 12 14:16:45 CEST 2004 build@himo.salmi.ch:/build/nbsdc/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The changes to src/include/stdlib.h after revision 1.64 made building stable
tools on a current system fail.
>How-To-Repeat:
On a current NetBSD system, try to build tools from recent netbsd-1-6
sources:

$ ./build.sh -M /build/nbsds -T /opt/tools/stable -t
[...]
dependall ===> cap_mkdb
/opt/tools/stable/bin/nbhost-mkdep -a -I/build/nbsds/usr/src/tools/compat -I/build/nbsds/usr/src/tools/compat/include  -I/usr/src/tools/cap_mkdb/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  /usr/src/tools/cap_mkdb/../../usr.bin/cap_mkdb/cap_mkdb.c /usr/src/tools/cap_mkdb/../../lib/libc/gen/getcap.c
cc -O -I/build/nbsds/usr/src/tools/compat -I/build/nbsds/usr/src/tools/compat/include  -I/usr/src/tools/cap_mkdb/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -c -o cap_mkdb.lo.o /usr/src/usr.bin/cap_mkdb/cap_mkdb.c
/usr/src/usr.bin/cap_mkdb/cap_mkdb.c: In function `db_build':
/usr/src/usr.bin/cap_mkdb/cap_mkdb.c:178: warning: passing arg 2 of `cgetnext' from incompatible pointer type
mv cap_mkdb.lo.o cap_mkdb.lo
cc -O -I/build/nbsds/usr/src/tools/compat -I/build/nbsds/usr/src/tools/compat/include  -I/usr/src/tools/cap_mkdb/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -c -o getcap.lo.o /usr/src/lib/libc/gen/getcap.c
/usr/src/lib/libc/gen/getcap.c: In function `cgetent':
/usr/src/lib/libc/gen/getcap.c:213: error: argument `db_array' doesn't match prototype
/usr/include/stdlib.h:245: error: prototype declaration
/usr/src/lib/libc/gen/getcap.c: In function `cgetfirst':
/usr/src/lib/libc/gen/getcap.c:727: error: argument `db_array' doesn't match prototype
/usr/include/stdlib.h:246: error: prototype declaration
/usr/src/lib/libc/gen/getcap.c:733: warning: passing arg 2 of `cgetnext' from incompatible pointer type
/usr/src/lib/libc/gen/getcap.c: In function `cgetnext':
/usr/src/lib/libc/gen/getcap.c:762: error: argument `db_array' doesn't match prototype
/usr/include/stdlib.h:248: error: prototype declaration
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/cap_mkdb
*** Error code 1

>Fix:
Workaround: revert stdlib.h to revision 1.64
>Release-Note:
>Audit-Trail:
>Unformatted: