Fedora 13 交叉编译 mksquashfs 出现错误

来源:互联网 发布:手机恢复数据软件 编辑:程序博客网 时间:2024/06/05 22:44
 

Fedora 13 交叉编译 mksquashfs 出现错误:

/usr/bin/ld: mksquashfs.o: undefined reference to symbol 'log10@@GLIBC_2.0'
/usr/bin/ld: note: 'log10@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status


这个问题,有两种情况:

1、所需的lib没有安装;

2、lib路径不对或者没有把相关的lib在makefile里添加进去。


解决方法:

在对应的makefile里 找到mksquashfs.o所在的地方,然后找到 mksquashfs: LDLIBS += -lpthread -lunlzma_r -llzma_r -lstdc++ ,在后面加上 -lm


还有一篇文章可以参考一下:http://www.linuxidc.com/Linux/2011-03/33327.htm

原创粉丝点击