Subject: error building netbsd-3
To: None <netbsd-help@NetBSD.org>
From: Johan A.van Zanten <johan@giantfoo.org>
List: netbsd-help
Date: 04/12/2006 17:55:45
 I found a hit or two for "undefined reference to `string_to_flags'" from
2002 in the mailing lists, but nothing with a good resolution.

 Anyone have any ideas?  I've done a make cleandir at the top of the src
tree before building.

Thanks,

 -johan

===> build.sh command: ./build.sh -x -U -u -T /local/NetBSD/tools build
===> build.sh started: Wed Apr 12 00:06:11 CDT 2006
===> MACHINE:          alpha
===> MACHINE_ARCH:     alpha
===> TOOLDIR path:     /local/NetBSD/tools
===> DESTDIR path:     /local/NetBSD/src/NetBSD-3/src/obj.alpha/destdir.alpha
===> RELEASEDIR path:  /local/NetBSD/src/NetBSD-3/src/obj.alpha/releasedir
===> makewrapper:      /local/NetBSD/tools/bin/nbmake-alpha
===> Updated /local/NetBSD/tools/bin/nbmake-alpha
Build started at: Wed Apr 12 00:06:15 CDT 2006
check-tools ===> .
obj ===> .

[ snip ]

obj ===> regress/usr.bin/sort
do-tools ===> .
dependall ===> tools
echo /local/NetBSD/tools > PREVIOUSTOOLDIR
dependall ===> tools/host-mkdep
install ===> tools/host-mkdep
dependall ===> tools/compat
install ===> tools/compat
dependall ===> tools/binstall
#      link  binstall/xinstall
cc -O   -I/local/NetBSD/src/NetBSD-3/src/bin/ls -I/local/NetBSD/src/NetBSD-3/src/usr.sbin/mtree   -o xinstall xinstall.lo getid.lo 
xinstall.lo(.text+0x9c8): In function `do_link':
: warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()
xinstall.lo(.text+0x63c): In function `main':
: undefined reference to `string_to_flags'
xinstall.lo(.text+0x640): In function `main':
: undefined reference to `string_to_flags'

*** Failed target:  xinstall
*** Failed command: cc -O -I/local/NetBSD/src/NetBSD-3/src/bin/ls -I/local/NetBSD/src/NetBSD-3/src/usr.sbin/mtree -o xinstall xinstall.lo getid.lo 
*** Error code 1

Stop.
nbmake: stopped in /local/NetBSD/src/NetBSD-3/src/tools/binstall

*** Failed target:  dependall
*** Failed command: cd /local/NetBSD/src/NetBSD-3/src/tools/binstall; /local/NetBSD/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /local/NetBSD/src/NetBSD-3/src/tools/binstall

*** Failed target:  dependall-binstall
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/local/NetBSD/src/NetBSD-3/src/tools" ;; *) this="tools/${dir}/"; real="/local/NetBSD/src/NetBSD-3/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /local/NetBSD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget binstall dependall
*** Error code 1

Stop.
nbmake: stopped in /local/NetBSD/src/NetBSD-3/src/tools

*** Failed target:  do-tools
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/local/NetBSD/src/NetBSD-3/src" ;; *) this="${dir}/"; real="/local/NetBSD/src/NetBSD-3/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /local/NetBSD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget tools dependall
*** Error code 1

Stop.
nbmake: stopped in /local/NetBSD/src/NetBSD-3/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/local/NetBSD/src/NetBSD-3/src" ;; *) this="${dir}/"; real="/local/NetBSD/src/NetBSD-3/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /local/NetBSD/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-tools
*** Error code 1

Stop.
nbmake: stopped in /local/NetBSD/src/NetBSD-3/src

ERROR: Failed to make build
*** BUILD ABORTED ***