kqemu module can not be insterted into mm-sources kernel. Reproducible: Always Steps to Reproduce: 1. USE="kqemu" emerge qemu 2. modprobe kqemu 3. Actual Results: FATAL: Error inserting kqemu (/lib/modules/2.6.12-rc1-mm3/misc/kqemu.ko): Unknown symbol in module, or unknown parameter (see dmesg) dmesg: kqemu: Unknown symbol class_simple_device_add kqemu: Unknown symbol class_simple_destroy kqemu: Unknown symbol class_simple_device_remove kqemu: Unknown symbol class_simple_create Expected Results: inserted the module into the kernel Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.12-rc1-mm3 i686) ================================================================= System uname: 2.6.12-rc1-mm3 i686 AMD Sempron(TM) 2800+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 12:35:54)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.9.4, 1.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -funroll-loops" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X acpi alsa apm avi bitmap-fonts crypt cups curl emboss fam foomaticdb gd gdbm gif gnome gtk gtk2 gtlk imlib java jpeg junit libg++ libwww mad mikmod mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline real sdl see2 sse ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Please report in the qemu ml, I probably don't have the time to hack the glue code . Keep in mind that kqemu is a proprietary software.
*** Bug 97670 has been marked as a duplicate of this bug. ***
This whole thing is due to a renaming in some kernel functions from kernel 2.6.12-gitX on (and mm-sources are using a very new kernel-version). A similar problem was fixed by a patch in http://bugs.gentoo.org/96449
Created attachment 62514 [details, diff] Patch which fixes kmod.c This patch will fixe the problem so kqemu inserts fine with my new kernel. ebuild follows.
Created attachment 62515 [details] Ebuild for qemu-softmmu This is the ebuild taht uses the patch posted above. Emerge qith USE-Flag "newkernel", so the patch will be applied.
I guess that there is a simpler solution, add some ifdefs in the patch. Keep in mind that kqemu isn't opensource, I should ask the upstream author before changing it.
The patch is rejected, you NO-OP the sysfs support. The problem is due my sysfs support patch so I guess I should do something about that myself.
Anybody who is willing to create a fix for kqemu 0.7.1?
qemu-0.7.1 works if you remove the sysfs patch
Maybe a sysfs USE flag should be added to the ebuild to include optional support for sysfs? And print a warning that support is broken if kernel >= 2.6.12 ?
*** Bug 111526 has been marked as a duplicate of this bug. ***
The issue should be solved, isn't it?