[Netkit.users] missing header files

Ashish Agarwal agarwal1975 at gmail.com
Fri Sep 17 17:31:46 CEST 2010


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:

- compiled the kernel manually, which creates the necessary header files
- copied these over to the distributed kernel in the appropriate location

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)?


make  all-recursive
make[1]: Entering directory `/root/Downloads/openvswitch-1.1.0pre2'
Making all in datapath
make[2]: Entering directory `/root/Downloads/openvswitch-1.1.0pre2/datapath'
Making all in linux-2.6
make[3]: Entering directory
`/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6'
make -C /lib/modules/2.6.26.5-netkit-K2.8/build
M=/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6 modules
make[4]: Entering directory `/lib/modules/2.6.26.5-netkit-K2.8/build'
  CC [M]
 /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.o
In file included from include/asm/thread_info.h:12,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/page.h:105:17: error: mem.h: No such file or directory
In file included from include/asm/uaccess.h:10,
                 from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/processor.h:16:30: error: sysdep/faultinfo.h: No such file or
directory
In file included from include/asm/uaccess.h:10,
                 from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/processor.h:28: error: field ‘faultinfo’ has incomplete type
In file included from include/asm/ptrace.h:12,
                 from include/asm/processor-generic.h:13,
                 from include/asm/processor.h:76,
                 from include/asm/uaccess.h:10,
                 from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/ptrace-generic.h:13:27: error: sysdep/ptrace.h: No such file or
directory
In file included from include/asm/ptrace.h:12,
                 from include/asm/processor-generic.h:13,
                 from include/asm/processor.h:76,
                 from include/asm/uaccess.h:10,
                 from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/ptrace-generic.h:16: error: field ‘regs’ has incomplete type
In file included from include/asm/processor.h:76,
                 from include/asm/uaccess.h:10,
                 from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/processor-generic.h:14:23: error: registers.h: No such file or
directory
include/asm/processor-generic.h:15:31: error: sysdep/archsetjmp.h: No such
file or directory
In file included from include/asm/processor.h:76,
                 from include/asm/uaccess.h:10,
                 from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/processor-generic.h:32: error: expected specifier-qualifier-list
before ‘jmp_buf’
In file included from include/asm/thread_info.h:13,
                 from include/linux/thread_info.h:47,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/skbuff.h:19,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/uaccess.h:41:24: error: um_uaccess.h: No such file or directory
In file included from include/linux/elf.h:7,
                 from include/linux/module.h:14,
                 from include/linux/textsearch.h:7,
                 from include/linux/skbuff.h:26,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/elf.h:9:18: error: skas.h: No such file or directory
In file included from include/net/checksum.h:26,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/checksum.h:4,
                 from include/linux/skbuff.h:27,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/asm/checksum.h:4:29: error: sysdep/checksum.h: No such file or
directory
In file included from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/checksum.h:4,
                 from include/linux/skbuff.h:27,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/net/checksum.h: In function ‘csum_and_copy_from_user’:
include/net/checksum.h:33: error: implicit declaration of function
‘access_ok’
include/net/checksum.h:34: error: implicit declaration of function
‘csum_partial_copy_from_user’
include/net/checksum.h: In function ‘csum_and_copy_to_user’:
include/net/checksum.h:47: error: implicit declaration of function
‘csum_partial’
include/net/checksum.h:50: error: implicit declaration of function
‘copy_to_user’
include/net/checksum.h: In function ‘csum_replace4’:
include/net/checksum.h:101: error: implicit declaration of function
‘csum_fold’
In file included from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/linux/netlink.h:4,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/compat-2.6/include/net/genetlink.h:5,
                 from
/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.c:1:
include/linux/skbuff.h: In function ‘skb_add_data’:
include/linux/skbuff.h:1335: error: implicit declaration of function
‘copy_from_user’
make[5]: ***
[/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.o]
Error 1
make[4]: ***
[_module_/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6] Error 2
make[4]: Leaving directory `/lib/modules/2.6.26.5-netkit-K2.8/build'
make[3]: *** [default] Error 2
make[3]: Leaving directory
`/root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Downloads/openvswitch-1.1.0pre2/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Downloads/openvswitch-1.1.0pre2'
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20100917/549d69c4/attachment-0001.htm>


More information about the Netkit.users mailing list