Re: pgsql: Enable script to generate preproc.y in build process. - Mailing list pgsql-committers

From Andrew Dunstan
Subject Re: pgsql: Enable script to generate preproc.y in build process.
Date
Msg-id 491F4ABE.2090004@dunslane.net
Whole thread Raw
In response to Re: pgsql: Enable script to generate preproc.y in build process.  ("Alex Hunsaker" <badalex@gmail.com>)
List pgsql-committers
Fixed.

cheers

andrew


Alex Hunsaker wrote:
> On Fri, Nov 14, 2008 at 10:11, Michael Meskes <meskes@postgresql.org> wrote:
>
>> Log Message:
>> -----------
>> Enable script to generate preproc.y in build process.
>>
>> Modified Files:
>> --------------
>>    pgsql/src/interfaces/ecpg/preproc:
>>        .cvsignore (r1.1 -> r1.2)
>>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/.cvsignore?r1=1.1&r2=1.2)
>>        Makefile (r1.137 -> r1.138)
>>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/Makefile?r1=1.137&r2=1.138)
>>    pgsql/src/tools/msvc:
>>        Solution.pm (r1.44 -> r1.45)
>>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/tools/msvc/Solution.pm?r1=1.44&r2=1.45)
>>
>> --
>>
>
> Hrm this seems to break for me.
>
> "/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
>
> The fix to preproc.y is below, but I don't immediately see how to fix parse.pl
>
> *** src/interfaces/ecpg/preproc/preproc.y.orig    2008-11-15
> 14:43:24.000000000 -0700
> --- src/interfaces/ecpg/preproc/preproc.y    2008-11-15 14:43:29.000000000 -0700
> ***************
> *** 11198,11204 ****
>   ecpg_xconst:    XCONST        { $$ = make_name(); } ;
>
>   ecpg_ident:    IDENT        { $$ = make_name(); }
> !         | CSTRING    { $$ = make3_str(make_str("\""), $1, make_str("\"")) }
>           | UIDENT    { $$ = $1; }
>           ;
>
> --- 11198,11204 ----
>   ecpg_xconst:    XCONST        { $$ = make_name(); } ;
>
>   ecpg_ident:    IDENT        { $$ = make_name(); }
> !         | CSTRING    { $$ = make3_str(make_str("\""), $1, make_str("\"")); }
>           | UIDENT    { $$ = $1; }
>           ;
>
>
>
>> Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-committers
>>
>>
>
>

pgsql-committers by date:

Previous
From: adunstan@postgresql.org (Andrew Dunstan)
Date:
Subject: pgsql: Add missing semicolon, per grip from Alex Hunsaker.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add missing dependencies to preproc.y build rule