Subject: Re: Build problems anyone?
To: None <current-users@netbsd.org>
From: Emil =?iso-8859-1?Q?Sk=F6ldberg?= <emil@math.su.se>
List: current-users
Date: 09/07/2004 15:06:46
On 2004-08-15 jdolecek@NetBSD.org wrote:
>building tools with up-to-date src tree using
>
>./build.sh -T /usr/obj/tools -x -X /home/dolecek/soft/netbsd/xsrc -U -u
-j2 >tools
>
>fails for me in lex with:
>
># compile lex/ccl.lo
>cc -O -I/usr/obj/obj.i386/usr/home/dolecek/soft/netbsd/tools/compat
>-I/usr/obj/obj.i386/usr/home/dolecek/soft/netbsd/tools/compat/include
>-I/usr/home/dolecek/soft/netbsd/tools/lex/../compat
>-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I.
>-I/usr/home/dolecek/soft/netbsd/tools/lex/../../usr.bin/lex -c -o
ccl.lo.o >/usr/home/dolecek/soft/netbsd/usr.bin/lex/ccl.c
>In file included from
/usr/obj/obj.i386/usr/home/dolecek/soft/netbsd/tools/compat/config.h:114,
> from
/usr/home/dolecek/soft/netbsd/usr.bin/lex/flexdef.h:34,
> from /usr/home/dolecek/soft/netbsd/usr.bin/lex/ccl.c:31:
/usr/home/dolecek/soft/netbsd/tools/compat/compat_defs.h:66:2:
#error _NETBSD_SOURCE is *not* to be defined.
>Anyone else seen this problem?
Yes,
trying to build 'tools' natively on an alpha (with an up-to-date source
tree), the build fails here. Cross-building from Linux (on an x86) works
fine though.
Any suggestions?
Emil Sköldberg
Dept. of Mathematics
National University of Ireland, Galway