Subject: misc/23205: -current cross build requires asprintf() for host tools
To: None <gnats-bugs@gnats.netbsd.org>
From: None <giles@nemeton.com.au>
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
>Closed-Date:
>Last-Modified:
>Originator:     Giles Lean
>Release:        NetBSD -current (~2003-10-19)
>Organization:
--
Giles Lean <giles@nemeton.com.au>
>Environment:
Cross build of netbsd-current on HP-UX 11.23
>Description:

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

>How-To-Repeat:

On a platform without asprintf():

./build.sh ...
...
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
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: