[Netkit.users] missing header files

Massimo Rimondini rimondin at dia.uniroma3.it
Sat Sep 18 11:44:25 CEST 2010


Dear Julien,

in a vanilla kernel you would achieve this by using "make <your_targets>
V=1" (you can find this clue in "make help").
If you are lucky, Openvswitch's makefile may pass that flag along and
bring you the information you are seeking for.

Regards,
Massimo.



On 17/09/2010 20:19, Julien Iguchi-Cartigny wrote:
> I had the same problem, and I believe the problem is not coming from the
> linux header file but rather with a include path during compilation.
> Sadly i cannot find how to display the command line called by makefile
> during module compilation (i.e. what is behind "CC [M]
> /root/Downloads/openvswitch-1.1.0pre2/datapath/linux-2.6/genetlink-brcompat.o").
> If someone has some clues how to pring more information during kernel
> module compilation...
>
> Cheers,
>
> Julien.
>
> On 09/17/2010 05:31 PM, Ashish Agarwal wrote:
>   
>> 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
>>
>>
>>
>>
>> _______________________________________________
>> Netkit.users mailing list
>> Netkit.users a list.dia.uniroma3.it
>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>>     
>   
>
>
> _______________________________________________
> Netkit.users mailing list
> Netkit.users a list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>   
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: <http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20100918/a8041241/attachment-0001.htm>


More information about the Netkit.users mailing list