beiken 发表于 2008-09-25 16:47

编译e2fsprogs时出现链接错误

我在编译e2fsprogs时
使用
./configure --enable-elf-shlibs --host=arm-linux
--with-cc=/usr/local/arm/2.95.3/bin/arm-linux-gcc
--with-linker=/usr/local/arm/2.95.3/bin/arm-linux-ld
--prefix=/usr/local/arm/2.95.3/arm-linux

make
出现如下错误:
../../lib/libuuid.a:could not read symbols:Archive has no index,run ranlib to add one
collect2:ld returned 1 exit status

请问要怎么解决,为什么会出现这样情况?

andyzn 发表于 2008-09-25 17:20

cjaizss 发表于 2008-09-25 19:30

信息里面不是说了吗?你先按照信息里说的来做试试看了。

freearth 发表于 2008-09-26 15:09

像这一类问题的通用解决方法是:
把出错提示“could not read symbols:Archive has no index,run ranlib to add one”拷贝到google中搜一下。
要相信一点,这些常用的程序,如果你出了某个错误,别人一定也出过,并且讨论过。。。。

原帖由 beiken 于 2008-9-25 16:47 发表 http://linux.chinaunix.net/bbs/images/common/back.gif
我在编译e2fsprogs时
使用
./configure --enable-elf-shlibs --host=arm-linux
--with-cc=/usr/local/arm/2.95.3/bin/arm-linux-gcc
--with-linker=/usr/local/arm/2.95.3/bin/arm-linux-ld
--prefix=/usr ...

beiken 发表于 2008-09-28 09:18

二楼和三楼说对了
我之前是搜索过了,但是找不到好的答案
谢谢三位了

jerrywjl 发表于 2008-09-28 12:11

这种系统工具也要编译啊?!编译出来敢用吗?
页: [1]
查看完整版本: 编译e2fsprogs时出现链接错误