Messages in this thread Patch in this message | | | Date | Sat, 3 Sep 2005 11:27:08 +0200 | From | Harald Welte <> | Subject | [PATCH] usbdevice_fs header breakage |
| |
On my x86_64 box, If I don't apply the following patch, I fail to compile any userspace application that includes usbdevice_fs.h (see attached compiler errors from trying to compile openct).
linux/compat.h includes asm/compat.h asm-x86_64/compat.h includes linux/sched.h linux/sched.h includes linux/timex.h and linux/timex.h re-defines glibc types such as "struct timeval"
I'm not sure whether this fix is the correct way/place to fix the issue. Actually, it seems wrong to me, since usbdevice_fs.h doesn't include config.h but uses CONFIG_COMPAT. So somebody who understands the code, please clean this up.
[USBDEVFS] fix inclusion of <linux/compat.h> to avoud header mess
Without moving the include of compat.h down, userspace programs that use usbdevice_fs.h end up including half the kernel includes (and eventually fail to compile).
Signed-off-by: Harald Welte <laforge@netfilter.org>
--- commit 6066d9bc752ad495d7a8966a9629a26d949588ed tree 054e3fbee4c56a1e8d6a365f0722d7db7e01e2e2 parent a2c9c9a399f2069f31d608d142da8d5d82609b0d author Harald Welte <laforge@netfilter.org> Sa, 03 Sep 2005 11:08:53 +0200 committer Harald Welte <laforge@netfilter.org> Sa, 03 Sep 2005 11:08:53 +0200
include/linux/usbdevice_fs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/usbdevice_fs.h b/include/linux/usbdevice_fs.h --- a/include/linux/usbdevice_fs.h +++ b/include/linux/usbdevice_fs.h @@ -32,7 +32,6 @@ #define _LINUX_USBDEVICE_FS_H #include <linux/types.h> -#include <linux/compat.h> /* --------------------------------------------------------------------- */ @@ -125,6 +124,7 @@ struct usbdevfs_hub_portinfo { }; #ifdef CONFIG_COMPAT +#include <linux/compat.h> struct usbdevfs_urb32 { unsigned char type; unsigned char endpoint; -- - Harald Welte <laforge@gnumonks.org> http://gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)In file included from /usr/include/linux/timex.h:58, from /usr/include/linux/sched.h:11, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/time.h:12: error: redefinition of ‘struct timespec’ /usr/include/linux/time.h:18: error: redefinition of ‘struct timeval’ /usr/include/linux/time.h:23: error: redefinition of ‘struct timezone’ /usr/include/linux/time.h:147: error: redefinition of ‘struct itimerval’ In file included from /usr/include/linux/spinlock.h:16, from /usr/include/linux/seqlock.h:30, from /usr/include/asm/vsyscall.h:4, from /usr/include/asm/timex.h:12, from /usr/include/linux/timex.h:61, from /usr/include/linux/sched.h:11, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm/processor.h:185: error: syntax error before ‘u16’ /usr/include/asm/processor.h:187: error: syntax error before ‘twd’ /usr/include/asm/processor.h:188: error: syntax error before ‘fop’ /usr/include/asm/processor.h:189: error: syntax error before ‘rip’ /usr/include/asm/processor.h:190: error: syntax error before ‘rdp’ /usr/include/asm/processor.h:191: error: syntax error before ‘mxcsr’ /usr/include/asm/processor.h:192: error: syntax error before ‘mxcsr_mask’ /usr/include/asm/processor.h:193: error: syntax error before ‘st_space’ /usr/include/asm/processor.h:194: error: syntax error before ‘xmm_space’ /usr/include/asm/processor.h:195: error: syntax error before ‘padding’ /usr/include/asm/processor.h:196: error: syntax error before ‘}’ token /usr/include/asm/processor.h:199: error: field ‘fxsave’ has incomplete type /usr/include/asm/processor.h:203: error: syntax error before ‘u32’ /usr/include/asm/processor.h:205: error: syntax error before ‘rsp1’ /usr/include/asm/processor.h:206: error: syntax error before ‘rsp2’ /usr/include/asm/processor.h:207: error: syntax error before ‘reserved2’ /usr/include/asm/processor.h:208: error: syntax error before ‘ist’ /usr/include/asm/processor.h:209: error: syntax error before ‘reserved3’ /usr/include/asm/processor.h:210: error: syntax error before ‘reserved4’ /usr/include/asm/processor.h:211: error: syntax error before ‘reserved5’ /usr/include/asm/processor.h:212: error: syntax error before ‘io_bitmap_base’ /usr/include/asm/processor.h:223: error: syntax error before ‘}’ token /usr/include/asm/processor.h:254: error: syntax error before ‘u64’ /usr/include/asm/processor.h: In function ‘prefetchw’: /usr/include/asm/processor.h:404: error: called object ‘"r"’ is not a function In file included from /usr/include/asm/div64.h:1, from /usr/include/linux/jiffies.h:9, from /usr/include/linux/sched.h:12, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm-generic/div64.h:54:3: error: #error do_div() does not yet support the C64 In file included from /usr/include/linux/sched.h:12, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/jiffies.h: At top level: /usr/include/linux/jiffies.h:84: error: syntax error before ‘jiffies_64’ /usr/include/linux/jiffies.h:88: error: syntax error before ‘get_jiffies_64’ /usr/include/linux/jiffies.h: In function ‘timespec_to_jiffies’: /usr/include/linux/jiffies.h:320: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:320: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:320: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h:320: error: (Each undeclared identifier is reported only once /usr/include/linux/jiffies.h:320: error: for each function it appears in.) /usr/include/linux/jiffies.h:321: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:321: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:324: error: syntax error before ‘sec’ /usr/include/linux/jiffies.h:324: error: syntax error before ‘NSEC_PER_SEC’ /usr/include/linux/jiffies.h:324: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:324: error: syntax error before ‘)’ token /usr/include/linux/jiffies.h: In function ‘jiffies_to_timespec’: /usr/include/linux/jiffies.h:337: error: syntax error before ‘nsec’ /usr/include/linux/jiffies.h:338: error: syntax error before ‘result’ /usr/include/linux/jiffies.h:338: error: ‘result’ undeclared (first use in this function) /usr/include/linux/jiffies.h:338: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h: In function ‘timeval_to_jiffies’: /usr/include/linux/jiffies.h:359: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:359: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:359: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h:360: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:360: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:363: error: syntax error before ‘sec’ /usr/include/linux/jiffies.h:363: error: syntax error before ‘NSEC_PER_SEC’ /usr/include/linux/jiffies.h:363: error: called object ‘u64’ is not a function /usr/include/linux/jiffies.h:363: error: syntax error before ‘)’ token /usr/include/linux/jiffies.h: In function ‘jiffies_to_timeval’: /usr/include/linux/jiffies.h:375: error: syntax error before ‘nsec’ /usr/include/linux/jiffies.h:376: error: syntax error before ‘result’ /usr/include/linux/jiffies.h:376: error: ‘result’ undeclared (first use in this function) /usr/include/linux/jiffies.h:376: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h:377: error: ‘NSEC_PER_USEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h: At top level: /usr/include/linux/jiffies.h:383: error: syntax error before ‘jiffies_to_clock_t’ In file included from /usr/include/linux/sched.h:12, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/jiffies.h:385:41: error: division by zero in #if /usr/include/linux/jiffies.h:385:42: error: division by zero in #if /usr/include/linux/jiffies.h: In function ‘jiffies_to_clock_t’: /usr/include/linux/jiffies.h:388: error: syntax error before ‘tmp’ /usr/include/linux/jiffies.h:389: error: ‘tmp’ undeclared (first use in this function) /usr/include/linux/jiffies.h:389: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h:389: error: ‘USER_HZ’ undeclared (first use in this function) /usr/include/linux/jiffies.h:396:18: error: division by zero in #if /usr/include/linux/jiffies.h: In function ‘clock_t_to_jiffies’: /usr/include/linux/jiffies.h:401: error: syntax error before ‘jif’ /usr/include/linux/jiffies.h:404: error: ‘USER_HZ’ undeclared (first use in this function) /usr/include/linux/jiffies.h:408: error: ‘jif’ undeclared (first use in this function) /usr/include/linux/jiffies.h:408: error: syntax error before numeric constant /usr/include/linux/jiffies.h: At top level: /usr/include/linux/jiffies.h:414: error: syntax error before ‘jiffies_64_to_clock_t’ /usr/include/linux/jiffies.h:414: error: syntax error before ‘x’ /usr/include/linux/jiffies.h:416:41: error: division by zero in #if /usr/include/linux/jiffies.h:416:42: error: division by zero in #if /usr/include/linux/jiffies.h: In function ‘jiffies_64_to_clock_t’: /usr/include/linux/jiffies.h:424: error: ‘x’ undeclared (first use in this function) /usr/include/linux/jiffies.h:425: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h:425: error: ‘USER_HZ’ undeclared (first use in this function) /usr/include/linux/jiffies.h: At top level: /usr/include/linux/jiffies.h:430: error: syntax error before ‘nsec_to_clock_t’ /usr/include/linux/jiffies.h:430: error: syntax error before ‘x’ /usr/include/linux/jiffies.h:432:28: error: division by zero in #if /usr/include/linux/jiffies.h: In function ‘nsec_to_clock_t’: /usr/include/linux/jiffies.h:433: error: ‘x’ undeclared (first use in this function) /usr/include/linux/jiffies.h:433: error: ‘NSEC_PER_SEC’ undeclared (first use in this function) /usr/include/linux/jiffies.h:433: error: ‘USER_HZ’ undeclared (first use in this function) In file included from /usr/include/linux/cpumask.h:82, from /usr/include/linux/sched.h:15, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/bitmap.h: In function ‘bitmap_zero’: /usr/include/linux/bitmap.h:119: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_fill’: /usr/include/linux/bitmap.h:134: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_copy’: /usr/include/linux/bitmap.h:140: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_and’: /usr/include/linux/bitmap.h:151: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_or’: /usr/include/linux/bitmap.h:160: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_xor’: /usr/include/linux/bitmap.h:169: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_andnot’: /usr/include/linux/bitmap.h:178: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_complement’: /usr/include/linux/bitmap.h:187: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_equal’: /usr/include/linux/bitmap.h:196: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_intersects’: /usr/include/linux/bitmap.h:205: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_subset’: /usr/include/linux/bitmap.h:214: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_empty’: /usr/include/linux/bitmap.h:222: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_full’: /usr/include/linux/bitmap.h:230: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_shift_right’: /usr/include/linux/bitmap.h:244: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/include/linux/bitmap.h: In function ‘bitmap_shift_left’: /usr/include/linux/bitmap.h:253: error: ‘BITS_PER_LONG’ undeclared (first use in this function) In file included from /usr/include/linux/sched.h:15, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:85: error: syntax error before ‘DECLARE_BITMAP’ /usr/include/linux/cpumask.h:86: error: syntax error before ‘_unused_cpumask_arg_’ /usr/include/linux/cpumask.h:89: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpu_set’: /usr/include/linux/cpumask.h:91: error: ‘cpu’ undeclared (first use in this function) /usr/include/linux/cpumask.h:91: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:95: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpu_clear’: /usr/include/linux/cpumask.h:97: error: ‘cpu’ undeclared (first use in this function) /usr/include/linux/cpumask.h:97: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:101: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_setall’: /usr/include/linux/cpumask.h:103: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:103: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:107: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_clear’: /usr/include/linux/cpumask.h:109: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:109: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:116: error: syntax error before ‘cpumask_t’ /usr/include/linux/cpumask.h: In function ‘__cpu_test_and_set’: /usr/include/linux/cpumask.h:118: error: ‘cpu’ undeclared (first use in this function) /usr/include/linux/cpumask.h:118: error: ‘addr’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:122: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_and’: /usr/include/linux/cpumask.h:125: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:125: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:125: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:125: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:129: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_or’: /usr/include/linux/cpumask.h:132: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:132: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:132: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:132: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:136: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_xor’: /usr/include/linux/cpumask.h:139: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:139: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:139: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:139: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:144: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_andnot’: /usr/include/linux/cpumask.h:147: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:147: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:147: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:147: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:151: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_complement’: /usr/include/linux/cpumask.h:154: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:154: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:154: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:158: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_equal’: /usr/include/linux/cpumask.h:161: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:161: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:161: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:165: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_intersects’: /usr/include/linux/cpumask.h:168: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:168: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:168: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:172: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_subset’: /usr/include/linux/cpumask.h:175: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:175: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/cpumask.h:175: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:179: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_empty’: /usr/include/linux/cpumask.h:181: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:181: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:185: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_full’: /usr/include/linux/cpumask.h:187: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:187: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:191: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_weight’: /usr/include/linux/cpumask.h:193: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:193: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:198: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_shift_right’: /usr/include/linux/cpumask.h:201: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:201: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:201: error: ‘n’ undeclared (first use in this function) /usr/include/linux/cpumask.h:201: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:206: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpus_shift_left’: /usr/include/linux/cpumask.h:209: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:209: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:209: error: ‘n’ undeclared (first use in this function) /usr/include/linux/cpumask.h:209: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:213: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__first_cpu’: /usr/include/linux/cpumask.h:215: error: syntax error before ‘int’ /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:219: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__next_cpu’: /usr/include/linux/cpumask.h:221: error: syntax error before ‘int’ /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:270: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpumask_scnprintf’: /usr/include/linux/cpumask.h:272: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/cpumask.h:272: error: ‘len’ undeclared (first use in this function) /usr/include/linux/cpumask.h:272: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:272: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:278: error: syntax error before ‘cpumask_t’ /usr/include/linux/cpumask.h: In function ‘__cpumask_parse’: /usr/include/linux/cpumask.h:280: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/cpumask.h:280: error: ‘len’ undeclared (first use in this function) /usr/include/linux/cpumask.h:280: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:280: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:286: error: syntax error before ‘*’ token /usr/include/linux/cpumask.h: In function ‘__cpulist_scnprintf’: /usr/include/linux/cpumask.h:288: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/cpumask.h:288: error: ‘len’ undeclared (first use in this function) /usr/include/linux/cpumask.h:288: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:288: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:292: error: syntax error before ‘cpumask_t’ /usr/include/linux/cpumask.h: In function ‘__cpulist_parse’: /usr/include/linux/cpumask.h:294: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/cpumask.h:294: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/cpumask.h:294: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/cpumask.h: At top level: /usr/include/linux/cpumask.h:362: error: syntax error before ‘cpu_possible_map’ /usr/include/linux/cpumask.h:363: error: syntax error before ‘cpu_online_map’ /usr/include/linux/cpumask.h:364: error: syntax error before ‘cpu_present_map’ In file included from /usr/include/linux/sched.h:17, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/nodemask.h:85: error: syntax error before ‘DECLARE_BITMAP’ /usr/include/linux/nodemask.h:86: error: syntax error before ‘_unused_nodemask_arg_’ /usr/include/linux/nodemask.h:89: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__node_set’: /usr/include/linux/nodemask.h:91: error: ‘node’ undeclared (first use in this function) /usr/include/linux/nodemask.h:91: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:95: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__node_clear’: /usr/include/linux/nodemask.h:97: error: ‘node’ undeclared (first use in this function) /usr/include/linux/nodemask.h:97: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:101: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_setall’: /usr/include/linux/nodemask.h:103: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:103: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:107: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_clear’: /usr/include/linux/nodemask.h:109: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:109: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:117: error: syntax error before ‘nodemask_t’ /usr/include/linux/nodemask.h: In function ‘__node_test_and_set’: /usr/include/linux/nodemask.h:119: error: ‘node’ undeclared (first use in this function) /usr/include/linux/nodemask.h:119: error: ‘addr’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:124: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_and’: /usr/include/linux/nodemask.h:127: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:127: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:127: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:127: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:132: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_or’: /usr/include/linux/nodemask.h:135: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:135: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:135: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:135: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:140: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_xor’: /usr/include/linux/nodemask.h:143: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:143: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:143: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:143: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:148: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_andnot’: /usr/include/linux/nodemask.h:151: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:151: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:151: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:151: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:156: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_complement’: /usr/include/linux/nodemask.h:159: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:159: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:159: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:164: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_equal’: /usr/include/linux/nodemask.h:167: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:167: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:167: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:172: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_intersects’: /usr/include/linux/nodemask.h:175: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:175: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:175: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:180: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_subset’: /usr/include/linux/nodemask.h:183: error: ‘src1p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:183: error: ‘src2p’ undeclared (first use in this function) /usr/include/linux/nodemask.h:183: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:187: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_empty’: /usr/include/linux/nodemask.h:189: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:189: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:193: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_full’: /usr/include/linux/nodemask.h:195: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:195: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:199: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_weight’: /usr/include/linux/nodemask.h:201: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:201: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:206: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_shift_right’: /usr/include/linux/nodemask.h:209: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:209: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:209: error: ‘n’ undeclared (first use in this function) /usr/include/linux/nodemask.h:209: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:214: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodes_shift_left’: /usr/include/linux/nodemask.h:217: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:217: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:217: error: ‘n’ undeclared (first use in this function) /usr/include/linux/nodemask.h:217: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:224: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__first_node’: /usr/include/linux/nodemask.h:226: error: syntax error before ‘int’ /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:230: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__next_node’: /usr/include/linux/nodemask.h:232: error: syntax error before ‘int’ /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:248: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__first_unset_node’: /usr/include/linux/nodemask.h:250: error: syntax error before ‘int’ /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:283: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodemask_scnprintf’: /usr/include/linux/nodemask.h:285: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/nodemask.h:285: error: ‘len’ undeclared (first use in this function) /usr/include/linux/nodemask.h:285: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:285: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:291: error: syntax error before ‘nodemask_t’ /usr/include/linux/nodemask.h: In function ‘__nodemask_parse’: /usr/include/linux/nodemask.h:293: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/nodemask.h:293: error: ‘len’ undeclared (first use in this function) /usr/include/linux/nodemask.h:293: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:293: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:299: error: syntax error before ‘*’ token /usr/include/linux/nodemask.h: In function ‘__nodelist_scnprintf’: /usr/include/linux/nodemask.h:301: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/nodemask.h:301: error: ‘len’ undeclared (first use in this function) /usr/include/linux/nodemask.h:301: error: ‘srcp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:301: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:305: error: syntax error before ‘nodemask_t’ /usr/include/linux/nodemask.h: In function ‘__nodelist_parse’: /usr/include/linux/nodemask.h:307: error: ‘buf’ undeclared (first use in this function) /usr/include/linux/nodemask.h:307: error: ‘dstp’ undeclared (first use in this function) /usr/include/linux/nodemask.h:307: error: ‘nbits’ undeclared (first use in this function) /usr/include/linux/nodemask.h: At top level: /usr/include/linux/nodemask.h:326: error: syntax error before ‘node_online_map’ /usr/include/linux/nodemask.h:327: error: syntax error before ‘node_possible_map’ In file included from /usr/include/linux/sched.h:23, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm/mmu.h:17: error: field ‘sem’ has incomplete type In file included from /usr/include/asm/cputime.h:4, from /usr/include/linux/sched.h:24, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm-generic/cputime.h:23: error: syntax error before ‘cputime64_t’ In file included from /usr/include/linux/signal.h:4, from /usr/include/linux/sched.h:28, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/list.h:770:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/include/linux/signal.h:6, from /usr/include/linux/sched.h:28, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm/signal.h:35: error: conflicting types for ‘sigset_t’ /usr/include/sys/select.h:38: error: previous declaration of ‘sigset_t’ was here In file included from /usr/include/asm/siginfo.h:6, from /usr/include/linux/signal.h:7, from /usr/include/linux/sched.h:28, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm-generic/siginfo.h:75: error: syntax error before ‘clock_t’ /usr/include/asm-generic/siginfo.h:92: error: syntax error before ‘}’ token /usr/include/asm-generic/siginfo.h:93: error: syntax error before ‘}’ token In file included from /usr/include/linux/sched.h:32, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/completion.h:15: error: syntax error before ‘wait_queue_head_t’ /usr/include/linux/completion.h: In function ‘init_completion’: /usr/include/linux/completion.h:26: error: dereferencing pointer to incomplete type /usr/include/linux/completion.h:27: error: dereferencing pointer to incomplete type In file included from /usr/include/linux/sched.h:33, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/pid.h: At top level: /usr/include/linux/pid.h:17: error: field ‘pid_chain’ has incomplete type /usr/include/linux/pid.h:19: error: field ‘pid_list’ has incomplete type In file included from /usr/include/linux/sched.h:34, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/percpu.h: In function ‘__alloc_percpu’: /usr/include/linux/percpu.h:45: error: ‘GFP_KERNEL’ undeclared (first use in this function) In file included from /usr/include/linux/sched.h:36, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/seccomp.h: In function ‘secure_computing’: /usr/include/linux/seccomp.h:18: error: ‘TIF_SECCOMP’ undeclared (first use in this function) /usr/include/linux/seccomp.h: In function ‘has_secure_computing’: /usr/include/linux/seccomp.h:24: error: ‘TIF_SECCOMP’ undeclared (first use in this function) In file included from /usr/include/linux/sched.h:104, from /usr/include/asm/compat.h:8, from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/timer.h: At top level: /usr/include/linux/timer.h:12: error: field ‘entry’ has incomplete type In file included from /usr/include/linux/compat.h:15, from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/asm/compat.h:12: error: syntax error before ‘compat_size_t’ /usr/include/asm/compat.h:13: error: syntax error before ‘compat_ssize_t’ /usr/include/asm/compat.h:14: error: syntax error before ‘compat_time_t’ /usr/include/asm/compat.h:15: error: syntax error before ‘compat_clock_t’ /usr/include/asm/compat.h:16: error: syntax error before ‘compat_pid_t’ /usr/include/asm/compat.h:17: error: syntax error before ‘compat_uid_t’ /usr/include/asm/compat.h:18: error: syntax error before ‘compat_gid_t’ /usr/include/asm/compat.h:19: error: syntax error before ‘compat_uid32_t’ /usr/include/asm/compat.h:20: error: syntax error before ‘compat_gid32_t’ /usr/include/asm/compat.h:21: error: syntax error before ‘compat_mode_t’ /usr/include/asm/compat.h:22: error: syntax error before ‘compat_ino_t’ /usr/include/asm/compat.h:23: error: syntax error before ‘compat_dev_t’ /usr/include/asm/compat.h:24: error: syntax error before ‘compat_off_t’ /usr/include/asm/compat.h:25: error: syntax error before ‘compat_loff_t’ /usr/include/asm/compat.h:26: error: syntax error before ‘compat_nlink_t’ /usr/include/asm/compat.h:27: error: syntax error before ‘compat_ipc_pid_t’ /usr/include/asm/compat.h:28: error: syntax error before ‘compat_daddr_t’ /usr/include/asm/compat.h:29: error: syntax error before ‘compat_caddr_t’ /usr/include/asm/compat.h:31: error: syntax error before ‘compat_timer_t’ /usr/include/asm/compat.h:32: error: syntax error before ‘compat_key_t’ /usr/include/asm/compat.h:34: error: syntax error before ‘compat_int_t’ /usr/include/asm/compat.h:35: error: syntax error before ‘compat_long_t’ /usr/include/asm/compat.h:36: error: syntax error before ‘compat_uint_t’ /usr/include/asm/compat.h:37: error: syntax error before ‘compat_ulong_t’ /usr/include/asm/compat.h:40: error: syntax error before ‘compat_time_t’ /usr/include/asm/compat.h:45: error: syntax error before ‘compat_time_t’ /usr/include/asm/compat.h:50: error: syntax error before ‘compat_dev_t’ /usr/include/asm/compat.h:52: error: syntax error before ‘st_ino’ /usr/include/asm/compat.h:53: error: syntax error before ‘st_mode’ /usr/include/asm/compat.h:54: error: syntax error before ‘st_nlink’ /usr/include/asm/compat.h:55: error: syntax error before ‘st_uid’ /usr/include/asm/compat.h:56: error: syntax error before ‘st_gid’ /usr/include/asm/compat.h:57: error: syntax error before ‘st_rdev’ /usr/include/asm/compat.h:58: error: syntax error before ‘__pad2’ /usr/include/asm/compat.h:59: error: syntax error before ‘st_size’ /usr/include/asm/compat.h:60: error: syntax error before ‘st_blksize’ /usr/include/asm/compat.h:61: error: syntax error before ‘st_blocks’ /usr/include/asm/compat.h:62: error: syntax error before ‘st_atime’ /usr/include/asm/compat.h:63: error: syntax error before ‘st_atime_nsec’ /usr/include/asm/compat.h:64: error: syntax error before ‘st_mtime’ /usr/include/asm/compat.h:65: error: syntax error before ‘st_mtime_nsec’ /usr/include/asm/compat.h:66: error: syntax error before ‘st_ctime’ /usr/include/asm/compat.h:67: error: syntax error before ‘st_ctime_nsec’ /usr/include/asm/compat.h:68: error: syntax error before ‘__unused4’ /usr/include/asm/compat.h:69: error: syntax error before ‘__unused5’ /usr/include/asm/compat.h:75: error: syntax error before ‘compat_off_t’ /usr/include/asm/compat.h:77: error: syntax error before ‘l_pid’ /usr/include/asm/compat.h:91: error: syntax error before ‘compat_loff_t’ /usr/include/asm/compat.h:93: error: syntax error before ‘l_pid’ /usr/include/asm/compat.h:113: error: syntax error before ‘compat_old_sigset_t’ /usr/include/asm/compat.h:118: error: syntax error before ‘compat_sigset_word’ /usr/include/asm/compat.h:124: error: syntax error before ‘compat_key_t’ /usr/include/asm/compat.h:126: error: syntax error before ‘gid’ /usr/include/asm/compat.h:127: error: syntax error before ‘cuid’ /usr/include/asm/compat.h:128: error: syntax error before ‘cgid’ /usr/include/asm/compat.h:130: error: conflicting types for ‘__pad1’ /usr/include/asm/compat.h:51: error: previous declaration of ‘__pad1’ was here /usr/include/asm/compat.h:132: error: conflicting types for ‘__pad2’ /usr/include/asm/compat.h:58: error: previous declaration of ‘__pad2’ was here /usr/include/asm/compat.h:133: error: syntax error before ‘unused1’ /usr/include/asm/compat.h:134: error: syntax error before ‘unused2’ /usr/include/asm/compat.h:138: error: field ‘sem_perm’ has incomplete type /usr/include/asm/compat.h:139: error: syntax error before ‘compat_time_t’ /usr/include/asm/compat.h:141: error: syntax error before ‘sem_ctime’ /usr/include/asm/compat.h:142: error: syntax error before ‘__unused2’ /usr/include/asm/compat.h:143: error: syntax error before ‘sem_nsems’ /usr/include/asm/compat.h:144: error: syntax error before ‘__unused3’ /usr/include/asm/compat.h:145: error: syntax error before ‘__unused4’ /usr/include/asm/compat.h:149: error: field ‘msg_perm’ has incomplete type /usr/include/asm/compat.h:150: error: syntax error before ‘compat_time_t’ /usr/include/asm/compat.h:152: error: syntax error before ‘msg_rtime’ /usr/include/asm/compat.h:153: error: syntax error before ‘__unused2’ /usr/include/asm/compat.h:154: error: syntax error before ‘msg_ctime’ /usr/include/asm/compat.h:155: error: syntax error before ‘__unused3’ /usr/include/asm/compat.h:156: error: syntax error before ‘msg_cbytes’ /usr/include/asm/compat.h:157: error: syntax error before ‘msg_qnum’ /usr/include/asm/compat.h:158: error: syntax error before ‘msg_qbytes’ /usr/include/asm/compat.h:159: error: syntax error before ‘msg_lspid’ /usr/include/asm/compat.h:160: error: syntax error before ‘msg_lrpid’ /usr/include/asm/compat.h:161: error: syntax error before ‘__unused4’ /usr/include/asm/compat.h:162: error: syntax error before ‘__unused5’ /usr/include/asm/compat.h:166: error: field ‘shm_perm’ has incomplete type /usr/include/asm/compat.h:167: error: syntax error before ‘compat_size_t’ /usr/include/asm/compat.h:169: error: syntax error before ‘__unused1’ /usr/include/asm/compat.h:170: error: syntax error before ‘shm_dtime’ /usr/include/asm/compat.h:171: error: syntax error before ‘__unused2’ /usr/include/asm/compat.h:172: error: syntax error before ‘shm_ctime’ /usr/include/asm/compat.h:173: error: syntax error before ‘__unused3’ /usr/include/asm/compat.h:174: error: syntax error before ‘shm_cpid’ /usr/include/asm/compat.h:175: error: syntax error before ‘shm_lpid’ /usr/include/asm/compat.h:176: error: syntax error before ‘shm_nattch’ /usr/include/asm/compat.h:177: error: syntax error before ‘__unused4’ /usr/include/asm/compat.h:178: error: syntax error before ‘__unused5’ /usr/include/asm/compat.h:187: error: syntax error before ‘compat_uptr_t’ /usr/include/asm/compat.h:189: error: syntax error before ‘uptr’ /usr/include/asm/compat.h: In function ‘compat_ptr’: /usr/include/asm/compat.h:191: error: ‘uptr’ undeclared (first use in this function) /usr/include/asm/compat.h: At top level: /usr/include/asm/compat.h:194: error: syntax error before ‘ptr_to_compat’ /usr/include/asm/compat.h: In function ‘ptr_to_compat’: /usr/include/asm/compat.h:196: error: ‘u32’ undeclared (first use in this function) /usr/include/asm/compat.h:196: error: syntax error before ‘unsigned’ /usr/include/asm/compat.h: In function ‘compat_alloc_user_space’: /usr/include/asm/compat.h:201: error: dereferencing pointer to incomplete type In file included from /usr/include/linux/usbdevice_fs.h:35, from sys-linux.c:15: /usr/include/linux/compat.h: At top level: /usr/include/linux/compat.h:24: error: field ‘it_interval’ has incomplete type /usr/include/linux/compat.h:25: error: field ‘it_value’ has incomplete type /usr/include/linux/compat.h:29: error: syntax error before ‘compat_time_t’ /usr/include/linux/compat.h:34: error: field ‘it_interval’ has incomplete type /usr/include/linux/compat.h:35: error: field ‘it_value’ has incomplete type /usr/include/linux/compat.h:39: error: syntax error before ‘compat_clock_t’ /usr/include/linux/compat.h:41: error: syntax error before ‘tms_cutime’ /usr/include/linux/compat.h:42: error: syntax error before ‘tms_cstime’ /usr/include/linux/compat.h:48: error: syntax error before ‘compat_sigset_word’ /usr/include/linux/compat.h:56: error: syntax error before ‘compat_uptr_t’ /usr/include/linux/compat.h:61: error: syntax error before ‘compat_ulong_t’ /usr/include/linux/compat.h:66: error: field ‘ru_utime’ has incomplete type /usr/include/linux/compat.h:67: error: field ‘ru_stime’ has incomplete type /usr/include/linux/compat.h:68: error: syntax error before ‘compat_long_t’ /usr/include/linux/compat.h:70: error: syntax error before ‘ru_idrss’ /usr/include/linux/compat.h:71: error: syntax error before ‘ru_isrss’ /usr/include/linux/compat.h:72: error: syntax error before ‘ru_minflt’ /usr/include/linux/compat.h:73: error: syntax error before ‘ru_majflt’ /usr/include/linux/compat.h:74: error: syntax error before ‘ru_nswap’ /usr/include/linux/compat.h:75: error: syntax error before ‘ru_inblock’ /usr/include/linux/compat.h:76: error: syntax error before ‘ru_oublock’ /usr/include/linux/compat.h:77: error: syntax error before ‘ru_msgsnd’ /usr/include/linux/compat.h:78: error: syntax error before ‘ru_msgrcv’ /usr/include/linux/compat.h:79: error: syntax error before ‘ru_nsignals’ /usr/include/linux/compat.h:80: error: syntax error before ‘ru_nvcsw’ /usr/include/linux/compat.h:81: error: syntax error before ‘ru_nivcsw’ /usr/include/linux/compat.h:88: error: syntax error before ‘compat_pid_t’ /usr/include/linux/compat.h:93: error: syntax error before ‘u32’ /usr/include/linux/compat.h:95: error: syntax error before ‘d_reclen’ /usr/include/linux/compat.h:97: error: syntax error before ‘}’ token /usr/include/linux/compat.h:100: error: syntax error before ‘compat_int_t’ /usr/include/linux/compat.h:107: error: syntax error before ‘compat_sigval_t’ /usr/include/linux/compat.h:109: error: syntax error before ‘sigev_notify’ /usr/include/linux/compat.h:111: error: syntax error before ‘compat_int_t’ /usr/include/linux/compat.h:115: error: syntax error before ‘compat_uptr_t’ /usr/include/linux/compat.h:118: error: syntax error before ‘}’ token /usr/include/linux/compat.h:119: error: syntax error before ‘}’ token /usr/include/linux/compat.h:127: error: syntax error before ‘compat_uptr_t’ /usr/include/linux/compat.h:132: error: syntax error before ‘option’ /usr/include/linux/compat.h:140: error: syntax error before ‘compat_uptr_t’ /usr/include/linux/compat.h:143: error: syntax error before ‘compat_ulong_t’ /usr/include/linux/compat.h:152: error: syntax error before ‘compat_ulong_t’ /usr/include/linux/compat.h:154: error: syntax error before ‘*’ token /usr/include/linux/compat.h:156: error: syntax error before ‘*’ token /usr/include/linux/compat.h:157: error: syntax error before ‘siginfo_t’ In file included from sys-linux.c:15: /usr/include/linux/usbdevice_fs.h:131: error: syntax error before ‘compat_int_t’ /usr/include/linux/usbdevice_fs.h:133: error: syntax error before ‘buffer’ /usr/include/linux/usbdevice_fs.h:134: error: syntax error before ‘buffer_length’ /usr/include/linux/usbdevice_fs.h:135: error: syntax error before ‘actual_length’ /usr/include/linux/usbdevice_fs.h:136: error: syntax error before ‘start_frame’ /usr/include/linux/usbdevice_fs.h:137: error: syntax error before ‘number_of_packets’ /usr/include/linux/usbdevice_fs.h:138: error: syntax error before ‘error_count’ /usr/include/linux/usbdevice_fs.h:139: error: syntax error before ‘signr’ /usr/include/linux/usbdevice_fs.h:140: error: syntax error before ‘usercontext’ /usr/include/linux/usbdevice_fs.h:142: error: syntax error before ‘}’ token In file included from /usr/include/signal.h:212, from sys-linux.c:22: /usr/include/bits/siginfo.h:34: error: redefinition of ‘union sigval’ /usr/include/bits/siginfo.h:52: error: nested redefinition of ‘struct siginfo’ /usr/include/bits/siginfo.h:65: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:66: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:72: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:73: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:75: error: syntax error before ‘}’ token /usr/include/bits/siginfo.h:80: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:81: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:83: error: syntax error before ‘}’ token /usr/include/bits/siginfo.h:88: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:89: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:90: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:91: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:92: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:98: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:99: error: conflicting types for ‘_sigfault’ /usr/include/asm-generic/siginfo.h:85: error: previous declaration of ‘_sigfault’ was here /usr/include/bits/siginfo.h:104: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:105: error: syntax error before ‘.’ token /usr/include/bits/siginfo.h:106: error: conflicting types for ‘_sigpoll’ /usr/include/asm-generic/siginfo.h:91: error: previous declaration of ‘_sigpoll’ was here /usr/include/bits/siginfo.h:107: error: syntax error before ‘}’ token /usr/include/bits/siginfo.h:108: error: syntax error before ‘}’ token /usr/include/bits/siginfo.h:133: error: syntax error before ‘-’ token /usr/include/bits/siginfo.h:155: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:176: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:197: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:206: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:217: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:226: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:243: error: syntax error before ‘(’ token /usr/include/bits/siginfo.h:274: error: redefinition of ‘struct sigevent’ /usr/include/bits/siginfo.h:302: error: syntax error before numeric constant In file included from /usr/include/signal.h:246, from sys-linux.c:22: /usr/include/bits/sigaction.h:26: error: redefinition of ‘struct sigaction’ /usr/include/bits/sigaction.h:34: error: syntax error before ‘siginfo_t’ In file included from sys-linux.c:22: /usr/include/signal.h:280: error: syntax error before ‘siginfo_t’ /usr/include/signal.h:288: error: syntax error before ‘siginfo_t’ In file included from /usr/include/signal.h:333, from sys-linux.c:22: /usr/include/bits/sigcontext.h:102: error: redefinition of ‘struct _fpstate’ /usr/include/bits/sigcontext.h:118: error: redefinition of ‘struct sigcontext’ In file included from /usr/include/signal.h:348, from sys-linux.c:22: /usr/include/bits/sigstack.h:36: error: syntax error before numeric constant /usr/include/bits/sigstack.h:51: error: redefinition of ‘struct sigaltstack’
[unhandled content-type:application/pgp-signature] | |