src (Icelandic mirror)
build instructions:
- mkdir glibc-2.7-build
- cd glibc-2.7-build
-
echo "CFLAGS += -march=i586" > configparms (otherwise one gets
undefined reference to `__sync_bool_compare_and_swap_4` and similar errors)
-
../glibc-2.7/configure --prefix=/usr/local/glibc-2.7
--with-headers=/usr/src/linux-2.6.25/include
- make
-
export TIMEOUTFACTOR=2 (otherwise crypt/sha256c-test timeouts on my slow
machine)
-
export LD_PRELOAD="/usr/local/gcc/lib/libgcc_s.so.1 /usr/local/gcc/lib/libstdc++.so.6"
(otherwise in some tests it complains about lack of these libraries no matter what)
- make check
- env LANGUAGE=C LC_ALL=C make install
to get glibc version, simply run /lib/libc.so.6 (sic!)
an error like
*** glibc detected *** free(): invalid pointer: 0x081c80f0 ***
indicates an application fault in memory management. glibc allows to supress
(but not to remedy!) such an error by setting environment variable
MALLOC_CHECK_ to 0 or 1 (see man malloc).
created Apr 20 2008
last updated Tue Apr 22 04:34:27 UTC 2008