Ubuntu 12.04.1 OK335xS busybox-1.24.1 文件系统编译错误及解决方案
时间:2015-12-18 13:12:49
收藏:0
阅读:3256
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 超级服务器 )
评论(0)