On Thursday 18 March 2004 04:30 pm, Tom Lane wrote:
> Jonathan Gardner <jgardner@jonathangardner.net> writes:
> > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> > -Wmissing-declarations -I. -I../../../src/include -D_GNU_SOURCE -c -o
> > bootparse.o bootparse.c
> > bootparse.y:26:26: access/strat.h: No such file or directory
> > In file included from bootparse.y:340:
> > bootscanner.l:24:26: access/strat.h: No such file or directory
> > make[3]: *** [bootparse.o] Error 1
> >
> > Am I missing something?
>
> access/strat.h has been gone for months. Perhaps you have a clock-skew
> problem that is preventing bootparse.c from being rebuilt from
> bootparse.y? Check the file dates.
>
Yes, that was it. It wasn't updating bootparse.c because bootstrap_tokens.h
was new enough.
Here's the relevant sections from the Makefile. I doesn't look quite right,
but I can't really suggest a way to fix it.
$(srcdir)/bootparse.c: $(srcdir)/bootstrap_tokens.h ;
$(srcdir)/bootstrap_tokens.h: bootparse.y Makefile
ifdef YACC $(YACC) -d $(YFLAGS) $< $(sed-magic) < y.tab.c > $(srcdir)/bootparse.c $(sed-magic) < y.tab.h >
$(srcdir)/bootstrap_tokens.h rm -f y.tab.c y.tab.h
else @$(missing) bison $< $@
endif
--
Jonathan Gardner
jgardner@jonathangardner.net