bug#1198: [BusyBox] bug#1198: BusyBox: vi readonly does not compile

Matt Kraai kraai at alumni.carnegiemellon.edu
Tue Jul 31 09:15:02 UTC 2001


On Tue, Jul 31, 2001 at 04:04:52PM +0200, Joost Voorhaar wrote:
> When I try to compile busybox with vi support, the file "vi.c" won't
> compile:
> 
> $ make
> ...
> gcc -I- -Wall -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE  -DBB_VER='"0.
> 52"'
>  -DBB_BT='"2001.07.31-13:55+0000"' -DUSE_SYSTEM_PWD_GRP  -I.  -c vi.c -o
> vi.o
> vi.c: In function `colon':
> vi.c:1985: `readonly' undeclared (first use in this function)
> vi.c:1985: (Each undeclared identifier is reported only once
> vi.c:1985: for each function it appears in.)
> make: *** [vi.o] Error 1
> ...
> 
> I configured in Config.h:
> 
> // features for vi
> #define BB_FEATURE_VI_COLON     // ":" colon commands, no "ex" mode
> #define BB_FEATURE_VI_YANKMARK      // Yank/Put commands and Mark cmds
> #define BB_FEATURE_VI_SEARCH        // search and replace cmds
> #define BB_FEATURE_VI_USE_SIGNALS   // catch signals
> #define BB_FEATURE_VI_DOT_CMD       // remember previous cmd and "." cmd
> //#define BB_FEATURE_VI_READONLY        // vi -R and "view" mode
> #define BB_FEATURE_VI_SETOPTS       // set-able options,  ai ic showmatch
> #define BB_FEATURE_VI_SET       // :set
> //#define BB_FEATURE_VI_WIN_RESIZE  // handle window resize
> 
> The reason is fialry obvious: readonly status is taken from the file status
> and should be available regardless of BB_FEATURE_VI_READONLY.

I just fixed this in CVS.  This can be closed with the next
release.

Matt






More information about the busybox mailing list