Subject: Re: -current cross build fails on Red Hat Linux 9.0
To: None <current-users@netbsd.org>
From: Giles Lean <giles@nemeton.com.au>
List: current-users
Date: 10/19/2003 13:09:07
[ for the benefit of the archives ]

A few months back I wrote re cross building -current on Red Hat Linux 9:

> ===> build.sh command: ./build.sh -u -U -D /home/unpriv/distribution -M /home/unpriv/obj distribution
> ...
> dependall ===> bin/rm
> dependall ===> bin/rmdir
> dependall ===> bin/sh
> cc -O   -o mkinit /home/giles/netbsd/src/bin/sh/mkinit.c
> /tmp/ccOUNoXW.o(.text+0x192): In function `readfile':
> : undefined reference to `strlcpy'
> collect2: ld returned 1 exit status
> *** Error code 1

The build now works; Luke fixed the problem:

| Module Name:	src
| Committed By:	lukem
| Date:		Sat Oct 18 07:58:35 UTC 2003
|
| Modified Files:
| 	src/bin/sh: Makefile
|
| Log Message:
| Link the host tools against tools/compat -lnbcompat since someone decided to
| use strlcpy() and snprintf() in the host tools...

--
Giles Lean <giles@nemeton.com.au>