Re: 7.3b5 contrib compile problem - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: 7.3b5 contrib compile problem
Date
Msg-id 200211070204.gA7247k01011@candle.pha.pa.us
Whole thread Raw
In response to Re: 7.3b5 contrib compile problem  (Laurette Cisneros <laurette@nextbus.com>)
Responses Re: 7.3b5 contrib compile problem
List pgsql-hackers
I think bison 1.75 will fix it.  I am just not sure why earlier releases
fail that way.

---------------------------------------------------------------------------

Laurette Cisneros wrote:
> bison --version
> GNU Bison version 1.28
> 
> Should I update it?
> 
> This just started with 7.3b4.
> 
> Thanks,
> 
> L.
> On Wed, 6 Nov 2002, Bruce Momjian wrote:
> 
> > 
> > Wow, that is strange.  I have bison 1.75 here and it compiles fine. 
> > What version of bison do you have?
> > 
> >     bison --version
> > 
> > ---------------------------------------------------------------------------
> > 
> > Laurette Cisneros wrote:
> > > 
> > > I saw this when compiling 7.3b4 as well and also with 7.3b5
> > > 
> > > cd contrib
> > > make
> > > ...
> > > make[1]: Leaving directory
> > > `/nfs/visor/u/software/postgres/postgresql-7.3b5/contrib/rtree_gist'
> > > make[1]: Entering directory
> > > `/nfs/visor/u/software/postgres/postgresql-7.3b5/contrib/seg'
> > > sed 's,MODULE_PATHNAME,$libdir/seg,g' seg.sql.in >seg.sql
> > > gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I.
> > > -I../../src/include -I/usr/local/include  -c -o seg.o seg.c
> > > bison -y -d  -p seg_yy segparse.y
> > > mv -f y.tab.c segparse.c
> > > mv -f y.tab.h segparse.h
> > > /usr/bin/flex  -Pseg_yy -o'segscan.c' segscan.l
> > > gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I.
> > > -I../../src/include -I/usr/local/include  -c -o segparse.o segparse.c
> > > In file included from segscan.l:8,
> > >                  from segparse.y:182:
> > > segparse.h:2: redefinition of `struct BND'
> > > segparse.h:8: conflicting types for `YYSTYPE'
> > > segparse.y:48: previous declaration of `YYSTYPE'
> > > segparse.h:15: conflicting types for `seg_yylval'
> > > /usr/lib/bison.simple:138: previous declaration of `seg_yylval'
> > > make[1]: *** [segparse.o] Error 1
> > > make[1]: Leaving directory `/nfs/visor/u/software/postgres/postgresql-7.3b5/contrib/seg'
> > > make: *** [all] Error 2     
> > > 
> > > Any ideas?
> > > 
> > > Thanks,
> > > 
> > > -- 
> > > Laurette Cisneros
> > > The Database Group
> > > (510) 420-3137
> > > NextBus Information Systems, Inc.
> > > www.nextbus.com
> > > ----------------------------------
> > > My other vehicle is my imagination.
> > >  - bumper sticker
> > > 
> > > 
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> > > 
> > 
> > 
> 
> -- 
> Laurette Cisneros
> The Database Group
> (510) 420-3137
> NextBus Information Systems, Inc.
> www.nextbus.com
> ----------------------------------
> My other vehicle is my imagination.
>  - bumper sticker
> 
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Laurette Cisneros
Date:
Subject: Re: 7.3b5 contrib compile problem
Next
From: Bruce Momjian
Date:
Subject: Re: 7.3b5 contrib compile problem