make[4]: Entering directory `/var/tmp/portage/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins/open' if /bin/sh ../../../libtool --silent --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -D__user= -march=pentium4 -O3 -pipe -fomit-frame-pointer -fno-strict-aliasing -I /usr/include -MT open.lo -MD -MP -MF ".deps/open.Tpo" -c -o open.lo open.c; \ then mv -f ".deps/open.Tpo" ".deps/open.Plo"; else rm -f ".deps/open.Tpo"; exit 1; fi In file included from /usr/include/linux/klist.h:16, from /usr/include/linux/device.h:17, from /usr/include/linux/ipmi.h:39, from open.c:54: /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/device.h:17, from /usr/include/linux/ipmi.h:39, from open.c:54: /usr/include/linux/klist.h: At top level: /usr/include/linux/klist.h:35: error: field `n_ref' has incomplete type /usr/include/linux/klist.h:36: error: field `n_removed' has incomplete type In file included from /usr/include/linux/sched.h:20, from /usr/include/linux/module.h:10, from /usr/include/linux/device.h:20, from /usr/include/linux/ipmi.h:39, from open.c:54: /usr/include/asm/semaphore.h:46: error: syntax error before "wait_queue_head_t" /usr/include/asm/semaphore.h: In function `sema_init': /usr/include/asm/semaphore.h:71: error: dereferencing pointer to incomplete type /usr/include/asm/semaphore.h:72: error: dereferencing pointer to incomplete type /usr/include/asm/semaphore.h:73: error: dereferencing pointer to incomplete type /usr/include/asm/semaphore.h: In function `down': /usr/include/asm/semaphore.h:111: error: dereferencing pointer to incomplete type /usr/include/asm/semaphore.h: In function `down_interruptible': /usr/include/asm/semaphore.h:138: error: dereferencing pointer to incomplete type /usr/include/asm/semaphore.h: In function `down_trylock': /usr/include/asm/semaphore.h:163: error: dereferencing pointer to incomplete type /usr/include/asm/semaphore.h: In function `up': /usr/include/asm/semaphore.h:188: error: dereferencing pointer to incomplete type In file included from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from /usr/include/linux/device.h:20, from /usr/include/linux/ipmi.h:39, from open.c:54: /usr/include/asm/mmu.h: At top level: /usr/include/asm/mmu.h:13: error: field `sem' has incomplete type In file included from /usr/include/linux/device.h:20, from /usr/include/linux/ipmi.h:39, from open.c:54: /usr/include/linux/module.h:50: error: field `attr' has incomplete type /usr/include/linux/module.h:61: error: field `kobj' has incomplete type /usr/include/linux/module.h:230: error: field `grp' has incomplete type In file included from /usr/include/linux/ipmi.h:39, from open.c:54: /usr/include/linux/device.h:39: error: field `subsys' has incomplete type /usr/include/linux/device.h:40: error: field `drivers' has incomplete type /usr/include/linux/device.h:41: error: field `devices' has incomplete type /usr/include/linux/device.h:55: error: syntax error before "pm_message_t" /usr/include/linux/device.h:83: error: field `attr' has incomplete type /usr/include/linux/device.h:98: error: field `unloaded' has incomplete type /usr/include/linux/device.h:99: error: field `kobj' has incomplete type /usr/include/linux/device.h:108: error: syntax error before "pm_message_t" /usr/include/linux/device.h:124: error: field `attr' has incomplete type /usr/include/linux/device.h:149: error: field `subsys' has incomplete type /usr/include/linux/device.h:152: error: field `sem' has incomplete type /usr/include/linux/device.h:172: error: field `attr' has incomplete type /usr/include/linux/device.h:184: error: field `attr' has incomplete type /usr/include/linux/device.h:224: error: field `kobj' has incomplete type /usr/include/linux/device.h:237: error: `KOBJ_NAME_LEN' undeclared here (not in a function) /usr/include/linux/device.h:295: error: field `attr' has incomplete type /usr/include/linux/device.h:314: error: field `kobj' has incomplete type /usr/include/linux/device.h:318: error: field `sem' has incomplete type /usr/include/linux/device.h:330: error: field `power' has incomplete type make[4]: *** [open.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins/open' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/ipmitool-1.8.8/work/ipmitool-1.8.8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ipmitool-1.8.8/work/ipmitool-1.8.8' make: *** [all] Error 2