编译busybox时出错!??为何静态编译不行?!!
发布时间:2007-02-14 23:18:44来源:红联作者:alex0007
2007.02.14.今天在编译busybox时出错!!成功编译了一个极小的内核。。bzImage大小约为650KB..但在编译busybox时当我选择静态编译时出错!出现如下现象
[root@localhost busybox-1.3.1]# make
CC applets/applets.o
applets/applets.c:22:2: 错误:#warning Static linking against glibc produces bug gy executables
applets/applets.c:23:2: 错误:#warning (glibc does not cope well with ld --gc-se ctions).
applets/applets.c:24:2: 错误:#warning See sources.redhat.com/bugzilla/show_bug. cgi?id=3400
applets/applets.c:25:2: 错误:#warning Note that glibc is utterly unsuitable for static linking anyway.
make[1]: *** [applets/applets.o] 错误 1
make: *** [applets] 错误 2
[root@localhost busybox-1.3.1]#
我把我的配置文件也发上来(只贴前面部分)
#
# Automatically generated make config: don't edit
# Linux kernel version: 1.3.1
# Wed Feb 14 22:41:44 2007
#
CONFIG_HAVE_DOT_CONFIG=y
#
# Busybox Settings
#
#
# General Configuration
#
# CONFIG_NITPICK is not set
# CONFIG_DESKTOP is not set
# CONFIG_FEATURE_BUFFERS_USE_MALLOC is not set
# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
CONFIG_SHOW_USAGE=y
CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_FEATURE_COMPRESS_USAGE=y
CONFIG_FEATURE_INSTALLER=y
CONFIG_LOCALE_SUPPORT=y
CONFIG_GETOPT_LONG=y
CONFIG_FEATURE_DEVPTS=y
# CONFIG_FEATURE_CLEAN_UP is not set
CONFIG_FEATURE_SUID=y
CONFIG_FEATURE_SYSLOG=y
CONFIG_FEATURE_SUID_CONFIG=y
CONFIG_FEATURE_SUID_CONFIG_QUIET=y
CONFIG_FEATURE_HAVE_RPC=y
# CONFIG_SELINUX is not set
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
#
# Build Options
#
CONFIG_STATIC=y
# CONFIG_BUILD_LIBBUSYBOX is not set
# CONFIG_FEATURE_FULL_LIBBUSYBOX is not set
# CONFIG_FEATURE_SHARED_BUSYBOX is not set
# CONFIG_LFS is not set
# CONFIG_BUILD_AT_ONCE is not set
#
# Debugging Options
#
# CONFIG_DEBUG is not set
# CONFIG_DEBUG_PESSIMIZE is not set
# CONFIG_NO_DEBUG_LIB is not set
# CONFIG_DMALLOC is not set
# CONFIG_EFENCE is not set
CONFIG_DEBUG_YANK_SUSv2=y
#
# Installation Options
#
CONFIG_INSTALL_NO_USR=y
CONFIG_INSTALL_APPLET_SYMLINKS=y
# CONFIG_INSTALL_APPLET_HARDLINKS is not set
# CONFIG_INSTALL_APPLET_DONT is not set
CONFIG_PREFIX="./_install"
#
# Busybox Library Tuning
#
CONFIG_PASSWORD_MINLEN=6
CONFIG_MD5_SIZE_VS_SPEED=2
#
# Applets
#
(以下省略)