[ovs-discuss] Help needed in building openvswitch 1.7.1 kernel module with CentOS 6.0

박근열(스마트 네트워크서비스 Project) kun-youl.park at kt.com
Fri Sep 21 03:08:31 UTC 2012


Hi

I patched skbuff.h file, as you recommended, and it fixed the problem.

Thanks

Kun-Youl


-----Original Message-----
From: Yudai Yamagishi [mailto:yummy at sfc.wide.ad.jp]
Sent: Friday, September 21, 2012 10:38 AM
To: 박근열(스마트 네트워크서비스 Project)
Cc: Ramana Reddy; Ben Pfaff; discuss at openvswitch.org
Subject: Re: [ovs-discuss] Help needed in building openvswitch 1.7.1 kernel module with CentOS 6.0

Hi,

I'm not sure, but maybe you need this patch applied:
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6c4ea27c48b30eaec8e37e642d5072f53c5b2670

Regards,
Yudai Yamagishi

2012/9/21 박근열(스마트 네트워크서비스 Project) <kun-youl.park at kt.com>:
> Thanks for your comments.
>
>
>
> The error while building kernel modules was as follows
>
>
>
> % ./boot.sh
>
> % ./configure --with-linux=/lib/modules/`uname -r`/build | grep error
>
> configure: error: source dir /lib/modules/2.6.32-71.el6.x86_64/build
> doesn't exist
>
>
>
> I checked  source dir and kernel sources had been removed in server.
>
> So, I downloaded the latest kernel and compiled it.
>
>
>
> Now, there is no error in configure.
>
> But, there are some errors in building kernel module as follows.
>
>
>
> % make
>
> [root at origin2 openvswitch-1.7.1]# make
>
> make  all-recursive
>
> make[1]: Entering directory `/root/openvswitch-1.7.1'
>
> Making all in datapath
>
> make[2]: Entering directory `/root/openvswitch-1.7.1/datapath'
>
> Making all in linux
>
> make[3]: Entering directory `/root/openvswitch-1.7.1/datapath/linux'
>
> make -C /lib/modules/2.6.32-279.5.2.el6.x86_64/build
> M=/root/openvswitch-1.7.1/datapath/linux modules
>
> make[4]: Entering directory `/usr/src/kernels/2.6.32-279.5.2.el6.x86_64'
>
>   CC [M]  /root/openvswitch-1.7.1/datapath/linux/genetlink-brcompat.o
>
> In file included from
> /root/openvswitch-1.7.1/datapath/linux/compat/include/linux/netlink.h:
> 4,
>
>                  from
> /root/openvswitch-1.7.1/datapath/linux/compat/include/net/genetlink.h:
> 5,
>
>                  from
> /root/openvswitch-1.7.1/datapath/linux/compat/genetlink.inc:3,
>
>                  from
> /root/openvswitch-1.7.1/datapath/linux/genetlink-brcompat.c:10:
>
> /root/openvswitch-1.7.1/datapath/linux/compat/include/linux/skbuff.h:242:
> error: redefinition of ‘skb_frag_page’
>
> include/linux/skbuff.h:1612: note: previous definition of ‘skb_frag_page’
> was here
>
> make[5]: ***
> [/root/openvswitch-1.7.1/datapath/linux/genetlink-brcompat.o]
> Error 1
>
> make[4]: *** [_module_/root/openvswitch-1.7.1/datapath/linux] Error 2
>
> make[4]: Leaving directory `/usr/src/kernels/2.6.32-279.5.2.el6.x86_64'
>
> make[3]: *** [default] Error 2
>
> make[3]: Leaving directory `/root/openvswitch-1.7.1/datapath/linux'
>
> make[2]: *** [all-recursive] Error 1
>
> make[2]: Leaving directory `/root/openvswitch-1.7.1/datapath'
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory `/root/openvswitch-1.7.1'
>
> make: *** [all] Error 2
>
> [root at origin2 openvswitch-1.7.1]#
>
>
>
> If you let me know how to fix it, it will be very helpful to me.
>
>
>
> Thanks
>
>
>
>
>
> From: Ramana Reddy [mailto:gtvrreddy at gmail.com]
> Sent: Thursday, September 20, 2012 5:27 PM
> To: 박근열(스마트 네트워크서비스 Project)
> Cc: discuss at openvswitch.org
> Subject: Re: [ovs-discuss] Help needed in building openvswitch 1.7.1
> kernel module with CentOS 6.0
>
>
>
> Did you get any errors while building the .ko module.  What is the
> output of make install.
> Did u install the kernel headers. Where exactly they are located.
> Sometimes they will take different path rather than /lib/modules/...
>
>
>
> On Thu, Sep 20, 2012 at 1:06 PM, 박근열(스마트 네트워크서비스 Project)
> <kun-youl.park at kt.com> wrote:
>
> Hi,
>
>
>
> I am installing openvswitch 1.7..1 package on the CentOS 6.0
>
> (kernel ver: 2.6.32-71.el6.x86_64, gcc ver: 4.4.6)
>
> I have done the following with the instructions in INSTALL.Linux,
>
>
>
> % ./boot.sh
>
> % ./configure --with-linux=/lib/modules/`uname -r`/build
>
> % make
>
> % make install
>
> % insmod datapath/linux/openvswitch.ko
>
> insmod: can't read 'datapath/linux/openvswitch.ko': No such file or
> directory
>
>
>
> openvswitch.ko is not in the datapath/linux directory, so I guess
>
> I didn't build the kernel module correctly.
>
>
>
> I wonder what’s wrong in the kernel building process.
>
>
>
> Thanks,
>
>
>
> Kun-Youl
>
>
>
>
>
>
>
> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본
> 문서에 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약,
> 본 메일이 잘못 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
> This E-mail may contain confidential information and/or copyright material.
> This email is intended for the use of the addressee only. If you
> receive this email by mistake, please either delete it without
> reproducing, distributing or retaining copies thereof or notify the sender immediately..
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
>
>
>
> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본
> 문서에 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약,
> 본 메일이 잘못 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
> This E-mail may contain confidential information and/or copyright material.
> This email is intended for the use of the addressee only. If you
> receive this email by mistake, please either delete it without
> reproducing, distributing or retaining copies thereof or notify the sender immediately..
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>


이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본 문서에 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약, 본 메일이 잘못 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
This E-mail may contain confidential information and/or copyright material. This email is intended for the use of the addressee only. If you receive this email by mistake, please either delete it without reproducing, distributing or retaining copies thereof or notify the sender immediately.


More information about the discuss mailing list