Subject: Can't build -current on NetBSD 3.1.1
To: None <>
From: Martti Kuparinen <>
List: current-users
Date: 07/03/2007 12:20:20
My nightly build server (NetBSD/i386 3.1.1) can't build NetBSD/i386 -current. 
I've nuked objdir, destdir, reldir and toolsdir but it fails like this:

#      link  crunchgen/crunchgen
cc -O -I/autobuild/netbsd-current/obj/i386/tools/compat -I/autobuild/netbsd-curr
ent/obj/i386/tools/compat/include  -I/autobuild/netbsd-current/src/tools/crunchg
  -o crunchgen crunchgen.lo crunched_skel.lo -L/autobuild/netbsd-current/obj/i386
/tools/compat -lnbcompat -lz
8): In function `estrndup':
: undefined reference to `strndup'

*** Failed target:  crunchgen
*** Failed command: cc -O -I/autobuild/netbsd-current/obj/i386/tools/compat -I/a
utobuild/netbsd-current/obj/i386/tools/compat/include -I/autobuild/netbsd-curren
t/src/tools/crunchgen/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
-DNEW_TOOLCHAIN -o crunchgen crunchgen.lo crunched_skel.lo -L/autobuild/netbsd-c
urrent/obj/i386/tools/compat -lnbcompat -lz
*** Error code 1

nbmake: stopped in /autobuild/netbsd-current/src/tools/crunchgen

At the same I was able to build a full 4.99.x release on my laptop running 4.99.x.

===> Summary of results:
 command: ./ -u -x -D /var/tmp/d -R /var/tmp/r release
 started: Tue Jul  3 09:17:37 EEST 2007
          NetBSD version:   4.99.22
          MACHINE:          i386
          MACHINE_ARCH:     i386
          Build platform:   NetBSD 4.99.22 i386
          HOST_SH:          /bin/sh
          TOOLDIR path:     /usr/obj/tools
          DESTDIR path:     /var/tmp/d
          RELEASEDIR path:  /var/tmp/r
          makewrapper:      /usr/obj/tools/bin/nbmake-i386
          Updated /usr/obj/tools/bin/nbmake-i386
          Successful make release
 ended:   Tue Jul  3 11:15:06 EEST 2007

The only difference is 3.1.1 vs 4.99.22 and that the former gets the sources 
from while my laptop uses the developer CVS server. Both 
sources were updated today.

Any ideas?