Alvaro Herrera wrote: > Hi, > > Is it only me, or having the generated ecpg grammar is a bit obnoxious? > I am getting troubled because whenever I touch gram.y it gets updated > when I run make, and then it shows in "cvs diff".
Hmm, and then weird things happen anyway; I just built it and it errors out with: gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -pthread -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -DECPG_COMPILE -I../include -I/pgsql/source/00orig/src/interfaces/ecpg/include -I/pgsql/source/00orig/src/interfaces/ecpg/preproc -DMAJOR_VERSION=4 -DMINOR_VERSION=5 -DPATCHLEVEL=0 -I../../../../src/include -I/pgsql/source/00orig/src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o preproc.o /pgsql/source/00orig/src/interfaces/ecpg/preproc/preproc.c -MMD -MP -MF .deps/preproc.Po In file included from /pgsql/source/00orig/src/interfaces/ecpg/preproc/preproc.y:7128: /pgsql/source/00orig/src/interfaces/ecpg/preproc/pgc.l: In function ‘base_yylex’: /pgsql/source/00orig/src/interfaces/ecpg/preproc/pgc.l:484: error: ‘UCONST’ undeclared (first use in this function) /pgsql/source/00orig/src/interfaces/ecpg/preproc/pgc.l:484: error: (Each undeclared identifier is reported only once /pgsql/source/00orig/src/interfaces/ecpg/preproc/pgc.l:484: error: for each function it appears in.) /pgsql/source/00orig/src/interfaces/ecpg/preproc/pgc.l:573: error: ‘UIDENT’ undeclared (first use in this function) make[1]: *** [preproc.o] Error 1 make[1]: se sale del directorio `/home/alvherre/Code/CVS/pgsql/build/00orig/src/interfaces/ecpg/preproc' make: *** [all] Error 2 This is on a clean checkout, so I'm not sure what's going on ... -- Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4" "Para tener más hay que desear menos" -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers