Subject: Error building X11 with build.sh
To: None <tech-x11@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-x11
Date: 08/21/2004 13:10:42
This is under the latest NetBSD 2.0 BETA.

If I go directly into the xsrc tree and run "make build" the system
builds and installs just fine.  If I try to build with "./build.sh
build" I get the following error:

In file included from /usr/src/xsrc/xfree/xc/lib/expat/xmlparse.c:23:
/usr/src/xsrc/xfree/xc/lib/expat/expat_config.h:50:2: warning: suggest
hiding #error from traditional C with an indented #
/usr/src/xsrc/xfree/xc/lib/expat/xmlparse.c:90:2: warning: suggest
hiding #error from traditional C with an indented #
/usr/src/xsrc/xfree/xc/lib/expat/xmlparse.c:94:22: internal.h: No such
file or directory
/usr/src/xsrc/xfree/xc/lib/expat/xmlparse.c:95:20: xmltok.h: No such
file or directory
/usr/src/xsrc/xfree/xc/lib/expat/xmlparse.c:96:21: xmlrole.h: No such
file or directory

*** Failed target:  xmlparse.ln
*** Failed command: CC=/usr/obj/tools/bin/i386--netbsdelf-gcc
/usr/obj/tools/bin/i386--netbsdelf-lint -chapbxzF -d
/usr/obj/usr/src/destdir.i386/usr/include -DXML_BYTE_ORDER=0
-I/usr/src/xsrc/xfree/xc/lib/expat -DCSRG_BASED -DFUNCPROTO=15
-DNARROWPROTO -I/usr/obj/usr/src/destdir.i386/usr/X11R6/include -i
/usr/src/xsrc/xfree/xc/lib/expat/xmlparse.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/x11/lib/expat

Here are all (I think) of the relevant entries from my /etc/mk.conf:

MKX11 =                 YES
USE_XF86_4 =            YES
MKOBJDIRS =             YES
MKOBJ =                 YES
MAKEOBJDIRPREFIX =      /usr/obj
TOOLDIR =               /usr/obj/tools
X11SRCDIR =             /usr/src/xsrc
OBJMACHINE =            /usr/obj
BSDSRCDIR =             /usr/NetBSD/cvs/src
BSDOBJDIR =             /usr/obj
RELEASEDIR =            /usr/release
X11BASE =               /usr/X11R6

-- 
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/