Bug in 1.8.2 and 1.9

Denys Vlasenko vda.linux at googlemail.com
Fri Feb 8 20:28:29 UTC 2008


On Tuesday 05 February 2008 19:43, elektra wrote:
> Hi -
> 
> I'm getting strange results when I use the grep applet from a
> statically compiled busybox 1.8.2 and 1.9 on X86 compiled with gcc 4.1.3
> against glibc-2.6.1.
> 
> I guess it is a bug because in the same environment a statically
> compiled busybox 1.1.3-4 (Debian Package) works as expected, apart from
> informing me that it is "Using fallback suid method", even though it is
> called by root.
> 
> The command:
> 
> grep x file
> 
> works as expected.
> 
> While:
> 
> grep x file > output.file
> 
> creates an empty file 'output.file' when using 1.8.2 and 1.9
> (busybox-20080205). 1.1.3 works.
> 
> Filesystem is ext3, mounted read/write.

You built busybox statically without removing "-Wl,--gc-sections"

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 scripts/trylink and remove this warning.
#error Aborting compilation.
#endif

--
vda



More information about the busybox mailing list