Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!elroy!jane!stevo From: stevo@jane.Jpl.Nasa.Gov (Steve Groom) Newsgroups: comp.sources.bugs Subject: Re: watcher (v11i082) missing y.tab.h Message-ID: <4759@elroy.Jpl.Nasa.Gov> Date: Mon, 2-Nov-87 15:25:51 EST Article-I.D.: elroy.4759 Posted: Mon Nov 2 15:25:51 1987 Date-Received: Fri, 6-Nov-87 03:22:35 EST References: <18476@teknowledge-vaxc.ARPA> Sender: news@elroy.Jpl.Nasa.Gov Reply-To: stevo@elroy.jpl.nasa.gov (Steve Groom) Organization: Image Analysis Systems Grp, JPL Lines: 27 Summary: no it isn't, yacc creates it In article <18476@teknowledge-vaxc.ARPA> mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) writes: >The watcher program has a defs.h file that #include's "y.tab.h", but >there is no y.tab.h in the distribution, and the MANIFEST file doesn't >mention it either. Make terminates (very early) with an error because >y.tab.h is missing. I had the same problem, but the workaround is very simple. y.tab.h is a file generated by yacc. This means that what really needs to happen is for yacc to be run before anything that #include's y.tab.h is compiled. One way to do this is to add y.tab.h to the list of things that watcher depends on, like this: watcher: y.tab.h $(OBJS) or something like that (I've forgotten exactly what the fix was). If all else fails, try running the yacc step manually, and then running make again. BTW, I reported this to watcher's author (Kenneth Ingham, ingham@charon.unm.edu) and he tells me that the makefile worked fine on his system as it was distributed. Make does things a little differently between systems sometimes, so that a deficient makefile might work fine on some systems and bomb on others. Note I said 'deficient' - I believe that the distributed makefile really should have included watcher's dependency on y.tab.h. /* Steve Groom, Jet Propulsion Laboratory, Pasadena, CA 91109 * ARPA: stevo@elroy.jpl.nasa.gov UUCP: ..!cit-vax!elroy!stevo * Disclaimer: (thick German accent) "I know noothingg! Noothingg!" */