LinuxSir.cn,穿越时空的Linuxsir!

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

第五章_glibc-2.3.2_打补丁及编译错误,恳请帮忙,谢谢.(内详)

[复制链接]
发表于 2004-4-30 12:45:06 | 显示全部楼层 |阅读模式
第一次安装LFS,遇到了问题,希望得到大家的帮助,谢谢

----
在linuxsir下的LFS5.0的源码和补丁包
按中文文档安装,除将/tools 名改为/tools_for_lfs外,没做任何改动
进行到第五章安装glibc之前,没有任何错误.
----
安装glibc
打补丁时出现:
$ patch -Npl -i ../glibc-2.3.2-sscanf-1.patch
patch: **** strip count l is not a number
----
随后
$ ../glibc-2.3.2/configure --prefix=/tools_for_lfs --disable-profile --enable-add-ons --with-headers=/tools_for_lfs/include --with-binutils=/tools_for_lfs/bin --without-gd
时没有出现文档中提及的可能出现的警告
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt
*** some features will be disabled.
*** Check the INSTALL file for required versions.
-----
然后
make
大概10分钟左右出现下面错误

../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem /tools_for_lfs/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include -isystem /tools_for_lfs/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO -o /mnt/lfs/sources/glibc-build/stdio-common/sscanf.osscanf.c:31: warning: conflicting types for built-in function `sscanf'
sscanf.c: In function `sscanf':
sscanf.c:37: error: `va_start' used in function with fixed args
../stdio-common/_itoa.h: At top level:
../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
../stdio-common/_itoa.h:76: warning: called from here
make[2]: *** [/mnt/lfs/sources/glibc-build/stdio-common/sscanf.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.2'
make: *** [all] Error 2
$


我感觉问题就出在那个patch没有打好上,
我认为从这里下载的源码及补丁不应该有问题
不知道如何解决,请各们指教,多谢!!
发表于 2004-4-30 13:28:31 | 显示全部楼层

呵呵

我觉得你应该再仔细看看文档!
 楼主| 发表于 2004-4-30 14:03:51 | 显示全部楼层

能不能给点提示呀,谢谢

给一点提示也好,
我也能节省点时间
再谢
 楼主| 发表于 2004-4-30 14:19:50 | 显示全部楼层

忘了说了

patch后
已经新建了一个目录glibc-build
是在glibc-build里面configure 和 make的
发表于 2004-4-30 14:21:36 | 显示全部楼层
建议新手应该先熟悉一下shell的基础知识。
你的补丁命令错误了。

  1. patch -Np[b][color=red]1[/color][/b] -i ../glibc-2.3.2-sscanf-1.patch [color=green]#忽略顶层目录,所以patch的选项为p1,这里的数字1是目录层号,你写错成字母l[/color]
复制代码
 楼主| 发表于 2004-4-30 14:33:23 | 显示全部楼层

多谢了:)

接受建议,
补习shell知识.
//bow
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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