Hans Aberg | 26 Apr 20:55
Picon
Picon

Installing Bison from CVS

When installing Bison from the CVS by:
cvs -d:pserver:anonymous <at> cvs.sv.gnu.org:/cvsroot/gnulib co gnulib
cvs -d:pserver:anonymous <at> cvs.sv.gnu.org:/cvsroot/bison co bison
cd bison
./bootstrap --gnulib-srcdir=../gnulib

I get the following error:
./bootstrap: autoconf --force ...
configure.ac:111: warning: AM_INTL_SUBDIR is m4_require'd but not  
m4_defun'd
m4/gettext.m4:362: AM_GNU_GETTEXT is expanded from...
configure.ac:111: the top level
configure:15873: error: possibly undefined macro: AM_INTL_SUBDIR
       If this token and others are legitimate, please use  
m4_pattern_allow.
       See the Autoconf documentation.

What is causing it?

Which is the "official" method to get Bison from the CVS? On
   http://savannah.gnu.org/cvs/?group=bison
it is suggested
   cvs -z3 -d:pserver:anonymous <at> cvs.savannah.gnu.org:/sources/bison  
co bison
followed, I gather, by
   cd bison
   ./bootstrap
Is this right?

   Hans Aberg
(Continue reading)

Joel E. Denny | 28 Apr 03:43

Re: Installing Bison from CVS

On Thu, 26 Apr 2007, Hans Aberg wrote:

> I get the following error:
> ./bootstrap: autoconf --force ...
> configure.ac:111: warning: AM_INTL_SUBDIR is m4_require'd but not m4_defun'd
> m4/gettext.m4:362: AM_GNU_GETTEXT is expanded from...
> configure.ac:111: the top level
> configure:15873: error: possibly undefined macro: AM_INTL_SUBDIR
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.

The last couple of times this came up, it was due to an old M4.  For 
example, Autoconf 2.61 requires at least M4 1.4.7.

> Which is the "official" method to get Bison from the CVS? On
>   http://savannah.gnu.org/cvs/?group=bison
> it is suggested
>   cvs -z3 -d:pserver:anonymous <at> cvs.savannah.gnu.org:/sources/bison co bison
> followed, I gather, by
>   cd bison
>   ./bootstrap
> Is this right?

That's what I do.

Hans Aberg | 28 Apr 13:34
Picon
Picon

Re: Installing Bison from CVS

On 28 Apr 2007, at 03:43, Joel E. Denny wrote:

>> I get the following error:
>> ./bootstrap: autoconf --force ...
>> configure.ac:111: warning: AM_INTL_SUBDIR is m4_require'd but not  
>> m4_defun'd
>> m4/gettext.m4:362: AM_GNU_GETTEXT is expanded from...
>> configure.ac:111: the top level
>> configure:15873: error: possibly undefined macro: AM_INTL_SUBDIR
>>       If this token and others are legitimate, please use  
>> m4_pattern_allow.
>>       See the Autoconf documentation.
>
> The last couple of times this came up, it was due to an old M4.  For
> example, Autoconf 2.61 requires at least M4 1.4.7.

I updates M4 from 1.4.7 to 1.4.9, and the problem persisted. I use  
Autoconf 2.61. (I also updated to Automake 1.9.6.) I checked versions  
(using --version) from the console I ran ./bootstrap (as root).

>> Which is the "official" method to get Bison from the CVS? On
>>   http://savannah.gnu.org/cvs/?group=bison
>> it is suggested
>>   cvs -z3 -d:pserver:anonymous <at> cvs.savannah.gnu.org:/sources/bison  
>> co bison
>> followed, I gather, by
>>   cd bison
>>   ./bootstrap
>> Is this right?
>
(Continue reading)

Joel E. Denny | 28 Apr 17:33

Re: Installing Bison from CVS

On Sat, 28 Apr 2007, Hans Aberg wrote:

> > The last couple of times this came up, it was due to an old M4.  For
> > example, Autoconf 2.61 requires at least M4 1.4.7.
> 
> I updates M4 from 1.4.7 to 1.4.9, and the problem persisted. I use Autoconf
> 2.61. (I also updated to Automake 1.9.6.) I checked versions (using --version)
> from the console I ran ./bootstrap (as root).

To find out which version of M4 Autoconf is using:

  `echo 'm4_divert(0)__program__' |  autom4te --language=m4sugar` --version

If it's using an old version, reinstall Autoconf.

Hans Aberg | 28 Apr 19:27
Picon
Picon

Re: Installing Bison from CVS

On 28 Apr 2007, at 17:33, Joel E. Denny wrote:

>> I updates M4 from 1.4.7 to 1.4.9, and the problem persisted. I use  
>> Autoconf
>> 2.61. (I also updated to Automake 1.9.6.) I checked versions  
>> (using --version)
>> from the console I ran ./bootstrap (as root).
>
> To find out which version of M4 Autoconf is using:
>
>   `echo 'm4_divert(0)__program__' |  autom4te --language=m4sugar` -- 
> version

How should it be entered? Directly at the console gives:
bash: __program__: command not found

   Hans Aberg

Joel E. Denny | 28 Apr 19:33

Re: Installing Bison from CVS

On Sat, 28 Apr 2007, Hans Aberg wrote:

> On 28 Apr 2007, at 17:33, Joel E. Denny wrote:
> 
> > > I updates M4 from 1.4.7 to 1.4.9, and the problem persisted. I use
> > > Autoconf
> > > 2.61. (I also updated to Automake 1.9.6.) I checked versions (using
> > > --version)
> > > from the console I ran ./bootstrap (as root).
> > 
> > To find out which version of M4 Autoconf is using:
> > 
> >   `echo 'm4_divert(0)__program__' |  autom4te --language=m4sugar` --version
> 
> How should it be entered?

At a bash prompt.

> Directly at the console gives:
> bash: __program__: command not found

Not for me.

Hans Aberg | 28 Apr 19:35
Picon
Picon

Re: Installing Bison from CVS

I also got the following error in one of the translations module:

root# ./bootstrap
./bootstrap: Bootstrapping from checked-out bison sources...
./bootstrap: getting translations into po for bison...
19:32:50 URL:http://www.iro.umontreal.ca/translation/registry.cgi? 
domain=bison [64828] -> "po/bison.html" [1]
...
19:33:40 URL:http://www.iro.umontreal.ca/translation/teams/PO//id/ 
bison-2.3a.id.po [20514/20514] -> "po/id.po" [1]
po/id.po:9: nplurals = 1...
po/id.po:74: ...but some messages have 2 plural forms
msgfmt: found 1 fatal error
./bootstrap: omitting translation for id
...

   Hans Aberg

Joel E. Denny | 28 Apr 19:39

Re: Installing Bison from CVS

On Sat, 28 Apr 2007, Joel E. Denny wrote:

> > > To find out which version of M4 Autoconf is using:
> > > 
> > >   `echo 'm4_divert(0)__program__' |  autom4te --language=m4sugar` --version
> > 
> > How should it be entered?
> 
> At a bash prompt.
> 
> > Directly at the console gives:
> > bash: __program__: command not found
> 
> Not for me.

I remember now.  Older versions of M4 will cause that because they don't 
recognize __program__.  You need to reinstall Autoconf to use the right 
version of M4.

Hans Aberg | 28 Apr 19:53
Picon
Picon

Re: Installing Bison from CVS

On 28 Apr 2007, at 19:33, Joel E. Denny wrote:

>>> To find out which version of M4 Autoconf is using:
>>>
>>>   `echo 'm4_divert(0)__program__' |  autom4te --language=m4sugar`  
>>> --version
>>
>> How should it be entered?
>
> At a bash prompt.
>
>> Directly at the console gives:
>> bash: __program__: command not found
>
> Not for me.

I get:
root# `echo 'm4_divert(0)__program__' |  autom4te --language=m4sugar`  
--version
bash: __program__: command not found

So something might be wrong here.

> If it's using an old version, reinstall Autoconf.

I did that, and it did not help.

   Hans Aberg

(Continue reading)

Joel E. Denny | 28 Apr 19:58

Re: Installing Bison from CVS

On Sat, 28 Apr 2007, Hans Aberg wrote:

> > If it's using an old version, reinstall Autoconf.
> 
> I did that, and it did not help.

It worked for me and at least two others, so I recommend you keep trying 
this.  If you're still getting the same error from the command I sent you, 
then Autoconf is surely running an old version of M4.  You need to find a 
way to configure Autoconf to use the right version.


Gmane