Subject: misc/23205: -current cross build requires asprintf() for host tools
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/20/2003 15:06:19
>Number:         23205
>Category:       misc
>Synopsis:       -current cross build uses asprintf() for host tools
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 20 05:07:02 UTC 2003
>Originator:     Giles Lean
>Release:        NetBSD -current (~2003-10-19)
Giles Lean <>
Cross build of netbsd-current on HP-UX 11.23

When building NetBSD on a system which does not have asprintf()
the build of nbmake will fail.


On a platform without asprintf():

./ ...
gcc  -O -D_PATH_BSHELL="/usr/bin/sh" -D_PATH_DEFSHELLDIR="/usr/bin" -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -DMAKE_BOOTSTRAP -I/home/giles/projects/netbsd-current/src/tools/make/../../usr.bin/make -c /home/giles/projects/netbsd-current/src/tools/make/../../usr.bin/make/lst.lib/lstSucc.c
gcc  -O -o nbmake *.o
ld: Unsatisfied symbol "asprintf" in file var.o
1 errors.
collect2: ld returned 1 exit status