LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1388|回复: 1

make glibc-2.3.4 时出错,大家给看看

[复制链接]
发表于 2007-7-1 22:54:21 | 显示全部楼层 |阅读模式
运行:
../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
 楼主| 发表于 2007-7-3 20:58:22 | 显示全部楼层

问题解决了

看来大家都忙,版主把我的问题删了吧!,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表