LinuxSir.cn,穿越时空的Linuxsir!

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

新人报到,问题请教,大虾菜鸟不论

[复制链接]
发表于 2003-4-22 23:08:08 | 显示全部楼层 |阅读模式
今天在redhat linux 7.2上开始装LFS,按照 “置顶:全面支持中文LINUX FROM SCRATCH (LFS) 中文安装手册索引” 里面所说的“Linux From Scratch 版本 20021030”进行,所用的包版本与教程所说的相同,在进行到第六章安装Glibc-2.2.5出现以下问题:
输入命令

patch -Np1 -i ../glibc-2.2.5-2.patch &&
touch /etc/ld.so.conf &&
mkdir ../glibc-build &&
cd ../glibc-build &&
../glibc-2.2.5/configure --prefix=/usr --disable-profile \
    --enable-add-ons --libexecdir=/usr/bin &&
echo "cross-compiling = no" > configparms &&
make &&
make install &&
make localedata/install-locales &&
exec /static/bin/bash --login

时,提示
patching file login/Makefile
patching file malloc/Makefile
patching file iconv/skeleton.c
can't find file to patch at input line 83
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr glibc-2.2.5.orig/linuxthreads/signals.c glibc-2.2.5/linuxthreads/signals.c
|--- glibc-2.2.5.orig/linuxthreads/signals.c        2002-01-21 14:21:16.000000000 +1100
|+++ glibc-2.2.5/linuxthreads/signals.c        2002-08-10 09:24:57.000000000 +1000
--------------------------
File to patch:

按回车,提问

Skip this patch? [y]

再按 y 显示

Skipping patch.
1 out of 1 hunk ignored
patching file malloc/malloc.c
patching file posix/regex.h
patching file resolv/nss_dns/dns-network.c
patching file sunrpc/xdr_array.c
patching file sysdeps/i386/Makefile
patching file sysdeps/i386/fpu/libm-test-ulps
patching file sysdeps/m68k/Makefile
patching file sysdeps/s390/s390-32/Makefile
patching file sysdeps/unix/sysv/linux/errlist.c
patching file sysdeps/wordsize-32/divdi3.c

不管提示,重新执行 touch 以下的命令,执行到 configure 时出现下面的提示

checking for local label subtraction... yes
checking for libgd... no
checking size of long double... 0
running configure fragment for ../glibc-2.2.5/sysdeps/unix/sysv/linux
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'.

于是在 configure 后面加上参数 --disable-sanity-checks,可以生成 Makefile 文件,但在执行 make 时出现下面错误

syslog.c:In function 'vsyslog':
syslog.c:220: 'cancel_handler' undeclared (first usr in this function)
syslog.c:220: (Each undeclared identifier is reported only once
syslog.c:220: for each function it appears in.)
syslog.c:220: warning: type defaults to 'int' in declaration of '__save_FCT'
syslog.c:272: called object is not a function
syslog.c: In function 'openlog':
syslog.c:332: parse error befor ')' token
syslog.c:332: '__save_FCT' undeclared (first usr in this function)
syslog.c:332: parse error befor ')' token
syslog.c:338: '__save_ARG' undeclared (first usr in this function)
syslog.c: In function 'closelog':
syslog.c:364: parse error befor ')' token
syslog.c:364: '__save_FCT' undeclared (first usr in this function)
syslog.c:364: parse error befor ')' token
syslog.c:372: '__save_ARG' undeclared (first usr in this function)
make[2]: ***[/static/src/lfs-packages-cvs-20020123-1707/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory '/static/src/lfs-packages-cvs-20020123-1707/glibc-2.2.5/misc'
make[1]: ***[misc/subdir_lib] Error 2
make[1]: Leaving directory '/static/src/lfs-packages-cvs-20020123-1707/glibc-2.2.5
make: ***[all] Error 2'

请问是什么原因导致这个错误,是 patch 文件的问题吗?谢谢!
发表于 2003-4-22 23:53:41 | 显示全部楼层
你忘了解压linuxthreads 吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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