Subject: weird lossage with NFS + imake
To: None <tech-net@netbsd.org>
From: Luke Mewburn <lukem@wasabisystems.com>
List: tech-net
Date: 01/03/2001 15:00:36
i've been having some weird nfs lossage with -current, especially when
trying to build xfree86 4.0.2.

when i do a `make World' in the xc/ directory of a given x11 source
(e.g, xsrc/xfree/xc, or the `xc' module from xfree86's 4.0.x-current
anon cvs server) in some circumstances, makefiles built by
config/imake/imake (such as config/makedepend/Makefile.proto) appear
to get a lot of garbage lines appended.

further investigation reveals the following (all machines are i386):

	1.5_BETA2 machine on local disk; no problem
	1.5_BETA2 machine, nfs mounting (via localhost); no problem
	1.5Q on local disk (sources copied from 1.5_BETA2 machine); no problem.
	1.5Q nfs client (of 1.5_BETA2 machine); PROBLEM EXISTS

other people i've been speaking to have had similar problems (e.g,
veego, mrg), although mrg says his -current pmax with nfs xsrc doesn't
have the problem but his sparc64 does.

i suspect (but i'm probably wrong) some weird interaction between nfs,
ubc and stdio, since the code in config/imake/imake.c that builds the
makefiles looks like it's slightly funky stdio abuse.

any thoughts on how to track this bug down? i've tried a simple test
program modelled on similar code to how imake works but it works
without problem on small test files (both local and nfs).

stumped,
luke.