|
|
运行:
../glibc-2.3.4/configure --prefix=/tools --disable-profile --enable-add-onsenable-kern
l=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux
后报出:
checking size of long double... 12
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on. Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.
重新加上“--disable-sanity-checks”后configure 完成
但make时又给出如下错误:
mkdir /mnt/lfs/sources/glibc-build/assert
gcc -B/tools/bin/ assert.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=2 -DFATAL_PREP
ARE_INCLUDE='<fatal-prepare.h>' -I../include -I. -I/mnt/lfs/sources/glibc-build/assert -I.. -I../libio -I/mnt/lfs/sources/glibc-build -I..
/sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/
mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I
../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../
sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/ge
neric -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/include -isystem /tools/include -include ../include/libc-symb
ols.h -o /mnt/lfs/sources/glibc-build/assert/assert.o -MD -MP -MF /mnt/lfs/sources/glibc-build/assert/assert.o.dt -MT /mnt/lfs/sources/
glibc-build/assert/assert.o
In file included from ../sysdeps/unix/sysv/linux/fatal-prepare.h:19,
from assert.c:42:
../include/pthread.h:1:26: pthread.h: No such file or directory
assert.c: In function `__assert_fail':
assert.c:53: error: `pthread_setcancelstate' undeclared (first use in this function)
assert.c:53: error: (Each undeclared identifier is reported only once
assert.c:53: error: for each function it appears in.)
assert.c:53: warning: implicit declaration of function `pthread_setcancelstate'
assert.c:53: error: `PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
make[2]: *** [/mnt/lfs/sources/glibc-build/assert/assert.o] Error 1
1,5 顶端
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4/assert'
make[1]: *** [assert/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4'
make: *** [all] Error 2
说是缺少pthread.h(前面已经将 libc-heads 拷贝到了/tools)
大家给看看 ,谢了
我的系统:MagicLinux 2.6.15.3 |
|