Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95177 - Can't modprobe kqemu - unresolved symbol devfs_mk_cdev
Summary: Can't modprobe kqemu - unresolved symbol devfs_mk_cdev
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-05 23:05 UTC by Blake Leverett
Modified: 2005-12-23 06:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blake Leverett 2005-06-05 23:05:32 UTC
I emerged qemu-0.7.0 (~x86) with USE flags "softmmu kqemu".  The compile went 
fine, but when I tried to modprobe the kqemu kernel module, I got the 
following: 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: /lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: 
unresolved symbol devfs_mk_cdev 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: /lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: 
unresolved symbol devfs_remove 
 
I looked at the source, and was able to remove the two lines from kqemu.c that 
reference the symbols above.  After that I emerged and was able to 'modprobe 
kqemu'.  I had to manually create the device node with this: 
 
mknod /dev/kqemu c 250 0 
chmod 666 /dev/kqemu 
 
Then qemu works with the kqemu acceleration just fine. 
 
Is there some configuration missing from the ebuild that would make the source 
compile as-is?  Or maybe this is a problem with the qemu source. 

Reproducible: Always
Steps to Reproduce:
1.Add 'app-emulation/qemu softmmu kqemu' to package.use 
2.Add 'app-emulation/qemu ~x86' to package.keywords 
3.Emerge qemu 
4.modprobe keqmu 
 
Actual Results:  
I got this error message: 
 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: /lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: 
unresolved symbol devfs_mk_cdev 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: /lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: 
unresolved symbol devfs_remove 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: 
Hint: You are trying to load a module without a GPL compatible license 
      and it has unresolved symbols.  Contact the module supplier for 
      assistance, only they can help you. 
 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: 
insmod /lib/modules/2.4.26-win4lin-r13/misc/kqemu.o failed 
/lib/modules/2.4.26-win4lin-r13/misc/kqemu.o: insmod kqemu failed 
 

Expected Results:  
It should have loaded the kqemu module. 

I am running kernel 2.4.26-win4lin-r13, and using devfs.  devfsd is running.  
devfs is compiled into the kernel (not a module).  I unloaded the Win4Lin 
drivers before I tried to load the kqemu module, as I read that they can 
interact.
Comment 1 Luca Barbato gentoo-dev 2005-06-06 01:35:34 UTC
looks like that's my fault assuming that would work on 2.4 kernels.

I'll put a couple of ifdefs to avoid the issue.
Comment 2 Luca Barbato gentoo-dev 2005-12-23 06:30:57 UTC
the problem should be solved