-I/home/johnm/kvm-15/qemu/slirp -c -o usb-linux.o /home/johnm/kvm-15/qemu/usb-linux.c > In file included from /home/johnm/kvm-15/qemu/usb-linux.c:29: > /usr/include/linux/usbdevice_fs.h:49: error: variable or field `__user' > declared void > /usr/include/linux/usbdevice_fs.h:49: error: syntax error before '*' token > /usr/include/linux/usbdevice_fs.h:56: error: variable or field `__user' > declared void > /usr/include/linux/usbdevice_fs.h:56: error: syntax error before '*' token > /usr/include/linux/usbdevice_fs.h:66: error: variable or field `__user' > declared void > /usr/include/linux/usbdevice_fs.h:66: error: syntax error before '*' token > /usr/include/linux/usbdevice_fs.h:100: error: variable or field `__user' > declared void > /usr/include/linux/usbdevice_fs.h:100: error: syntax error before '*' token > /usr/include/linux/usbdevice_fs.h:109: error: syntax error before '}' token > /usr/include/linux/usbdevice_fs.h:116: error: variable or field `__user' > declared void > /usr/include/linux/usbdevice_fs.h:116: error: syntax error before '*' token > /home/johnm/kvm-15/qemu/usb-linux.c: In function `usb_host_handle_control': > /home/johnm/kvm-15/qemu/usb-linux.c:102: error: invalid application of > `sizeof' to incomplete type `usbdevfs_ctrltransfer' > /home/johnm/kvm-15/qemu/usb-linux.c: In function `usb_host_handle_data': > /home/johnm/kvm-15/qemu/usb-linux.c:119: error: storage size of 'bt' isn't > known > /home/johnm/kvm-15/qemu/usb-linux.c:131: error: invalid application of > `sizeof' to incomplete type `usbdevfs_bulktransfer' > /home/johnm/kvm-15/qemu/usb-linux.c:119: warning: unused variable `bt' > /home/johnm/kvm-15/qemu/usb-linux.c: In function `usb_host_device_open': > /home/johnm/kvm-15/qemu/usb-linux.c:198: error: storage size of 'ctrl' isn't > known > /home/johnm/kvm-15/qemu/usb-linux.c:201: error: invalid application of > `sizeof' to incomplete type `usbdevfs_ioctl' > /home/johnm/kvm-15/qemu/usb-linux.c:198: warning: unused variable `ctrl' > make[2]: *** [usb-linux.o] Error 1 > make[2]: Leaving directory `/home/johnm/kvm-15/qemu/i386-softmmu' > make[1]: *** [subdir-i386-softmmu] Error 2 > make[1]: Leaving directory `/home/johnm/kvm-15/qemu' > make: *** [qemu] Error 2 > SUSE-laptop:/home/johnm/kvm-15 # Your /usr/include/linux/usbdevice_fs.h is invalid. It contains kernel defines, so it cannot be used to build userspace programs, like qemu.
If /usr/include/linux/usbdevice_fs.h belongs to one of your distribution's package, you should file a bug to maintainer about this. Headers must be cleaned of __user and similar defines. Kernel build system do this when making 'headers_instal' target. If not, you should clean them up manually. # Eliminate the contents of (and inclusions of) compiler.h HDRSED := sed -e "s/ inline / __inline__ /g" \ -e "s/[[:space:]]__user[[:space:]]\+/ /g" \ -e "s/(__user[[:space:]]\+/ (/g" \ -e "s/[[:space:]]__force[[:space:]]\+/ /g" \ -e "s/(__force[[:space:]]\+/ (/g" \ -e "s/[[:space:]]__iomem[[:space:]]\+/ /g" \ -e "s/(__iomem[[:space:]]\+/ (/g" \ -e "s/[[:space:]]__attribute_const__[[:space:]]\+/\ /g" \ -e "s/[[:space:]]__attribute_const__$$//" \ -e "/^\#include <linux\/compiler.h>/d" (from linux-2.6.18/scripts/Makefile.headersinst). ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel