L1g3r Logo           SignalQ Sites: NetAdminTools - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
glibc-2.5.1
Topic:MCJ GNU/Linux Reference OS   Date: 2009-05-24
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Base Reference GNU/Linux Build Sequence

The GNU C library was originally written primarily by Roland McGrath when he worked for the Free Software Foundation. In 2001 The GNU C Library Steering Committee, was formed and currently consists of Mark Brown, Paul Eggert, Andreas Jaeger, Jakub Jelinek, Roland McGrath and Andreas Schwab. Ulrich Drepper is currently the foremost contributor and has overall responsibility for maintenance and development.

Source code is available here and here. If you go back into /sources/glibc-build and run make install, it will work. Building from the gen tab doesn't work because of a timing error during the check.

To compile and install, run these commands:

cd /sources/ &&
rm -rf /sources/glibc-2.5.1 && 
rm -rf /sources/glibc-build &&
tar -xjf glibc-2.5.1.tar.bz2 &&
cd glibc-2.5.1 && 
tar -xzf ../glibc-libidn-2.5.1.tar.gz &&
mv glibc-libidn-2.5.1 libidn &&
sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED &&
sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in &&
mkdir ../glibc-build && 
cd ../glibc-build && 
../glibc-2.5.1/configure --prefix=/usr \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc &&
make &&
make check &&
make install &&
mkdir -pv /usr/lib/locale &&
localedef -i de_DE -f ISO-8859-1 de_DE &&
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro &&
localedef -i en_HK -f ISO-8859-1 en_HK &&
localedef -i en_PH -f ISO-8859-1 en_PH &&
localedef -i en_US -f ISO-8859-1 en_US &&
localedef -i en_US -f UTF-8 en_US.UTF-8 &&
localedef -i es_MX -f ISO-8859-1 es_MX &&
localedef -i fa_IR -f UTF-8 fa_IR &&
localedef -i fr_FR -f ISO-8859-1 fr_FR &&
localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro &&
localedef -i fr_FR -f UTF-8 fr_FR.UTF-8 &&
localedef -i it_IT -f ISO-8859-1 it_IT &&
localedef -i ja_JP -f EUC-JP ja_JP &&
cd /sources/ &&
rm -rf glibc-libidn-2.5.1 &&
rm -rf glibc-build &&
rm -rf /tools

The output should look something like this:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 
nptl/sysdeps/unix/sysv/linux/i386
 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread 
sysdeps/unix
/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet 
sysdeps/unix/sysv/i386 nptl
/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix
 sysdeps
/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 
sysdeps/i386/fpu
 nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 
sysdeps/ieee754/dbl-64 sysdeps
/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as is GNU as... yes
checking whether /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld is GNU ld... yes
checking for /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as... 
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as
checking version of /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/as... 2.17, ok
checking for /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld... 
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld
checking version of /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld... 2.17, ok
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.1.2, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
.
.
.
if test -r /usr/include/gnu/stubs-32.h && cmp -s /sources/glibc-build/stubs.h 
/usr/include/gnu/stubs-32.h; \
	then echo 'stubs.h unchanged'; \
	else /bin/install -c -m 644 /sources/glibc-build/stubs.h /usr/include/gnu/stubs-32.h; fi
stubs.h unchanged
rm -f /sources/glibc-build/stubs.h
/sources/glibc-build/elf/sln /sources/glibc-build/elf/symlink.list
rm -f /sources/glibc-build/elf/symlink.list
test ! -x /sources/glibc-build/elf/ldconfig || LC_ALL=C LANGUAGE=C \
	  /sources/glibc-build/elf/ldconfig  \
				       /lib /usr/lib
CC="gcc" /usr/bin/perl scripts/test-installation.pl /sources/glibc-build/
Your new glibc installation seems to be ok.
make[1]: Leaving directory `/sources/glibc-2.5.1'


People:
andreas jaeger
jakub jelinek
paul eggert
roland mcgrath
Places:
free software foundation
Things:
glibc
Times:
2001



None of this would be possible without the diligent work of the Linux From Scratch (LFS) project. A tip o' the hat to those intrepid hackers. Much of the OS buld configuration is taken directly from LFS and BLFS.