Subject: Re: error building netbsd-3
To: None <netbsd-help@NetBSD.org>
From: Johan A.van Zanten <johan@giantfoo.org>
List: netbsd-help
Date: 04/16/2006 02:04:09
Johan A. van Zanten <johan@giantfoo.org> wrote:
>
> 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.
[ snip ]
> 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
FYI, i was able to get around this area by completely deleting my
NetBSD-3 source tree, and reinstalling from the tar balls of source from
ftp.netbsd.org. Apparently, this cleaned up something that "make cleandir"
did not.
-johan