Subject: solaris cross-build fails
To: None <current-users@NetBSD.org>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 07/24/2003 02:05:41
to start with:

	# uname -a
	SunOS samedi 5.8 Generic sun4m sparc sun4m
	# ls /etc/mk.conf
	/etc/mk.conf: No such file or directory
	# DESTDIR=/netbsd/dest
	# export DESTDIR
	# RELEASEDIR=/netbsd/release
	# export RELEASEDIR
	# TOOLDIR=/netbsd/tools
	# export TOOLDIR
	# cd /netbsd/src
	# cat .updated
	20030723
	# /bin/ksh ./build.sh -B Solaris -D $DESTDIR -M /netbsd/obj \
		-m sparc -R $RELEASEDIR -r -T $TOOLDIR tools

and it ends (after seventeen minutes of slow compilation on this poor
little sparc-like machine), with this:

	/usr/local/bin/gcc -O  -I. -I./include -I/netbsd/src/tools/compat \
		-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE \
		-D__DBINTERFACE_PRIVATE -c -o gettemp.lo.o \
		/netbsd/src/tools/compat/../../lib/libc/stdio/gettemp.c
	/netbsd/src/tools/compat/../../lib/libc/stdio/gettemp.c:62: \
		reentrant.h: No such file or directory

wrapping added by me so that this is readable.  of course.

anyone got any helpful hints?  reentrant.h is clearly in
/netbsd/src/tools/compat/../../lib/libc/stdio, but the compiler is
also clearly not looking there...

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."