Busybox build problem

Denis Vlasenko vda.linux at googlemail.com
Sat Feb 17 15:54:40 UTC 2007


On Saturday 17 February 2007 03:49, Ravi Chemudugunta wrote:
> # make allnoconfig; make
> 
>   LINK    busybox_unstripped
> /home/brion/busybox-1.4.1/scripts/trylink: 5: function: not found
> /home/brion/busybox-1.4.1/scripts/trylink: 11: Syntax error: "}" unexpected
> make: *** [busybox_unstripped] Error 2
> 
> This error occurs on *ubuntu due to the use of dash as the default
> shell (sh->dash).  the scripts included were designed with bash which
> uses some non-posix extensions which dash strives to meet
> (posix-ness).
> 
> cd /bin
> rm sh
> ln -s bash sh
> 
> The reason for including dash is speed so your system might boot
> slower or not at all.

I applaud ubuntu's efforts of trying to use smaller shell.
Really. bash is too big for any sensible embedded system.

Unfortunately it means that fixing just busybox's stripts
is not a solution - there are tons of other shell scripts
lying aroung.

dash should support "function". It shouldn't be too hard - 
dash already supports

do_something () {
    ...
}

It's just a matter of recognizing slightly diffeent syntax:

function do_something {
    ...
}

--
vda



More information about the busybox mailing list