On Mon, Apr 03, 2006 at 09:25:54AM +0200, Jan-Benedict Glaw wrote: > On Sun, 2006-04-02 21:10:56 -0700, Keith Packard <keithp@xxxxxxxxxx> wrote: > > I think this is a bug in your version of flex; I'm using standard lex > > conventions here. I don't know how to make it work for you. > > It compiles for me with this patch (thanks to Linus for the hint): > > diff --git a/Makefile b/Makefile [...] > Would you please verify that it doesn't break things for you? Almost there. I applied your patch and ran "make clean", but the Makefile forgets to remove lex.c. Here's an updated patch: diff --git a/Makefile b/Makefile index 639353a..5651e70 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ GCC_WARNINGS2=-Wmissing-prototypes -Wmis GCC_WARNINGS3=-Wnested-externs -fno-strict-aliasing GCC_WARNINGS=$(GCC_WARNINGS1) $(GCC_WARNINGS2) $(GCC_WARNINGS3) CFLAGS=-O0 -g $(GCC_WARNINGS) -YFLAGS=-d +YFLAGS=-d -l +LFLAGS=-l SRCS=gram.y lex.l cvs.h parsecvs.c cvsutil.c revlist.c atom.c revcvs.c git.c @@ -20,4 +21,4 @@ lex.o: lex.c y.tab.h: gram.c clean: - rm -f $(OBJS) y.tab.h gram.c parsecvs + rm -f $(OBJS) y.tab.h gram.c lex.c parsecvs It compiles! Ship it! ;-) Erik -- +-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html