Denis Vlasenko wrote:
> On Sunday 20 May 2007 23:25, Stephane Couture wrote:
>   
>> Not sure what is going on.
>>
>> on x86 :
>>
>> busybox sed:
>> bash-3.00$  zo=`echo za | ./busybox sed s/a/b/`;echo $zo
>>                <----- empty!!
>>     
>
> Works for me.
>
> Are you using CONFIG_STATIC=y and ling against glibc?
>   
yes.  I should have pay attention to the warnings :
applets/applets.c:25:2: warning: #warning Static linking against glibc 
produces buggy executables
applets/applets.c:26:2: warning: #warning (glibc does not cope well with 
ld --gc-sections).
applets/applets.c:27:2: warning: #warning See 
sources.redhat.com/bugzilla/show_bug.cgi?id=3400
applets/applets.c:28:2: warning: #warning Note that glibc is unsuitable 
for static linking anyway.
applets/applets.c:29:2: warning: #warning If you still want to do it, 
remove -Wl,--gc-sections
applets/applets.c:30:2: warning: #warning from top-level Makefile and 
remove this warning.

It works when setting CONFIG_STATIC=n or when removing the 
-Wl,--gc-sections.

Thanks, that fix my problem.
> If not, please send me your .config.
> --
> vda
>
>
>   

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to