Glibc 2.2

richard at reika.demon.co.uk richard at reika.demon.co.uk
Sun Nov 12 17:20:09 PST 2000


Here is how to get ncurses to compile with glibc-2.2:

You will need the static version of zlib on the host to compile an
experimental version of gcc.
Get zlib from ftp://ftp.freesoftware.com/pub/infozip/zlib/zlib.tar.gz
unpack it
configure --prefix=/usr
make
make install
While we here, might as well unpack a fresh copy
configure --prefix=/usr --shared
make
make install

Follow the normal instructions for LFS, but until you reach gcc

With the shared zlib, you could install gcc-2.7 on the host
system like the book installs 2.95.2 on hosts that use an
older version. Unfortunately the new gcc does not compile
glibc-2.2

Download gcc-20001106.tar.gz from:
ftp://ftp.mirror.ac.uk/sites/sourceware.cygnus.com/pub/gcc/snapshots/

install a static version on LFS as normal, but with the following
extra commands after ../gcc-*/configure ...:

sed "s/FIXINC_DEFS = /FIXINC_DEFS = -Dre_max_failures=re_max_failures2 /"\
    <gcc/fixinc/Makefile >gcc/fixinc/Makefile~
mv gcc/fixinc/Makefile~ gcc/fixinc/Makefile


Compile glibc-2.2 with the hosts's gcc-2.95-2

Continue with building LFS as standard until you get to chroot.
Do not compile a shared version of gcc yet - it wont work until
you compile bison and mawk using static gcc-2.97

Now you can compile gcc-2.97 even though you have not installed zlib
in the chroot environment. If anyone knows why gcc-2.95.2 requires
zlib to compile gcc-2.97, but gcc-2.97 does not, please tell me.

You can now continue installing LFS, including ncurses until you
reach fileutils:

make[1]: Leaving directory /usr/src/fileutils-4.0/intl'
Making install in src
make[1]: Entering directory /usr/src/fileutils-4.0/src'
gcc -DLOCALEDIR=\"/usr/share/locale\" -DSHAREDIR=\"/usr/share\" -DHAVE_CONFIG_H -I.. -I. -I../lib -I../intl  -D_FILE_OFFSET_BITS=64  -O3 -march=i686 -c dircolors.c
dircolors.c:40:15: macro "strndup" requires 2 arguments, but only 1 given
dircolors.c:40: `strndup' redeclared as different kind of symbol
/usr/include/string.h:128: previous declaration of `strndup'
make[1]: *** [dircolors.o] Error 1
make[1]: Leaving directory /usr/src/fileutils-4.0/src'
make: *** [install-recursive] Error 1

Thats enough for tonight
Richard

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list