Compile error for latest snapshot(20110328)

Baruch Siach baruch at tkos.co.il
Mon Mar 28 19:07:40 UTC 2011


Hi Sergey,

On Mon, Mar 28, 2011 at 07:35:18PM +0400, Sergey Gusarov wrote:
> Hi All
> 
> sergey at host15:/tmp/busybox$ make
>   CC      miscutils/ubi_attach_detach.o
> miscutils/ubi_attach_detach.c: In function 'ubi_tools_main':
> miscutils/ubi_attach_detach.c:120: error: 'UBI_DEV_NUM_AUTO'
> undeclared (first use in this function)
> miscutils/ubi_attach_detach.c:120: error: (Each undeclared identifier
> is reported only once
> miscutils/ubi_attach_detach.c:120: error: for each function it appears in.)
> miscutils/ubi_attach_detach.c:140: error: storage size of 'req' isn't known
> miscutils/ubi_attach_detach.c:148: error: 'UBI_IOCATT' undeclared
> (first use in this function)
> miscutils/ubi_attach_detach.c:140: warning: unused variable 'req'
> miscutils/ubi_attach_detach.c:154: error: 'UBI_IOCDET' undeclared
> (first use in this function)
> make[1]: *** [miscutils/ubi_attach_detach.o] Error 1
> make: *** [miscutils] Error 2

The kernel headers of your toolchain seem to be quite old. These symbols are 
in the mtd/ubi-user.h header since kernel version 2.6.25.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the busybox mailing list