Subject: bin/1838: usr.sbin/gspa/gspa fails to compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Alistair G. Crooks <azcb0@juts.ccc.amdahl.com>
List: netbsd-bugs
Date: 12/14/1995 08:36:00
>Number:         1838
>Category:       bin
>Synopsis:       usr.sbin/gspa/gspa fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 14 11:50:01 1995
>Last-Modified:
>Originator:     Alistair G. Crooks
>Organization:
	Amdahl Corp.
>Release:        December 13th, 1995
>Environment:
	NetBSD/i386 1.1A, December 13th sources
System: NetBSD pumpy.osg.uk.amdahl.com 1.1 NetBSD 1.1 (PUMPY) #0: Wed Dec 13 09:47:40 GMT 1995 root@pumpy.osg.uk.amdahl.com:/usr/src/sys/arch/i386/compile/PUMPY i386


>Description:
	usr.sbin/gspa/gspa fails to compile - it looks for y.tab.h,
but on my system, that file only exists when gsp_gram.y has been processed
by yacc. So I just re-ordered the order of processing of the input files
so that yacc is called first, to process gsp_gram.y, so that y.tab.h exists
when an attempt is made to compile gspa.c
I've no idea what bearing this has on the `make -j#' changes that have gone
in while I was tracking 1.1.

>How-To-Repeat:
	(cd /usr/src/usr.sbin/gspa/gspa ; make)

>Fix:
RCS file: /local/cvs/src/usr.sbin/gspa/gspa/Makefile,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 Makefile
*** Makefile    1995/12/12 11:19:03     1.1.1.2
--- Makefile    1995/12/14 15:29:45
***************
*** 3,10 ****
  PROG= gspa
  CFLAGS+=-I. -I${.CURDIR}
  HDRS= gsp_ass.h gsp_code.h
! SRCS= gspa.c gsp_out.c gsp_sym.c gsp_lex.c gsp_act.c gsp_eval.c \
!       gsp_inst.c gsp_pseu.c gsp_gram.c
  NOMAN=        noman
  CLEANFILES+=gsp_gram.c y.tab.h
  
--- 3,10 ----
  PROG= gspa
  CFLAGS+=-I. -I${.CURDIR}
  HDRS= gsp_ass.h gsp_code.h
! SRCS= gsp_gram.c gspa.c gsp_out.c gsp_sym.c gsp_lex.c gsp_act.c gsp_eval.c \
!       gsp_inst.c gsp_pseu.c
  NOMAN=        noman
  CLEANFILES+=gsp_gram.c y.tab.h
  

>Audit-Trail:
>Unformatted:
From: agc@uts.amdahl.com
Reply-To: agc@uts.amdahl.com