Subject: Re: error building sh during make build
To: None <kurt.schreiner@Uni-Mainz.DE>
From: Todd Vierling <tv@NetBSD.ORG>
List: current-users
Date: 04/17/1998 08:05:44
On Fri, 17 Apr 1998, Kurt Schreiner wrote:

: cc -O  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith  -DSHELL -I. -I/usr/src/bin/sh -c arith.c
: cc1: warnings being treated as errors
: arith.y:66: warning: function declaration isn't a prototype
: arith.y: In function `arith':
: arith.y:74: warning: implicit declaration of function `arith_lex_reset'
: arith.y: At top level:
: arith.y:86: warning: function declaration isn't a prototype
: arith.tab.c: In function `yyparse':
: arith.tab.c:455: warning: implicit declaration of function `yylex'
: *** Error code 1

: this is on a i386 running current w/ sources supped yesterday after
: the sup server update. /etc/mk.conf looks like this:

: YHEADER=yes

Never put YHEADER in /etc/mk.conf.  It is NOT a global option, and will
break sh, among others.  It's only for use by the individual Makefiles.  sh
doesn't use YHEADER for some complicated reasons.  (Anything that you can
legally set in /etc/mk.conf for the src tree is documented in
/usr/share/mk/bsd.README, excepting USE_EGCS because it is a transitional
option.)

You need to clean out the directory src/bin/sh and re-sup because the use of
YHEADER clobbered some files that are not auto-generated.  Remove YHEADER
from /etc/mk.conf, and try again.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)