Subject: Re: cannot build -current from Solaris 10
To: NetBSD-current <current-users@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: current-users
Date: 03/19/2006 03:27:32
On Sat, Mar 18, 2006 at 12:31:55 -0800, Garrett D'Amore wrote:

> Garrett D'Amore wrote:
> > Trying to cross build NetBSD for evbmips-el on Solaris 10, I get this error:
> >
> > garrett@zippy{125}> ./build.sh -T ${METEOR_TOOLS} -U -m evbmips-eb build
> >
> > ...
> >
> > #   compile  mkdctype/mkdctype.lo
> > gcc -O -DHOST_TOOL
> > -I/home/garrett/netbsd/src/usr.bin/tn3270/tools/mkdctype/../../api -c -o
> > mkdctype.lo.o   
> > /home/garrett/netbsd/src/usr.bin/tn3270/tools/mkdctype/mkdctype.c
> > /home/garrett/netbsd/src/usr.bin/tn3270/tools/mkdctype/mkdctype.c:32:23:
> > sys/cdefs.h: No such file or directory
> >
> > *** Failed target:  mkdctype.lo
> > *** Failed command: gcc -O -DHOST_TOOL
> > -I/home/garrett/netbsd/src/usr.bin/tn3270/tools/mkdctype/../../api -c -o
> > mkdctype.lo.o
> > /home/garrett/netbsd/src/usr.bin/tn3270/tools/mkdctype/mkdctype.c
> > *** Error code 1
> >
> >
> >
> > Looking at tn3270, it seems that it has a few "host tools" that help out.
> >
> > Can whoever owns tn3270 take a look, or should I just figure out a fix
> > myself?
> 
> Huh.  It looks like replacing sys/cdefs.h with stdio.h will do the
> trick.  :-)

In tools subdirectory there just hide every block from 
#if defined(__COPYRIGHT) to the final #endif /* not lint */
under #ifndef HOST_TOOL.

We don't need to go out of our way to get that copyright string into
the binary of the temporary program we use during the build.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen