[BusyBox] compile sh.c with uClibc broken

Manuel Novoa III mnovoa3 at bellsouth.net
Wed Mar 14 23:49:46 UTC 2001


Andreas,

On Wed, 14 Mar 2001, Andreas Neuhaus wrote:
> ok, finally i found it...
> 
> sh.c uses an int named "index" in several functions, but uClibc/string.h
> line 66 shows:
> #define index strchr
> 
> whoops, of course that won't work... a fix would be either to rename all
> variables "index" to something else, or to #undef index. i choose the second
> method:

Yes.  I found this and emailed Erik about it this morning, but haven't had time
to fix it today.  In fact, I may not have any time to work on uClibc until
Friday.  A real quick fix for now is to just put an "#undef index" in sh.c
after the in #includes.

Manuel





More information about the busybox mailing list