码迷,mamicode.com
首页 > 其他好文 > 详细

busybox编译出错

时间:2015-11-10 20:58:26      阅读:313      评论:0      收藏:0      [点我收藏+]

标签:

LINK    busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,–start-group -lcrypt -lm -Wl,–end-group
Output of:
gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -static -o busybox_unstripped -Wl,–sort-common -Wl,–sort-section,alignment -Wl,–start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,–end-group -Wl,–start-group -lcrypt -lm -Wl,–end-group
==========
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lcrypt
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
 
=================================================================以上是错误信息===================================================================

 

找了不少网页,才找到一个靠谱点的

http://blog.csdn.net/hshl1214/article/details/8668042

 

"好像是和glibc版本过高有关,找不到相关函数,这个好办,make menuconfig 去掉如下选项
Linux System Utilities  —>  [ ]   Support mounting NFS file systems 网络文件系统
Networking Utilities  —> [ ] inetd (Internet 超级服务器 )
然后就ok 了,不过这两个错误在CentOS 和mispel 交叉编译链中都没有出现。"
 
 

busybox编译出错

标签:

原文地址:http://www.cnblogs.com/bugtags/p/4954009.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!