Re: pgsql: Enable script to generate preproc.y in build process.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: badalex(at)gmail(dot)com
Cc: "Michael Meskes" <meskes(at)postgresql(dot)org>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Enable script to generate preproc.y in build process.
Date: 2008-11-15 22:23:47
Message-ID: 7628.1226787827@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

"Alex Hunsaker" <badalex(at)gmail(dot)com> writes:
> "/usr/bin/perl" ./parse.pl . < ../../../../src/backend/parser/gram.y >
> preproc.y
> bison -d -o preproc.c preproc.y
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -g -DECPG_COMPILE -I../include
> -I../../../../src/interfaces/ecpg/include -I. -DMAJOR_VERSION=4
> -DMINOR_VERSION=5 -DPATCHLEVEL=0 -I../../../../src/include
> -D_GNU_SOURCE -c -o preproc.o preproc.c
> preproc.y: In function 'base_yyparse':
> preproc.y:11201: error: expected ';' before '}' token
> make[4]: *** [preproc.o] Error 1

Huh ... what gcc and bison versions are you using? The code is
certainly wrong but I wonder why nobody else saw this error.

> The fix to preproc.y is below, but I don't immediately see how to fix parse.pl

That's cause the problem is in ecpg.trailer. I see Andrew got it
already.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alex Hunsaker 2008-11-15 22:26:44 Re: pgsql: Enable script to generate preproc.y in build process.
Previous Message Tom Lane 2008-11-15 22:20:55 pgsql: Add missing dependencies to preproc.y build rule

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex Hunsaker 2008-11-15 22:26:44 Re: pgsql: Enable script to generate preproc.y in build process.
Previous Message Alex Hunsaker 2008-11-15 22:20:39 Re: patch: Client certificate requirements