In order to build the code you have to setup some environment that corresponds to the kernel source location, for example: export KSRC=/lib/modules/2.6.9/build export EXTRA_CFLAGS=-D__LINVS1__