Thread: Re: Error-out on compiling current CVS: preproc

Re: Error-out on compiling current CVS: preproc

From
Josh Berkus
Date:
Folks,

Update on this:  Just tried it with:
SuSE 9.1, GCC 3.3.3, Bison 1.875
and don't get the error.

So it looks like the requirement for Bison 1.85+ is now a "hard" requirement?  
We'll need to document this, since SuSE 9.0 is less than a year old, and I'm 
sure some other distros are still using 1.75.

-- 
-Josh BerkusAglio Database SolutionsSan Francisco



Re: Error-out on compiling current CVS: preproc

From
Bruce Momjian
Date:
Josh Berkus wrote:
> Folks,
> 
> Update on this:  Just tried it with:
> SuSE 9.1, GCC 3.3.3, Bison 1.875
> and don't get the error.
> 
> So it looks like the requirement for Bison 1.85+ is now a "hard" requirement?  
> We'll need to document this, since SuSE 9.0 is less than a year old, and I'm 
> sure some other distros are still using 1.75.

I see in configure.in:
AC_CHECK_PROGS(YACC, ['bison -y'])if test "$YACC"; then  if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0;
elseexit 1;}'; then    AC_MSG_WARN([*** If you are going to modify the grammar files or build from CVS, the
installed***version of Bison is too old.  Bison version 1.875 or later is required.])  fifi
 

Looks documented to me.

--  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
 


Re: Error-out on compiling current CVS: preproc

From
Josh Berkus
Date:
Bruce,

>     *** If you are going to modify the grammar files or build from CVS, the
> installed *** version of Bison is too old.  Bison version 1.875 or later is
> required.]) fi
>     fi

Aha.  Yeah, blew past me too fast to read.  Hmmm ... does that mean that this 
error won't happen in the release version?

-- 
Josh Berkus
Aglio Database Solutions
San Francisco


Re: Error-out on compiling current CVS: preproc

From
Bruce Momjian
Date:
Josh Berkus wrote:
> Bruce,
> 
> >     *** If you are going to modify the grammar files or build from CVS, the
> > installed *** version of Bison is too old.  Bison version 1.875 or later is
> > required.]) fi
> >     fi
> 
> Aha.  Yeah, blew past me too fast to read.  Hmmm ... does that mean that this 
> error won't happen in the release version?

I think so. The only reason you need bison in the release version is if
you modify the grammar files.

--  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
 


Re: Error-out on compiling current CVS: preproc

From
Joe Conway
Date:
Josh Berkus wrote:
> 
> Aha.  Yeah, blew past me too fast to read.  Hmmm ... does that mean that this 
> error won't happen in the release version?
> 

You shoouldn't need bison at all with a release tarball -- the 
preprocessed grammar file is distributed with it.

Joe


Re: Error-out on compiling current CVS: preproc

From
Tom Lane
Date:
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I see in configure.in:
>     *** If you are going to modify the grammar files or build from CVS, the installed
>     *** version of Bison is too old.  Bison version 1.875 or later is required.])

> Looks documented to me.

Also, installation.sgml specifically says 1.875 or newer, and the 7.4
release notes already said 1.85 is required.  I don't know where else
we would document it?
        regards, tom lane