<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>I am making another attempt to install Open vSwitch on a netkit machine. The issue is that their compilation requires including kernel header files that the distributed netkit kernel omits. I did the following:</div>

<div><br></div><div>- compiled the kernel manually, which creates the necessary header files</div><div>- copied these over to the distributed kernel in the appropriate location</div><div><br></div><div>However, I still get the following errors. Various header files are still missing. Does anyone know why these would not show up after I compiled the kernel myself (simply using the Makefile provided with Netkit)?</div>

<div><br></div><div><br></div><div>make  all-recursive</div><div>make[1]: Entering directory `/root/Downloads/openvswitch-1.1.0pre2&#39;</div><div>Making all in datapath</div><div>make[2]: Entering directory `/root/Downloads/openvswitch-1.1.0pre2/datapath&#39;</div>

<div>Making all in linux-2.6</div><div>make[3]: Entering directory `/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6&#39;</div><div>make -C /lib/modules/2.6.26.5-netkit-K2.8/build M=/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6 modules</div>

<div>make[4]: Entering directory `/lib/modules/2.6.26.5-netkit-K2.8/build&#39;</div><div>  CC [M]  /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.o</div><div>In file included from include/asm/thread_info.h:12,</div>

<div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div><div>                 from include/linux/spinlock.h:49,</div><div>                 from include/linux/seqlock.h:29,</div>

<div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div><div>include/asm/page.h:105:17: error: mem.h: No such file or directory</div><div>In file included from include/asm/uaccess.h:10,</div>

<div>                 from include/asm/thread_info.h:13,</div><div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div><div>                 from include/linux/spinlock.h:49,</div>

<div>                 from include/linux/seqlock.h:29,</div><div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div><div>include/asm/processor.h:16:30: error: sysdep/faultinfo.h: No such file or directory</div><div>In file included from include/asm/uaccess.h:10,</div>

<div>                 from include/asm/thread_info.h:13,</div><div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div><div>                 from include/linux/spinlock.h:49,</div>

<div>                 from include/linux/seqlock.h:29,</div><div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div><div>include/asm/processor.h:28: error: field ‘faultinfo’ has incomplete type</div><div>In file included from include/asm/ptrace.h:12,</div>

<div>                 from include/asm/processor-generic.h:13,</div><div>                 from include/asm/processor.h:76,</div><div>                 from include/asm/uaccess.h:10,</div><div>                 from include/asm/thread_info.h:13,</div>

<div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div><div>                 from include/linux/spinlock.h:49,</div><div>                 from include/linux/seqlock.h:29,</div>

<div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div><div>include/asm/ptrace-generic.h:13:27: error: sysdep/ptrace.h: No such file or directory</div><div>In file included from include/asm/ptrace.h:12,</div>

<div>                 from include/asm/processor-generic.h:13,</div><div>                 from include/asm/processor.h:76,</div><div>                 from include/asm/uaccess.h:10,</div><div>                 from include/asm/thread_info.h:13,</div>

<div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div><div>                 from include/linux/spinlock.h:49,</div><div>                 from include/linux/seqlock.h:29,</div>

<div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div><div>include/asm/ptrace-generic.h:16: error: field ‘regs’ has incomplete type</div><div>In file included from include/asm/processor.h:76,</div>

<div>                 from include/asm/uaccess.h:10,</div><div>                 from include/asm/thread_info.h:13,</div><div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div>

<div>                 from include/linux/spinlock.h:49,</div><div>                 from include/linux/seqlock.h:29,</div><div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div>

<div>include/asm/processor-generic.h:14:23: error: registers.h: No such file or directory</div><div>include/asm/processor-generic.h:15:31: error: sysdep/archsetjmp.h: No such file or directory</div><div>In file included from include/asm/processor.h:76,</div>

<div>                 from include/asm/uaccess.h:10,</div><div>                 from include/asm/thread_info.h:13,</div><div>                 from include/linux/thread_info.h:47,</div><div>                 from include/linux/preempt.h:9,</div>

<div>                 from include/linux/spinlock.h:49,</div><div>                 from include/linux/seqlock.h:29,</div><div>                 from include/linux/time.h:8,</div><div>                 from include/linux/skbuff.h:19,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div>

<div>include/asm/processor-generic.h:32: error: expected specifier-qualifier-list before ‘jmp_buf’</div><div>In file included from include/asm/thread_info.h:13,</div><div>                 from include/linux/thread_info.h:47,</div>

<div>                 from include/linux/preempt.h:9,</div><div>                 from include/linux/spinlock.h:49,</div><div>                 from include/linux/seqlock.h:29,</div><div>                 from include/linux/time.h:8,</div>

<div>                 from include/linux/skbuff.h:19,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div>

<div>include/asm/uaccess.h:41:24: error: um_uaccess.h: No such file or directory</div><div>In file included from include/linux/elf.h:7,</div><div>                 from include/linux/module.h:14,</div><div>                 from include/linux/textsearch.h:7,</div>

<div>                 from include/linux/skbuff.h:26,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div>

<div>include/asm/elf.h:9:18: error: skas.h: No such file or directory</div><div>In file included from include/net/checksum.h:26,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/checksum.h:4,</div>

<div>                 from include/linux/skbuff.h:27,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div>

<div>include/asm/checksum.h:4:29: error: sysdep/checksum.h: No such file or directory</div><div>In file included from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/checksum.h:4,</div><div>

                 from include/linux/skbuff.h:27,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div>

<div>include/net/checksum.h: In function ‘csum_and_copy_from_user’:</div><div>include/net/checksum.h:33: error: implicit declaration of function ‘access_ok’</div><div>include/net/checksum.h:34: error: implicit declaration of function ‘csum_partial_copy_from_user’</div>

<div>include/net/checksum.h: In function ‘csum_and_copy_to_user’:</div><div>include/net/checksum.h:47: error: implicit declaration of function ‘csum_partial’</div><div>include/net/checksum.h:50: error: implicit declaration of function ‘copy_to_user’</div>

<div>include/net/checksum.h: In function ‘csum_replace4’:</div><div>include/net/checksum.h:101: error: implicit declaration of function ‘csum_fold’</div><div>In file included from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,</div><div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,</div>

<div>                 from /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:</div><div>include/linux/skbuff.h: In function ‘skb_add_data’:</div><div>include/linux/skbuff.h:1335: error: implicit declaration of function ‘copy_from_user’</div>

<div>make[5]: *** [/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.o] Error 1</div><div>make[4]: *** [_module_/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6] Error 2</div><div>make[4]: Leaving directory `/lib/modules/2.6.26.5-netkit-K2.8/build&#39;</div>

<div>make[3]: *** [default] Error 2</div><div>make[3]: Leaving directory `/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6&#39;</div><div>make[2]: *** [all-recursive] Error 1</div><div>make[2]: Leaving directory `/root/Downloads/openvswitch-1.1.0pre2/datapath&#39;</div>

<div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/root/Downloads/openvswitch-1.1.0pre2&#39;</div><div>make: *** [all] Error 2</div><div><br></div></span>