Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90925 - qemu 0.7 kqemu module can not be insterted into mm-sources kernel
Summary: qemu 0.7 kqemu module can not be insterted into mm-sources kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
: 97670 111526 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-29 18:38 UTC by Tobias Nyström
Modified: 2005-12-24 04:01 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch which fixes kmod.c (kqemu-newkernel.patch,1.81 KB, patch)
2005-07-02 16:26 UTC, jannis
Details | Diff
Ebuild for qemu-softmmu (qemu-softmmu-0.7.0-r1.ebuild,3.95 KB, text/plain)
2005-07-02 16:27 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Nyström 2005-04-29 18:38:53 UTC
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
Comment 1 Luca Barbato gentoo-dev 2005-04-30 07:21:51 UTC
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.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 17:36:06 UTC
*** Bug 97670 has been marked as a duplicate of this bug. ***
Comment 3 jannis 2005-07-02 15:01:03 UTC
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
Comment 4 jannis 2005-07-02 16:26:34 UTC
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.
Comment 5 jannis 2005-07-02 16:27:49 UTC
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.
Comment 6 Luca Barbato gentoo-dev 2005-07-25 12:33:35 UTC
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.
Comment 7 Luca Barbato gentoo-dev 2005-07-26 00:19:36 UTC
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.
Comment 8 Christian Hesse 2005-07-27 04:06:43 UTC
Anybody who is willing to create a fix for kqemu 0.7.1?
Comment 9 Michael Siebert 2005-08-04 06:21:49 UTC
qemu-0.7.1 works if you remove the sysfs patch
Comment 10 Chris Bainbridge (RETIRED) gentoo-dev 2005-08-16 09:59:18 UTC
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 ?
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-11-05 01:07:22 UTC
*** Bug 111526 has been marked as a duplicate of this bug. ***
Comment 12 Luca Barbato gentoo-dev 2005-12-24 04:01:00 UTC
The issue should be solved, isn't it?