[NTLUG:Discuss] Makefile can't find the kernel headers --> where should it find the kernel headers ???

Steve Martindell steve.martindell at gmail.com
Fri Feb 22 01:19:40 CST 2008


Making module
make -C /lib/modules/2.6.22.17-0.1-default/build
SUBDIRS=/home/stevem/bin/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.6.22.17-0.1-obj/x86_64/default'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.22.17-0.1-obj/x86_64/default'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

-------------------------------------------------------------------------------------------
darkstar bin/vpnclient#   uname  -a
Linux darkstar 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC
x86_64 x86_64 x86_64 GNU/Linux

darkstar bin/vpnclient#  more  Makefile
#
# KBUILD build parameters.
#
KERNEL_SOURCES  ?= /lib/modules/$(shell uname -r)/build
KERNEL_HEADERS  := -I$(KERNEL_SOURCES)/include
MODULE_ROOT     ?= /lib/modules/$(shell uname -r)/CiscoVPN
SUBARCH         := $(shell uname -m)

<<<<<<<<<<< snip >>>>>>>>>>>

darkstar bin/vpnclient#  ll  /lib/modules/2.6.22.17-0.1-default/build
lrwxrwxrwx 1 root root 47 2008-02-20 00:06
/lib/modules/2.6.22.17-0.1-default/build ->
/usr/src/linux-2.6.22.17-0.1-obj/x86_64/default

darkstar bin/vpnclient#   ll  /lib/modules/2.6.22.17-0.1-default/build/include
ls: cannot access /lib/modules/2.6.22.17-0.1-default/build/include: No
such file or directory

darkstar bin/vpnclient#  ll  /usr/src/linux-2.6.22.17-0.1-obj/x86_64/default
-rw-r--r-- 1 root root    862 2008-02-11 06:23 makedumpfile.config
-rw-r--r-- 1 root root 418154 2008-02-11 06:23 Module.symvers

-------->>>>>>>>> so where should it point to the kernel headers ???
<<<<<<<<------------------



More information about the Discuss mailing list