Subject: constifying stdlib.h made building stable tools fail on current
To: None <current-users@netbsd.org>
From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
List: current-users
Date: 05/10/2004 12:58:16
Hi,

the changes to src/include/stdlib.h after revision 1.64 made building stable
tools fail on a current system. (Reverting to 1.64 makes the build succeed.)

$ mount | grep /usr/src 
/src/nbsd/stable on /usr/src type null (read-only, local)
$ uname -srm
NetBSD 2.0E i386
$ sed 1q /usr/include/stdlib.h
/*      $NetBSD: stdlib.h,v 1.66 2004/04/23 14:44:54 christos Exp $     */
$ cd /usr/src && ./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

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~