Notes |
(0003009)
vda
12-04-07 01:54
|
Please post your .config and output of "ldd busybox" command. |
| |
(0003014)
sunx
12-04-07 04:57
edited on: 12-04-07 04:59
|
the attachment is .config
binary is static linking
gcc 3.3.2
glibc 2.3.2
but , i think glibc viersion is not important
|
| |
(0003024)
vda
12-04-07 10:51
|
It's CONFIG_STATIC=y + glibc.
With your .config:
$ make
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
SPLIT include/autoconf.h -> include/config/*
GEN include/bbconfigopts.h
HOSTCC applets/usage
GEN include/usage_compressed.h
CC applets/applets.o
applets/applets.c:15:2: warning: #warning Static linking against glibc produces buggy executables
applets/applets.c:16:2: warning: #warning (glibc does not cope well with ld --gc-sections).
applets/applets.c:17:2: warning: #warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
applets/applets.c:18:2: warning: #warning Note that glibc is unsuitable for static linking anyway.
applets/applets.c:19:2: warning: #warning If you still want to do it, remove -Wl,--gc-sections
applets/applets.c:20:2: warning: #warning from top-level Makefile and remove this warning.
applets/applets.c:21:2: error: #error Aborting compilation.
make[1]: *** [applets/applets.o] Error 1
make: *** [applets] Error 2
This warning says it all. I suppose you didn't read it. |
| |
(0003029)
sunx
12-04-07 21:18
|
yes, i saw it
and checked top-level Makefile, but there has no gc-sections
so, i comment the "#error" line in applets/applets.c
what should i do ? , please help me |
| |
(0003034)
sunx
12-05-07 17:20
|
i got it now, modify script/trylink
anyway thanks |
| |
(0003069)
vda
12-08-07 19:47
|
It's in scripts/trylink now, not in the Makefile |
| |