On Sat, 22 Oct 2011, Cristian Ionescu-Idbohrn wrote:
> On Sat, 22 Oct 2011, Parmenides wrote:
> > 2011/10/22 Denys Vlasenko <[email protected]>:
> > > But kernel HEADERS are not.
> >
> > I have installed the kernel headers by executing
> >
> >                   make headers_install
> >
> > command within the top level directory of kernel source. Then, I went
> > back to compile busybox and the above problem remains.
>
> Inspired of:
>
>       http://lkml.org/lkml/2011/6/12/9
>
> one way to resolve that could be:
>
> --- a/miscutils/ubi_tools.c
> +++ b/miscutils/ubi_tools.c
> @@ -60,6 +60,10 @@
>  //kbuild:lib-$(CONFIG_UBIUPDATEVOL) += ubi_tools.o
>
>  #include "libbb.h"
> +
> +#ifndef __packed
> +#define __packed __attribute__((packed))
> +#endif
>  #include <mtd/ubi-user.h>
>
>  #define OPTION_M  (1 << 0)

Crap.  Just ignore me.  The above is a solution for another error:

/usr/include/mtd/ubi-user.h:329:3: error: conflicting types for '__packed'
/usr/include/mtd/ubi-user.h:371:3: error: conflicting types for '__packed'
/usr/include/mtd/ubi-user.h:386:3: error: conflicting types for '__packed'
/usr/include/mtd/ubi-user.h:398:3: error: conflicting types for '__packed'
/usr/include/mtd/ubi-user.h:412:4: error: conflicting types for '__packed'
/usr/include/mtd/ubi-user.h:313:3: note: previous declaration of '__packed' was 
here


Cheers,

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

Reply via email to