* [Buildroot] Small building issue busybox-1.14.4 with linux kernel 2.6.32
@ 2009-12-04 11:04 Emmanuel Blot
2009-12-04 11:44 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Blot @ 2009-12-04 11:04 UTC (permalink / raw)
To: buildroot
Hi all,
I'm not sure if it's a real bug or if I did something wrong, but
busybox fails to build with the latest linux kernel, because of a
missing type definition:
(from git buildroot repository)
The actual error is:
make[1]: Entering directory `buildroot/output/build/busybox-1.14.4'
CC miscutils/eject.o
In file included from miscutils/eject.c:31:
buildroot/output/toolchain/linux/include/scsi/scsi.h:148: error:
expected specifier-qualifier-list before 'u8'
buildroot/output/toolchain/linux/include/scsi/scsi.h: In function
'scsi_varlen_cdb_length':
buildroot/output/toolchain/linux/include/scsi/scsi.h:159: error:
'struct scsi_varlen_cdb_hdr' has no member named
'additional_cdb_length'
make[2]: *** [miscutils/eject.o] Error 1
scsi.h inclusion list does not seem to define the "u8" type.
A quick workaround is to define this type in the eject.c file (see
below), but I guess it's not a proper fix.
--- output/build/busybox-1.14.4/miscutils/eject.c.old 2009-12-04
11:56:34.000000000 +0100
+++ output/build/busybox-1.14.4/miscutils/eject.c 2009-12-04
11:47:02.000000000 +0100
@@ -26,6 +26,8 @@
/* Code taken from the original eject (http://eject.sourceforge.net/),
* refactored it a bit for busybox (ne-bb at nicoerfurth.de) */
+#include <stdint.h>
+typedef uint8_t u8;
#include <scsi/sg.h>
#include <scsi/scsi.h>
Cheers,
Manu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-04 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 11:04 [Buildroot] Small building issue busybox-1.14.4 with linux kernel 2.6.32 Emmanuel Blot
2009-12-04 11:44 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox