Re: ecpg grammar in CVS is annoying

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ecpg grammar in CVS is annoying
Date: 2009-01-30 19:12:51
Message-ID: 20090130191250.GA14733@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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"

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2009-01-30 19:19:52 Re: ecpg grammar in CVS is annoying
Previous Message Alvaro Herrera 2009-01-30 19:06:35 ecpg grammar in CVS is annoying