Subject: Can't build -current on NetBSD 3.1.1
To: None <current-users@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
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
en/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -DNEW_TOOLCHAIN
  -o crunchgen crunchgen.lo crunched_skel.lo -L/autobuild/netbsd-current/obj/i386
/tools/compat -lnbcompat -lz
/autobuild/netbsd-current/obj/i386/tools/compat/libnbcompat.a(efun.lo)(.text+0xe
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

Stop.
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:
          build.sh command: ./build.sh -u -x -D /var/tmp/d -R /var/tmp/r release
          build.sh 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
          build.sh 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 anoncvs.netbsd.org while my laptop uses the developer CVS server. Both 
sources were updated today.

Any ideas?

Martti