Thread: Port Bug Report: gmake all fails due to "buggy Flex"
============================================================================ POSTGRESQL BUG REPORT TEMPLATE ============================================================================ Your name : Gary Hoffman Your email address : ghoffman@ucsd.edu Category : install: compile Severity : critical Summary: gmake all fails due to "buggy Flex" System Configuration -------------------- Operating System : BSDi 3.0 PostgreSQL version : 6.0 Compiler used : gcc 2.7.2.1 Hardware: --------- Dell 486/50 with 32M BSD/OS saraband.ucsd.edu 3.0 BSDI BSD/OS 3.0 Kernel #0: Wed Apr 16 15:15:49 MDT 1997 polk@demiurge.BSDI.COM:/home/polk/sys-3.0patches/compile/GENERIC i386 Versions of other tools: ------------------------ Flex 2.5.4a GNU Make version 3.75 -------------------------------------------------------------------------- Problem Description: -------------------- Following instructions in Install Readme, I downloaded Flex 2.5.4a from mit.edu and compiled. Still, the make.log tells me: gmake lexverify gmake[1]: Entering directory `/usr2/src/pgsql/src' gmake -C lextest all gmake[2]: Entering directory `/usr2/src/pgsql/src/lextest' lex scan.l gcc2 -c lex.yy.c gcc2 -c lextest.c gcc2 -o lextest lex.yy.o lextest.o unexpected last match in input() gmake[2]: Leaving directory `/usr2/src/pgsql/src/lextest' You have a buggy version of flex. Read INSTALL and search for flex for a fix. gmake[1]: *** [lexverify] Error 1 gmake[1]: Leaving directory `/usr2/src/pgsql/src' gmake: *** [all] Error 2 -------------------------------------------------------------------------- Test Case: ---------- I followed step 14: 14. Compile the program. Type $ cd /usr/src/pgsql/src $ gmake all >& make.log & $ tail -f make.log -------------------------------------------------------------------------- Solution: --------- --------------------------------------------------------------------------
> > Versions of other tools: > ------------------------ > Flex 2.5.4a > GNU Make version 3.75 > > > -------------------------------------------------------------------------- > > Problem Description: > -------------------- > Following instructions in Install Readme, I downloaded Flex 2.5.4a from mit.edu and compiled. Still, the make.log tellsme: > gmake lexverify > gmake[1]: Entering directory `/usr2/src/pgsql/src' > gmake -C lextest all > gmake[2]: Entering directory `/usr2/src/pgsql/src/lextest' > lex scan.l > gcc2 -c lex.yy.c > gcc2 -c lextest.c > gcc2 -o lextest lex.yy.o lextest.o > unexpected last match in input() > gmake[2]: Leaving directory `/usr2/src/pgsql/src/lextest' > > You have a buggy version of flex. Read INSTALL and search for flex for a fix. > > gmake[1]: *** [lexverify] Error 1 > gmake[1]: Leaving directory `/usr2/src/pgsql/src' > gmake: *** [all] Error 2 > > -------------------------------------------------------------------------- lex/flex in bsdi 3.0 is buggy. I my guess is that it is still finding the old lex/flex and using that. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026