Subject: Re: cannot build -current from Solaris 10
To: NetBSD-current <current-users@NetBSD.org>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: current-users
Date: 03/18/2006 20:28:14
Valeriy E. Ushakov wrote:
> 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
>   

Yes, but someone put #include <sys/cdefs.h> at the top of a bunch of
files in the tn3270 directory.

I'm finding them all and replacing that with <stdio.h>

I guess folks forget that people cross-compile NetBSD from systems other
than NetBSD itself. :-)

Grr.....

    -- Garrett

-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191