I'm trying to compile ipfilter-4.1.28 on a debian system with kernel
2.6.18-5-686. All the userspace stuff of ipfilter is compiling fine. But
when it gets to the kernel module, I'm running into trouble with
unresolved include paths..

this is the output from make:

make[2]: Entering directory `/usr/src/linux-headers-2.6.18-5-686'
CC [M] /usr/src/ip_fil4.1.28/Linux/Linux-2.6.18-5-686-i686//linuxm.o
In file included from include/asm/smp.h:17,
from include/linux/smp.h:18,
from include/linux/sched.h:63,
from include/linux/module.h:9,
from
/usr/src/ip_fil4.1.28/Linux/Linux-2.6.18-5-686-i686/../ipf-linux.h:17,
from
/usr/src/ip_fil4.1.28/Linux/Linux-2.6.18-5-686-i686//linuxm.c:2:
include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such File or Directory

I was looking into /usr/include/asm/mpspec.h and it looks like this:

/* All asm/ files are generated and point to the corresponding
* file in asm-i486 or asm-x86_64.
*/

#ifdef __x86_64__
# include
#else
# include
#endif


And as such I went to /usr/include/asm-i486/mpspec.h:

ifndef __ASM_MPSPEC_H
#define __ASM_MPSPEC_H

#include
#include
#include


The problem is that the file is not in this directory.
It is in several sub-directories of the asm-i486 directory.

This is only one unresolved include file. there are several others that
are not getting resolved by make. I don't know what happens when the
kernel is getting compiled. Somehow all the paths to the right include
files must be set. Does anybody know what I'm doing wrong here?