LinuxSir.cn,穿越时空的Linuxsir!

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

编译binutils时候出现错误,郁闷!!

[复制链接]
发表于 2006-4-22 00:05:04 | 显示全部楼层 |阅读模式
偶是这样的问题,有解决的吗。告诉小弟一声
ar.o(.text+0xb98): In function `main':
../../sources/binutils-2.15.94.0.2.2/binutils/ar.c:342: multiple definition of `main'
arparse.o(.text+0x0):/root/zlls/binutils/binutils/arparse.c:1: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 16 in arparse.o to 3195 in ar.o
bucomm.o(.text+0x85e): In function `make_tempname':
../../sources/binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x23): In function `mri_emul':
: undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] 错误 1
make[3]: Leaving directory `/root/zlls/binutils/binutils'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/zlls/binutils/binutils'
make[1]: *** [all-recursive-am] 错误 2
make[1]: Leaving directory `/root/zlls/binutils/binutils'
make: *** [all-binutils] 错误 2
宿主系统
Linux version 2.6.9-22.EL (buildcentos@louisa.home.local) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 Sat Oct 8 17:48:27 CDT 2005
发表于 2006-4-22 01:36:24 | 显示全部楼层
Post by webyuhang
偶是这样的问题,有解决的吗。告诉小弟一声
ar.o(.text+0xb98): In function `main':
../../sources/binutils-2.15.94.0.2.2/binutils/ar.c:342: multiple definition of `main'
arparse.o(.text+0x0):/root/zlls/binutils/binutils/arparse.c:1: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 16 in arparse.o to 3195 in ar.o
bucomm.o(.text+0x85e): In function `make_tempname':
../../sources/binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x23): In function `mri_emul':
: undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] 错误 1
make[3]: Leaving directory `/root/zlls/binutils/binutils'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/zlls/binutils/binutils'
make[1]: *** [all-recursive-am] 错误 2
make[1]: Leaving directory `/root/zlls/binutils/binutils'
make: *** [all-binutils] 错误 2
宿主系统
Linux version 2.6.9-22.EL (buildcentos@louisa.home.local) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 Sat Oct 8 17:48:27 CDT 2005


从 kernel.org 下的 binutils 版本号一般是 2.15.9* , 不推荐使用, 推荐用 http://ftp.gnu.org/pub/gnu/binutils/binutils-2.16.1.tar.bz2 .

如果非要用 kernel.org 的, 要确定系统中有 flex 和 bison . 也就是 pass1 , 主系统中要有 flex 和 bison , pass2, 先在 /tools 里装上 flex 和bison.
回复 支持 反对

使用道具 举报

发表于 2006-4-22 03:00:56 | 显示全部楼层
置顶帖也不读的人,请 dyhml 以后别回答这些问题。谢谢。

应该学会尊重人家的劳动成果。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-22 20:15:40 | 显示全部楼层
感谢dyhml,我会继续实验LFS的。。。感谢楼上幻想兄弟的批评。我会好好拜读的。谢谢大家!
回复 支持 反对

使用道具 举报

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

本版积分规则

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