Re: backend/parser compile prob - Mailing list pgsql-hackers

From Patrick Welche
Subject Re: backend/parser compile prob
Date
Msg-id 20030715171741.K13460@quartz.newn.cam.ac.uk
Whole thread Raw
In response to Re: backend/parser compile prob  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: backend/parser compile prob
List pgsql-hackers
On Tue, Jul 15, 2003 at 11:21:51AM -0400, Tom Lane wrote:
> Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> > I'm getting far too many errors while trying to compile gram.c in the
> > backend/parser, that I must be missing something.
> 
> I think you need to force gram.c to be regenerated.  Try removing it
> (and parse.h too) before building.
> 
> > % cvs diff src/backend/parser/gram.c
> 
> gram.c is not in CVS.  I'm surprised you didn't get an error from that.
> (I get "cvs server: I know nothing about gram.c".)

Ah: Attic:

% cvs status gram.c
===================================================================
File: gram.c            Status: Up-to-date
  Working revision:    2.90  Repository revision: 2.90
/projects/cvsroot/pgsql-server/src/backend/parser/Attic/gram.c,v Sticky Tag:          (none)  Sticky Date:
(none) Sticky Options:      (none)
 

hmm...

rm gram.c parse.h scan.c

gmake[3]: Leaving directory `/usr/src/local/pgsql/src/port'
gmake -C parser parse.h
gmake[3]: Entering directory `/usr/src/local/pgsql/src/backend/parser'
bison -y -d  gram.y
mv -f y.tab.c ./gram.c
mv -f y.tab.h ./parse.h
gmake[3]: Leaving directory `/usr/src/local/pgsql/src/backend/parser'
prereqdir=`cd parser/ >/dev/null && pwd` && \ cd ../../src/include/parser/ && rm -f parse.h && \ ln -s
"$prereqdir/parse.h".
 
gmake -C access all
gmake[3]: Entering directory `/usr/src/local/pgsql/src/backend/access'
...
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/usr/src/local/pgsql/src/backend/catalog'
gmake -C parser all
gmake[3]: Entering directory `/usr/src/local/pgsql/src/backend/parser'
/usr/bin/flex -CF -o'scan.c' scan.l
gcc -O2 -pipe -g -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I../../../src/include   -c -o gram.o gram.c
In file included from gram.y:7990:
scan.c:121: parse error before string constant
scan.c:247: parse error before string constant
scan.c:250: parse error before string constant
scan.c:251: parse error before string constant
...

What string constant?! Will try again later...

Cheers,

Patrick


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: backend/parser compile prob
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] problems with pg_restore