I searched the internet a little bit and found that I should do make oldconfig && make prepare at /usr/src/linux because my /usr/src/linux was clean, I did that and found that it was better this time, but got the following error:
Quote:
make -C /lib/modules/2.6.18/build M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
WARNING: Symbol version dump /usr/src/linux-2.6.18/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/kitelau/soft/slackbuild/qemu/kqemu-1.3.0pre9/kqemu-linux.o
cp /home/kitelau/soft/slackbuild/qemu/kqemu-1.3.0pre9/kqemu-mod-i386.o /home/kitelau/soft/slackbuild/qemu/kqemu-1.3.0pre9/kqemu-mod.o
LD [M] /home/kitelau/soft/slackbuild/qemu/kqemu-1.3.0pre9/kqemu.o
Building modules, stage 2.
MODPOST
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18'
make: *** [kqemu.ko] Error 2
|
Then I tried to do make modules at /usr/src/linux. During modules making, I tried to compile kqemu again. It compiled this time! Oh well.