Skip to contentSkip to conversation

fix i386-softmmu with newer kernel headers

PATCH In review VMiklos 3 participants 3 messages Jan 23, 2007

lore
Share & tools
lore

VMiklos

author
#0 lore raw

PATCH 1/1 fix i386-softmmu with newer kernel headers

hi

with newer kernel-headers, i get the following compile error:
gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/fst/src/qemu-0.8.2/target-i386 -I/var/tmp/fst/src/qemu-0.8.2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/fst/src/qemu-0.8.2/fpu -DHAS_AUDIO -I/var/tmp/fst/src/qemu-0.8.2/slirp -c -o usb-linux.o /var/tmp/fst/src/qemu-0.8.2/usb-linux.c /var/tmp/fst/src/qemu-0.8.2/usb-linux.c:29:28: linux/compiler.h: No such file or directory
make[1]: *** [usb-linux.o] Error 1
make[1]: Leaving directory `/var/tmp/fst/src/qemu-0.8.2/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2

is this a known issue?

a trivial patch is here:

http://darcs.frugalware.org/repos/frugalware-current/source/xapps-extra/qemu/qemu-0.8.2-include.diff

i'm not sure about what would require that inclusion. i mean in case i would know, of course i would send some
#ifndef FOO
#include <linux/conpiler.h>
#endif
patch :)

thanks,
VMiklos

--
Developer of Frugalware Linux, to make things frugal - http://frugalware.org

#2 lore raw
In reply to VMiklos
Quoted 15 lines · VMiklos

hi

with newer kernel-headers, i get the following compile error:
gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.

(quoted diff) +0 -4
-I.. -I/var/tmp/fst/src/qemu-0.8.2/target-i386
-I/var/tmp/fst/src/qemu-0.8.2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -I/var/tmp/fst/src/qemu-0.8.2/fpu -DHAS_AUDIO
-I/var/tmp/fst/src/qemu-0.8.2/slirp -c -o usb-linux.o

/var/tmp/fst/src/qemu-0.8.2/usb-linux.c /var/tmp/fst/src/qemu-0.8.2/usb-linux.c:29:28: linux/compiler.h: No such file or directory
make[1]: *** [usb-linux.o] Error 1
make[1]: Leaving directory `/var/tmp/fst/src/qemu-0.8.2/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2

Quoted 3 lines

is this a known issue?

a trivial patch is here:

remove the #include statement in usb-linux.c. Compile. Done.