make[1]: Entering directory `/var/tmp/portage/postgresql-7.3/work/postgresql-7.3/contrib/cube' sed 's,MODULE_PATHNAME,$libdir/cube,g' cube.sql.in >cube.sql i686-pc-linux-gnu-gcc -march=pentium3 -O3 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -c -o cube.o cube.c -MMD bison -y -d -p cube_yy cubeparse.y mv -f y.tab.c cubeparse.c mv -f y.tab.h cubeparse.h /usr/bin/flex -Pcube_yy -o'cubescan.c' cubescan.l i686-pc-linux-gnu-gcc -march=pentium3 -O3 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -c -o cubeparse.o cubeparse.c -MMD In file included from cubeparse.y:279: cubescan.c:892: parse error before "YY_PROTO" cubescan.c:892: parse error before "YY_PROTO" cubescan.c:905: parse error before "if"
postgresql-7.3 does build fine with flex-2.5.4a-r5 however. this might be similar to bug #11654
i have this same problem. also running flex-2.5.23. will wait until someone has a fix for the postgres build, or if flex revs up to fix the problem.
masked >=flex-2.5.23
still broken with flex-2.5.31 and gcc 2.95 maybe we should send this upstream ?