Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)

View: New views
8 Messages — Rating Filter:   Alert me  

Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)

by Dr. Dov Bulka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I downloaded GRUB2 from the gnu ftp site. cd to the source directory and
ran "./autogen.sh"   I got the error message below:

configure.ac:147 error: possibly undefined macro: AC_PROG_MKDIR_P
     If this token and others are legitimate, please use m4_pattern_allow
     See the Autoconf documentation

Am I running an obsolete autoconf? (version 2.59 should be okay according to
the documentation in file INSTALL)

I'm running on a Linux RedHat virtual machine over VMWare ESX server.
uname -m = x86_64
uname -r = 2.6.18-8.el5
uname -s = Linux

The following list are versions of relevant tools:

GCC 4.2.0
GNU Make 3.81
GNU Bison 2.3
GNU Binutils 2.20
Ruby 1.9.1
GNU Autoconf 2.59


Thanks in advance,
Dov


_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)

by Felix Zielcke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Dienstag, den 03.11.2009, 19:27 -0800 schrieb Dr. Dov Bulka:

> I downloaded GRUB2 from the gnu ftp site. cd to the source directory
> and
> ran "./autogen.sh"   I got the error message below:
>
> configure.ac:147 error: possibly undefined macro: AC_PROG_MKDIR_P
>      If this token and others are legitimate, please use
> m4_pattern_allow
>      See the Autoconf documentation
>
> Am I running an obsolete autoconf? (version 2.59 should be okay
> according to
> the documentation in file INSTALL)
>
> [...]
> GNU Autoconf 2.59
>
>
> Thanks in advance,
> Dov

autoconf's NEWS says it was added with 2.59d
I change that now in our NEWS and configure.ac
But with the release tarballs you shouldn't need to run it.
Seems like I need to make that clear in INSTALL.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)

by Dr. Dov Bulka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay. So I started from scratch again, this time skipping the autogen.sh:

  • untar the tarball
  • cd to the source dir
  • ./configure
  • ./make
  • ./make install

Everything seemed to be okay, no error message. Then I tried to verify that the new grub is installed in the right places. I am getting some unexpected reults. I expected to be able to invoke the new grub but I'm still getting the old version. Here's what I did starting with the "make install":

[root@mason grub-1.97]# make install
/bin/sh ./mkinstalldirs /usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`
rm -f /usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`/*
/bin/sh ./mkinstalldirs /usr/local/share/`echo grub | sed 's,x,x,'`
/bin/sh ./mkinstalldirs /usr/local/bin /usr/local/share/man/man1
/bin/sh ./mkinstalldirs /usr/local/sbin /usr/local/share/man/man8
/bin/sh ./mkinstalldirs /usr/local/etc/grub.d
/bin/sh ./mkinstalldirs /usr/local/lib/grub
/bin/sh ./mkinstalldirs /usr/local/share/info
[root@mason grub-1.97]# which grub
/usr/local/sbin/grub
[root@mason grub-1.97]# ls -al /usr/local/sbin/grub
-rwxr-xr-x 1 root root 397555 Oct  6 16:29 /usr/local/sbin/grub
[root@mason grub-1.97]# grub --version
grub (GNU GRUB 0.97)
[root@mason grub-1.97]#

Today is Nov 4th so it looks like the new grub was not copied to "/usr/local/sbin". The grub versionis pointing to 0.97 as opposed to 1.97.

Also, when I execute "info grub", it states that this is the documentation for version 0.97.

The Wiki manual says: "The make install made the utilities go to their final places on the host."  Am I looking at the wrong files?

TIA,
Dov





--- On Wed, 11/4/09, Felix Zielcke <fzielcke@...> wrote:

From: Felix Zielcke <fzielcke@...>
Subject: Re: Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)
To: "Dr. Dov Bulka" <dbulka@...>
Cc: bug-grub@...
Date: Wednesday, November 4, 2009, 2:57 AM

Am Dienstag, den 03.11.2009, 19:27 -0800 schrieb Dr. Dov Bulka:

> I downloaded GRUB2 from the gnu ftp site. cd to the source directory
> and
> ran "./autogen.sh"   I got the error message below:
>
> configure.ac:147 error: possibly undefined macro: AC_PROG_MKDIR_P
>      If this token and others are legitimate, please use
> m4_pattern_allow
>      See the Autoconf documentation
>
> Am I running an obsolete autoconf? (version 2.59 should be okay
> according to
> the documentation in file INSTALL)
>
> [...]
> GNU Autoconf 2.59
>
>
> Thanks in advance,
> Dov

autoconf's NEWS says it was added with 2.59d
I change that now in our NEWS and configure.ac
But with the release tarballs you shouldn't need to run it.
Seems like I need to make that clear in INSTALL.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer


_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)

by Felix Zielcke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, den 04.11.2009, 08:42 -0800 schrieb Dr. Dov Bulka:
> [root@mason grub-1.97]# grub --version
> grub (GNU GRUB 0.97)
> [root@mason grub-1.97]#
>
> Today is Nov 4th so it looks like the new grub was not copied to
> "/usr/local/sbin". The grub versionis pointing to 0.97 as opposed to
> 1.97.

There is no more this grub binary with grub2.
You have to use grub-install now to install it, which even with GRUB
Legacy was the prefered way.
And you can use optionally use grub-mkconfig to generate a grub.cfg for
you.

> Also, when I execute "info grub", it states that this is the
> documentation for version 0.97.

The info docs are still mostly just copied from GRUB Legacy.
Anyway do you have makeinfo installed?
In Debian it's in the texinfo package.
Without it you won't get the info docs.

> The Wiki manual says: "The make install made the utilities go to their
> final places on the host."  Am I looking at the wrong files?

No, we only use (currently) $prefix/bin and $prefix/sbin for the tools.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: error while generating info doc

by Dr. Dov Bulka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay. Looks like I did not get any manual docs because "makeinfo" failed.

I have GNU makeinfo installed version 4.8. The OS is Linux RedHat 2.6.18-8.el5.


I "cd" to the docs directory and issue "makeinfo grub.texi". I'm getting a bunch of errors (see below). What do I need to do to correct the errors?

[root@mason docs]# makeinfo grub.texi
/usr/grub-1.97/docs//grub.texi:1552: Prev reference to nonexistent node `Internals' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1540: Next reference to nonexistent node `Internals' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1433: Prev reference to nonexistent node `Invoking grub-terminfo' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1392: Next reference to nonexistent node `Invoking grub-terminfo' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1392: Prev reference to nonexistent node `Invoking the grub shell' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:989: Next reference to nonexistent node `Troubleshooting' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:964: `Menu entry editor' has no Up field (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:751: Prev reference to nonexistent node `Images' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:700: Next reference to nonexistent node `Preset Menu' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:700: Prev reference to nonexistent node `Network' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:630: Next reference to nonexistent node `Chain-loading' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:599: Next reference to nonexistent node `Configuration' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:541: `Making a GRUB bootable CD-ROM' has no Up field (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1396: Cross reference to nonexistent node `Invoking the grub shell' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1322: Cross reference to nonexistent node `testload' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1197: Cross reference to nonexistent node `SCO UnixWare' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1099: Cross reference to nonexistent node `Invoking grub-terminfo' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1083: Cross reference to nonexistent node `terminal' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:1080: Cross reference to nonexistent node `Invoking the grub shell' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:959: Cross reference to nonexistent node `Security' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:827: Cross reference to nonexistent node `root' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:809: Cross reference to nonexistent node `Network' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:759: Cross reference to nonexistent node `find' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:736: Cross reference to nonexistent node `terminal' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:697: Cross reference to nonexistent node `uppermem' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:647: Cross reference to nonexistent node `DOS/Windows' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:637: Cross reference to nonexistent node `Chain-loading' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:626: Menu reference to nonexistent node `Chain-loading' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:577: Cross reference to nonexistent node `Configuration' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:535: Cross reference to nonexistent node `Invoking the grub shell' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:529: Cross reference to nonexistent node `Device map' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:468: Cross reference to nonexistent node `Device map' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:228: Cross reference to nonexistent node `Configuration' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:143: Cross reference to nonexistent node `Configuration' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:95: Menu reference to nonexistent node `Internals' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:91: Menu reference to nonexistent node `Invoking grub-terminfo' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:89: Menu reference to nonexistent node `Invoking the grub shell' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:88: Menu reference to nonexistent node `Troubleshooting' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:84: Menu reference to nonexistent node `Images' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:83: Menu reference to nonexistent node `Preset Menu' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:81: Menu reference to nonexistent node `Network' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:80: Menu reference to nonexistent node `Configuration' (perhaps incorrect sectioning?).
/usr/grub-1.97/docs//grub.texi:964: warning: unreferenced node `Menu entry editor'.
makeinfo: Removing output file `/usr/grub-1.97/docs/grub.info' due to errors; use --force to preserve.
[root@mason docs]#





--- On Wed, 11/4/09, Felix Zielcke <fzielcke@...> wrote:

From: Felix Zielcke <fzielcke@...>
Subject: Re: Building GRUB2: autogen.sh error msg (AC_PROG_MKDIR_P)
To: "Dr. Dov Bulka" <dbulka@...>
Cc: bug-grub@...
Date: Wednesday, November 4, 2009, 11:54 AM

Am Mittwoch, den 04.11.2009, 08:42 -0800 schrieb Dr. Dov Bulka:
> [root@mason grub-1.97]# grub --version
> grub (GNU GRUB 0.97)
> [root@mason grub-1.97]#
>
> Today is Nov 4th so it looks like the new grub was not copied to
> "/usr/local/sbin". The grub versionis pointing to 0.97 as opposed to
> 1.97.

There is no more this grub binary with grub2.
You have to use grub-install now to install it, which even with GRUB
Legacy was the prefered way.
And you can use optionally use grub-mkconfig to generate a grub.cfg for
you.

> Also, when I execute "info grub", it states that this is the
> documentation for version 0.97.

The info docs are still mostly just copied from GRUB Legacy.
Anyway do you have makeinfo installed?
In Debian it's in the texinfo package.
Without it you won't get the info docs.

> The Wiki manual says: "The make install made the utilities go to their
> final places on the host."  Am I looking at the wrong files?

No, we only use (currently) $prefix/bin and $prefix/sbin for the tools.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer


_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: error while generating info doc

by Felix Zielcke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, den 04.11.2009, 09:22 -0800 schrieb Dr. Dov Bulka:

>
> Okay. Looks like I did not get any manual docs because "makeinfo"
> failed.
>
> I have GNU makeinfo installed version 4.8. The OS is Linux RedHat
> 2.6.18-8.el5.
>
>
> I "cd" to the docs directory and issue "makeinfo grub.texi". I'm
> getting a bunch of errors (see below). What do I need to do to correct
> the errors?
>
> [root@mason docs]# makeinfo grub.texi
[...]
> makeinfo: Removing output file `/usr/grub-1.97/docs/grub.info' due to
> errors; use --force to preserve.
> [root@mason docs]#
>
The Makefile uses makeinfo --no-split --force.
With my makeinfo 4.13 the output is similar.

Well if you really want to fix it feel free to do send a patch but then
you need to lern Texinfo.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: error while generating info doc

by Dr. Dov Bulka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there another place where I can find information on how to use Grub2? I'm familiar with Grub Legacy but things have changed in a significant way.
What I'm really after is using Grub2 to boot from a floppy. In Grub Legacy I used the following recipe:

% fdformat /dev/fd0
% mkfs -t msdos /dev/fd0
% mkdir -p /floppy
% mount -t msdos /dev/fd0 /floppy
% mkdir -p /floppy/boot/grub

% cp /usr/local/lib/grub/i386-pc/stage* /floppy/boot/grub

% grub

grub> root (fd0)
grub> setup (fd0)
grub> quit



How do I adapt this procedure to work on Grub2? I did not find a "stage1" nor "stage2" files in /usr/local/lib/grub/i386-pc/ and, from what I read, the "root" command has been replaced, so the sequence of steps above must be modified, but how?

Thanks!

Dov





Dov Bulka, Ph.D.
Broker-In-Charge
Dove Real Estate Corporation
$$$ Save Thousands $$$ List Your House for 3.9%
http://www.DoveRealEstate.biz

--- On Wed, 11/4/09, Felix Zielcke <fzielcke@...> wrote:

From: Felix Zielcke <fzielcke@...>
Subject: Re: Building GRUB2: error while generating info doc
To: "Dr. Dov Bulka" <dbulka@...>
Cc: bug-grub@...
Date: Wednesday, November 4, 2009, 12:33 PM

Am Mittwoch, den 04.11.2009, 09:22 -0800 schrieb Dr. Dov Bulka:

>
> Okay. Looks like I did not get any manual docs because "makeinfo"
> failed.
>
> I have GNU makeinfo installed version 4.8. The OS is Linux RedHat
> 2.6.18-8.el5.
>
>
> I "cd" to the docs directory and issue "makeinfo grub.texi". I'm
> getting a bunch of errors (see below). What do I need to do to correct
> the errors?
>
> [root@mason docs]# makeinfo grub.texi
[...]
> makeinfo: Removing output file `/usr/grub-1.97/docs/grub.info' due to
> errors; use --force to preserve.
> [root@mason docs]#
>
The Makefile uses makeinfo --no-split --force.
With my makeinfo 4.13 the output is similar.

Well if you really want to fix it feel free to do send a patch but then
you need to lern Texinfo.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer


_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

Re: Building GRUB2: error while generating info doc

by Felix Zielcke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, den 04.11.2009, 10:54 -0800 schrieb Dr. Dov Bulka:

> Is there another place where I can find information on how to use
> Grub2? I'm familiar with Grub Legacy but things have changed in a
> significant way.
> What I'm really after is using Grub2 to boot from a floppy. In Grub
> Legacy I used the following recipe:
>
> % fdformat /dev/fd0
> % mkfs -t msdos /dev/fd0
> % mkdir -p /floppy
> % mount -t msdos /dev/fd0 /floppy
> % mkdir -p /floppy/boot/grub
>
> % cp /usr/local/lib/grub/i386-pc/stage* /floppy/boot/grub
>
> % grub
>
> grub> root (fd0)
> grub> setup (fd0)
> grub> quit
>
>
> How do I adapt this procedure to work on Grub2? I did not find a
> "stage1" nor "stage2" files in /usr/local/lib/grub/i386-pc/ and, from
> what I read, the "root" command has been replaced, so the sequence of
> steps above must be modified, but how?
>
> Thanks!
>
> Dov
>

grub-mkrescue --image-type=floppy floppy.img
If you want to have a custom grub.cfg there then:
mkdir -p overlay/boot/grub
emacs overlay/boot/grub/grub.cfg
(or cp etc.)
grub-mkrescue --image-type=floppy --overlay=overlay/ floppy.img

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub