Subject: Re: a problem building x11 from
To: C?sar Catri?n C. <>
From: Ronald van der Pol <>
List: tech-x11
Date: 05/05/2004 12:03:43
On Wed, May 05, 2004 at 00:05:13 -0400, C?sar Catri?n C. wrote:

> hi
> I've a problem building xfree 4.3.0 with rnetbsd-2-0. .
> ...
> ...
> includes ===> lib/dpstk
> includes ===> lib/expat
> nbmake: don't know how to make expat.h. Stop

This is what Luke Mewburn replied to me some time ago about an
X11 problem:

"This is because  /usr/xsrc/xfree/xc/lib/dps/dpsclrops.h
is a temporary "stale" file generated at runtime by a previous build,
most likely a previous "native" build of X11.
Ensure you have up to date source without any of these
temporary stale files, otherwise the build process with be confused by
The same problem can occur if you have .o files in a read-only
source tree."

Also, I notice this:

$ cvs diff -r1.6 Makefile 
Index: Makefile
RCS file: /cvsroot/src/x11/lib/expat/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -r1.6 -r1.7
< #     $NetBSD: Makefile,v 1.6 2004/04/04 00:20:45 lukem Exp $
> #     $NetBSD: Makefile,v 1.7 2004/04/28 14:17:57 lukem Exp $
< .include "Makefile.expatdefs"
> INCS= expat.h
< CPPFLAGS+=    ${EXPAT_FLAGS} -I${DIST} -I${X11SRCDIR.xc}/extras/expat/lib

Try cvs-ing again (both src and xsrc). You can also try to clean your
obj directory and see what happens. I recall that I had this error
also when I tried to compile X11 for the first time. I think I
completely removed xsrc and cvs-ed it from scratch.