[Bug 4838] New: miscutils/ubi_tools.c fails to compile against linux headers

bugzilla at busybox.net bugzilla at busybox.net
Fri Mar 2 23:44:15 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=4838

           Summary: miscutils/ubi_tools.c fails to compile against linux
                    headers
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: rwalker at rwalker.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Note really a BusyBox bug.

Linux headers on my Ubuntu box (11.10) use __packed, which isn't defined.

[rwalker at ruffian busybox]$ apt-cache show linux-libc-dev
Package: linux-libc-dev
Priority: optional
Section: devel
Installed-Size: 4584
Maintainer: Ubuntu Kernel Team <kernel-team at lists.ubuntu.com>
Architecture: amd64
Source: linux
Version: 3.0.0-12.20
...

BusyBox defconfig build fails with:

[rwalker at ruffian busybox]$ make
  CC      miscutils/ubi_tools.o
In file included from miscutils/ubi_tools.c:63:
/usr/include/mtd/ubi-user.h:329: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:313: note: previous declaration of ‘__packed’ was
here
/usr/include/mtd/ubi-user.h:371: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:313: note: previous declaration of ‘__packed’ was
here
/usr/include/mtd/ubi-user.h:386: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:313: note: previous declaration of ‘__packed’ was
here
/usr/include/mtd/ubi-user.h:398: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:313: note: previous declaration of ‘__packed’ was
here
/usr/include/mtd/ubi-user.h:412: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:313: note: previous declaration of ‘__packed’ was
here
make[1]: *** [miscutils/ubi_tools.o] Error 1
make: *** [miscutils] Error 2

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list