Subject: Re: a problem building x11 from build.sh
To: C?sar Catri?n C. <ccatrian@eml.cc>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
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. build.sh .
> 
> 
> ...
> ...
> 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 build.sh 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
these.
    
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
1c1
< #     $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 $
12c12,13
< .include "Makefile.expatdefs"
---
> INCS= expat.h
> INCSDIR=${X11INCDIR}
14c15
< CPPFLAGS+=    ${EXPAT_FLAGS} -I${DIST} -I${X11SRCDIR.xc}/extras/expat/lib
---
> CPPFLAGS+=    -DXML_BYTE_ORDER=0 -I${DIST}

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.

	rvdp