Subject: building 2.0: _PASSWORD_NOWARN undeclared
To: None <current-users@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: current-users
Date: 06/19/2004 13:40:30
One one of my machines (not the other!) I get this, trying to compile 2.0
sources on 1.6.2 userland:

	cc -O -I. -I./include -I/usr/cvs/src-current/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -D__DBINTERFACE_PRIVATE -c -o pw_scan.lo.o /disk4/cvs/src-current/tools/compat/../../lib/libc/gen/pw_scan.c
	/disk4/cvs/src-current/tools/compat/../../lib/libc/gen/pw_scan.c: In function `__nbcompat_pw_scan':
	/disk4/cvs/src-current/tools/compat/../../lib/libc/gen/pw_scan.c:96: `_PASSWORD_NOWARN' undeclared (first use in this function)
	/disk4/cvs/src-current/tools/compat/../../lib/libc/gen/pw_scan.c:96: (Each undeclared identifier is reported only once
	/disk4/cvs/src-current/tools/compat/../../lib/libc/gen/pw_scan.c:96: for each function it appears in.)
	...

_PASSWORD_NOWARN etc. are defined only if _NETBSD_SOURCE is set, which
should be the case given that it's set on the command line.

I don't understand the maze of the build process enough to debug this
further... what am I doing wrong?

Build command was: ./build.sh -x -U -r release
I've made sure that no non-CVS files are in the checked out dir, too.


  - Hubert