Re: ECPG CVS version problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Philip Yarra <philip(at)utiba(dot)com>, Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ECPG CVS version problems
Date: 2003-06-16 05:07:59
Message-ID: 200306160507.h5G57xu20800@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-patches


I wonder is we should check for *dev on the version string and make
missing bison version a hard error in these cases.

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

Tom Lane wrote:
> Philip Yarra <philip(at)utiba(dot)com> writes:
> > I just did a test build on a machine with bison 1.35, and there were no
> > complaints regarding its version
>
> You sure? I see in configure's output
>
> ...
> checking whether it is possible to strip libraries... yes
> checking for bison... bison -y
> configure: WARNING:
> *** The installed version of Bison is too old. PostgreSQL needs
> *** Bison version 1.875 or later.
> checking for perl... /usr/bin/perl
> checking for main in -lbsd... yes
> ...
>
> which admittedly is easy to miss, but it's there. (The reason it's not
> a hard error is that you don't actually need bison unless you don't have
> up-to-date copies of the derived files made by bison. This should not
> be the case when using a snapshot, only when building from a CVS pull.)
>
> > I assume that a way was found to make
> > older versions of bison work
>
> You assume wrong. Not all the .y files need recent bison, but the ones
> that do will fail badly. The issues are grammar-size limits for bison
> less than about 1.50, and outright bison bugs for versions from there to
> 1.875. We do not have workarounds.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-06-16 05:15:56 Re: security flaw
Previous Message Tom Lane 2003-06-16 04:35:04 Re: ECPG CVS version problems

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2003-06-16 05:18:24 Re: ECPG CVS version problems
Previous Message Tom Lane 2003-06-16 04:35:04 Re: ECPG CVS version problems

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-06-16 05:18:24 Re: ECPG CVS version problems
Previous Message Tom Lane 2003-06-16 04:35:04 Re: ECPG CVS version problems