博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu 12.04.1 OK335xS busybox-1.24.1 文件系统编译错误及解决方案
阅读量:6838 次
发布时间:2019-06-26

本文共 4924 字,大约阅读时间需要 16 分钟。

Ubuntu 12.04.1 OK335xS busybox-1.24.1 文件系统编译错误及解决方案一、参考文档:    编译busybox的一些错误:        http://blog.csdn.net/hshl1214/article/details/8668042二、busybox 编译提示:    ......    applets/usage_pod.c: In function ‘main’:    applets/usage_pod.c:74:3: warning: format not a string literal and no format arguments [-Wformat-security]      CC      libbb/appletlib.o      AR      libbb/lib.a      CC      networking/inetd.o      AR      networking/lib.a      CC      shell/ash.o      CC      shell/hush.o      AR      shell/lib.a      LINK    busybox_unstripped    Static linking against glibc, can't use --gc-sections    Trying libraries: crypt m    Failed: -Wl,--start-group  -lcrypt -lm  -Wl,--end-group    Output of:    arm-linux-gnueabihf-gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -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 -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -Os -static -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--gc-sections -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    ==========    networking/lib.a(nslookup.o): In function `print_host':    nslookup.c:(.text.print_host+0x24): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking    debianutils/lib.a(mktemp.o): In function `mktemp_main':    mktemp.c:(.text.mktemp_main+0x54): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'    networking/lib.a(ipcalc.o): In function `ipcalc_main':    ipcalc.c:(.text.ipcalc_main+0x15e): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking    libbb/lib.a(inet_common.o): In function `INET_resolve':    inet_common.c:(.text.INET_resolve+0x32): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking    networking/lib.a(inetd.o): In function `reread_config_file':    inetd.c:(.text.reread_config_file+0x1a4): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking    networking/lib.a(netstat.o): In function `ip_port_str':    netstat.c:(.text.ip_port_str+0x28): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking    networking/lib.a(inetd.o): In function `reread_config_file':    inetd.c:(.text.reread_config_file+0x152): warning: Using 'getrpcbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking    networking/lib.a(inetd.o): In function `unregister_rpc':    inetd.c:(.text.unregister_rpc+0xc): undefined reference to `pmap_unset'    networking/lib.a(inetd.o): In function `register_rpc':    inetd.c:(.text.register_rpc+0x28): undefined reference to `pmap_unset'    inetd.c:(.text.register_rpc+0x3e): undefined reference to `pmap_set'    networking/lib.a(inetd.o): In function `prepare_socket_fd':    inetd.c:(.text.prepare_socket_fd+0x52): undefined reference to `bindresvport'    collect2: error: ld returned 1 exit status    make: *** [busybox_unstripped] Error 1三、解决办法:    make menuconfig 去掉如下选项:        Networking Utilities  —> [ ] inetd (Internet 超级服务器 )

 

转载于:https://www.cnblogs.com/zengjfgit/p/5056648.html

你可能感兴趣的文章
Django 前台通过json 取出后台数据
查看>>
C# 日志框架的添加
查看>>
Knockout学习之前言
查看>>
windows搭建gcc开发环境(msys2) objdump
查看>>
百度网页分享js代码
查看>>
shell脚本按行读取文件的几种方式
查看>>
Nachos3.4系列-1 安装与环境配置 【转】
查看>>
hihocoder1513 小Hi的烦恼
查看>>
MySQL操作指令
查看>>
HDU - 3974 Assign the task (DFS建树+区间覆盖+单点查询)
查看>>
MySQL索引 专题
查看>>
HTTPDNS成为移动互联网的标配–原因与原理解析(转)
查看>>
ThreadLocal是否会引发内存泄露的分析 good
查看>>
数组、链表、Hash(转)
查看>>
程序员的出路之一
查看>>
程序员学习视频教程汇总——(转载)
查看>>
IDEA一直提示 错误: 找不到或无法加载主类
查看>>
王爽 实验7 答案
查看>>
同一个页面,两次请求保证查询条件不变(题目不太相符,我比较渣,问题都不知道怎么表述!--)...
查看>>
freemarker的${!}
查看>>