./configure --kernel-path=/lib/modules/2.6.26-1-amd64/build --cc=gcc-4.1 --host-cc=gcc-4.1 CONFIG_X86_64=y Source path /usr/src/modules/kqemu C compiler gcc-4.1 Host C compiler gcc-4.1 make make host CPU x86_64 kernel sources /lib/modules/2.6.26-1-amd64/build kbuild type 2.6 /usr/bin/make make[2]: Entering directory `/usr/src/modules/kqemu' make -C common all make[3]: Entering directory `/usr/src/modules/kqemu/common' gcc -Wall -O2 -Werror -g -D__KERNEL__ -I.. -o genoffsets genoffsets.c ./genoffsets > monitor_def.h gcc -m64 -march=k8 -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o x86_64/nexus_asm.o x86_64/nexus_asm.S gcc -m64 -march=k8 -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o x86_64/monitor_asm.o x86_64/monitor_asm.S gcc -m64 -march=k8 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -mno-red-zone -fno-stack-protector -fpic -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor.o monitor.c gcc -m64 -march=k8 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -mno-red-zone -fno-stack-protector -fpic -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor-utils.o monitor-utils.c gcc -m64 -march=k8 -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -mno-red-zone -fno-stack-protector -fpic -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o interp.o interp.c ld -m elf_x86_64 -T x86_64/monitor.ld -o monitor-image.out x86_64/nexus_asm.o x86_64/monitor_asm.o monitor.o monitor-utils.o interp.o x86_64/monitor_asm.o: In function `__monitor_exception': (.text+0x68d): undefined reference to `KQEMU_STATE_monitor_ss_null_sel' x86_64/monitor_asm.o: In function `exception_return': (.text+0x6d3): undefined reference to `KQEMU_STATE_monitor_ss_null_sel' x86_64/monitor_asm.o: In function `exception_return16': (.text+0x776): undefined reference to `KQEMU_STATE_monitor_cs32_sel' x86_64/monitor_asm.o: In function `__monitor_interrupt': (.text+0x81c): undefined reference to `KQEMU_STATE_monitor_ss_null_sel' make[3]: *** [monitor-image.out] Error 1 make[3]: Leaving directory `/usr/src/modules/kqemu/common' make[2]: *** [kqemu.ko] Error 2 make[2]: Leaving directory `/usr/src/modules/kqemu' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory `/usr/src/modules/kqemu' make: *** [kdist_build] Error 2