[BusyBox] busybox does not work where compiled, but on old system
Goetz Bock
bock at blacknet.de
Thu Jan 23 16:37:03 UTC 2003
Hi,
I've a strange problem:
I've compiles a static version of busybox on a 2.4.19 linux system, with
glibc 2.2.5 using gcc 3.2.1 and binutiuls 2.12.1
The busybox sources are from CVS as of Jan 24 arround 23:45.
The build works fine and I can run all testet applets, but ash gives me:
----------------------------------------------------------------------
bg at devel ~/busybox.cvs$ ./busybox ash
BusyBox v0.61.pre (2003.01.23-21:35+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
bg at devel ~/busybox.cvs$ echo $PATH
echo: No such file or directory
bg at devel ~/busybox.cvs$ /bin/echo $PATH
/sbin:/usr/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/home/bg/bin
bg at devel ~/busybox.cvs$
----------------------------------------------------------------------
neither buildin nor existing commands work unless prefixed with the full
path.
When I copy this binary to a different box, with glibc 2.1.3, still
2.4.19 kernel, i get:
----------------------------------------------------------------------
bg at dragon ~$ ./busybox ash
BusyBox v0.61.pre (2003.01.23-21:35+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
bg at dragon ~$ echo $PATH
/home/bg/bin:/sbin:/usr/sbin:/home/bg/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/sbin:/sbin
bg at dragon ~$
----------------------------------------------------------------------
and all existing commands work as expected, busybox applets don't work
(but:
CONFIG_FEATURE_SH_STANDALONE_SHELL=y
# CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN is not set
)
I've no idea where to begin debugging, especially as:
----------------------------------------------------------------------
bg at devel ~/busybox.cvs$ ldd busybox
not a dynamic executable
----------------------------------------------------------------------
but building a dynamic busybox does not help.
--
Goetz Bock (c) 2003 as blacknet.de - Munich - Germany /"\
IT Consultant GNU FDL 1.1 secure mobile Linux everNETting \ /
X
ASCII Ribbon Campaign against HTML email & microsoft attachments / \
More information about the busybox
mailing list