Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-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

pgsql-hackers by date

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

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group