error: missing syscalls when compiling kernel module

noyb noybee afzalulh at
Mon Feb 16 01:44:59 EST 2015

Hi all. This is the error that I am getting when I try to compile a
loadable module(it tries to intercept a system call by directly
editing the sys_call_table in the memory):-

make -C /lib/modules/2.6.32-504.1.3.el6.x86_64/build M= modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-504.1.3.el6.x86_64'
make[2]: Nothing to be done for `all'.
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
make[2]: *** No rule to make target `missing-syscalls'.  Stop.
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-504.1.3.el6.x86_64'
make: *** [all] Error 2

The Makefile is:-

obj-m   +:= hijack.o
PWD    := $(pwd)
        make -C /lib/modules/2.6.32-504.1.3.el6.x86_64/build M=$(PWD) modules
        make -C /lib/modules/2.6.32-504.1.3.el6.x86_64/build M=$(PWD) clean

I have googled the error but most links are unresolved. I am trying to
install this against the currently running kernel and not the complete

More information about the Kernelnewbies mailing list