发新话题
打印

编译glibc 2.7的问题

编译glibc 2.7的问题

在红旗6编译glibc 2.7时,出现如下错误:
gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/i386/tcb-offsets.sym \
| gcc -S -o /rjaz/glibc/tcb-offsets.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=4     -I../include -I/rjaz/glibc/csu -I/rjaz/glibc -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../glibc-ports-2.7/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../glibc-ports-2.7/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../glibc-ports-2.7/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../glibc-ports-2.7/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -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/generic -I../glibc-ports-2.7 -I../nptl  -I.. -I../libio -I. -nostdinc -isystem /usr/local/lib/gcc/i686-pc-linux-gnu/4.3.0/include -isystem /rjaz/linux-2.6.25.4/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -x c - \
        -MD -MP -MF /rjaz/glibc/tcb-offsets.h.dT -MT '/rjaz/glibc/tcb-offsets.h.d /rjaz/glibc/tcb-offsets.h'
在包含自 ../nptl/sysdeps/pthread/allocalim.h:21 的文件中,
                 从 ../include/alloca.h:20,
                 从 ../stdlib/stdlib.h:497,
                 从 ../include/stdlib.h:8,
                 从 ../nptl/sysdeps/i386/i686/../tls.h:28,
                 从 ../nptl/sysdeps/i386/i686/tls.h:34,
                 从 ../include/tls.h:6,
                 从 ../sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 从 <stdin>:1:
../include/limits.h:125:26: 错误:limits.h:没有那个文件或目录
make[2]: *** [/rjaz/glibc/tcb-offsets.h] 错误 1
make[2]: Leaving directory `/rjaz/glibc-2.7/csu'
make[1]: *** [csu/subdir_lib] 错误 2
make[1]: Leaving directory `/rjaz/glibc-2.7'
make: *** [all] 错误 2

是什么原因?我看到源程序目录下有是limits.h的      

TOP

宁可自编内核,不要自编glibc      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

引用:
原帖由 zltjiangshi 于 2008-5-28 14:59 发表
宁可自编内核,不要自编glibc
内核编译简单得多,有图形界面可以配置。不过我弄不明白,明明有哪个文件为什么还提示说文件没找到。      

TOP

发新话题