|
|
发表于 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. |
|