busybox-1.1.2 ash vs. busybox-1.2.2 ash
Denis Vlasenko
vda.linux at googlemail.com
Wed Dec 20 16:26:29 PST 2006
On Wednesday 20 December 2006 15:21, Bernecker, Herbert wrote:
> Hi list!
>
> I am using a script to run posix-tests. With busybox 1.1.2 this works
> very well,
> but since i use the version 1.2.2 the scripts run not anymore.
> The behavior seems to be different.
>
> Example:
> - script
>
> #! /bin/sh
> BASEDIR=conformance/interfaces
> runtests()
> {
> for directory in `ls -d $1`; do
> echo $directory
> done
> }
> runtests "$BASEDIR/sig*"
>
>
> - output version 1.1.2
> <directory>
> <directory>
> <directory>
> <directory>
> <directory>
> ...
>
> - output version 1.2.2
>
>
> Is this
> - due to any changed config options?
> - a wanted behavior?
> - or magic?
It's because you built static busybox against glibc.
Grab newer one, and pay attention to:
applets.c
#warning Static linking against glibc produces buggy executables
#warning (glibc does not cope well with ld --gc-sections).
#warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
#warning Note that glibc is unsuitable for static linking anyway.
#warning If you still want to do it, remove -Wl,--gc-sections
#warning from top-level Makefile and remove this warning.
--
vda
More information about the busybox
mailing list