LFS 5.1.1 Chapter 5 glibc-2.3.3-lfs-5.1 pass #1 Debian stable BUG/FIX

Ken Fuchs kfuchs at winternet.com
Sat Jun 12 20:49:48 PDT 2004

------ Introduction and Environment ------

I'm been (literally) following the Linux From Scratch Manual version 5.1.1:

Host system: Debian stable 3.0r2
             Pentium II 350MHz 128MB

uname -a: Linux host 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown

----- make install: autoconf BUG -----

Everything worked fine until the first pass of glibc-2.3.3-lfs-5.1,
sub-step "make install".  (The "make AUTOCONF=no" sub-step worked OK.) 
Here's the output of "time make install":

lfs:/mnt/lfs/sources/glibc-build$ time make install
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.3-lfs-5.1 objdir=`pwd` install
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'
autoconf  sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_FD_MSG
make[1]: *** [sysdeps/i386/elf/configure] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'
make: *** [install] Error 2

real	0m5.207s
user	0m1.870s
sys	0m0.160s

------ Proposed fix that solves the problem described above ------

Proposed fix that seems to have worked:

Inserted the line (from /mnt/lfs/sources/glibc-2.3.3-lfs-5.1/configure.in)

AC_PREREQ(2.53)dnl		dnl Minimum Autoconf version required.

after the first line of


This change can be displayed as follows

$ pushd /mnt/lfs/sources/glibc-2.3.3-lfs-5.1/sysdeps/i386/elf/
$ diff configure.in.orig configure.in
> AC_PREREQ(2.53)dnl		dnl Minimum Autoconf version required.

------ Alternative, _untested_ fix ------

Alternative untested fix is to use (without changing any source):

lfs:/mnt/lfs/sources/glibc-build$ make AUTOCONF=no install

------ Source of the autoconf BUG ------

Debian stable 3.0r2 uses two versions 2.13-43 and 2.53-2 of autoconf,
because some (old) software doesn't autoconf under autoconf 2.5x:  

$ dpkg -l | grep autoconf
ii autoconf        2.53-2         automatic configure script builder
ii autoconf2.13    2.13-43        automatic configure script builder (obsolete

These Debian packages are setup with wrappers to automatically select
the version of autoconf to use.  See /usr/doc/share/autoconf/README.Debian.
Basically, 2.5x is used if its argument ends in .ac or an AC_PREREQ
macro requires a version newer than 2.13, otherwise 2.13 is used.

------ Please comment on this bug and the two proposed solutions. ------

Will the first proposed solution cause any problems in the remainder
of the LFS 5.1.1 install?

The alternative "make AUTOCONF=no install" is probably better.

Thank you!


Ken Fuchs <kfuchs at winternet.com>

More information about the lfs-support mailing list