[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: compile with errors
From:       Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date:       2011-10-22 10:04:48
Message-ID: 1110221158140.1642 () somehost
[Download RAW message or body]

On Sat, 22 Oct 2011, Cristian Ionescu-Idbohrn wrote:
> On Sat, 22 Oct 2011, Parmenides wrote:
> > 2011/10/22 Denys Vlasenko <vda.linux@googlemail.com>:
> > > 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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic