I don't see an issue with the steps you mentioned here. Can you try using a static library instead of shared library.
Replace CONFIG_RTE_BUILD_SHARED_LIB=n and reinstall the DPDK library(you should see libdpdk.a) and see if this makes a difference? Regards, Bhanu Prakash. From: Vivek Gupta [mailto:vive...@hcl.com] Sent: Tuesday, March 29, 2016 11:38 AM To: Bodireddy, Bhanuprakash <bhanuprakash.bodire...@intel.com> Cc: discuss@openvswitch.org Subject: RE: [ovs-discuss] Cannot link with dpdk Initially I had tried with with-dpdk= homedirectory/dpdk2.2/install/share/dpdk/x86_64-native-linuxapp-gcc but nothing happened. then switched to with-dpdk=homedirectory/dpdk2.2/ x86_64-ivshmem-linuxapp-gcc but problem is as it is. Did I commited any wrong step in DPDK installations? My steps are as below- 1. untar dpdk-2.2.0.tar.gz 2. Changed following configuration variable in config/common_linuxapp 1. CONFIG_RTE_BUILD_COMBINE_LIBS=y CONFIG_RTE_LIBEAL_USE_HPET=y CONFIG_RTE_BUILD_SHARED_LIB=y CONFIG_RTE_RING_SPLIT_PROD_CONS=y CONFIG_RTE_LIBRTE_PMD_PCAP=y 1. make config T=x86_64-ivshmem-linuxapp-gcc 2. make install T=x86_64-ivshmem-linuxapp-gcc DESTDIR=install 3. export RTE_SDK='<homedirectory>/dpdk2.2/install/share/dpdk 4. Compiled and run "HelloWorld" example. 5. untar openvswitch-2.5.0.tar.gz 6. ./boot.sh and start running configuration. Initially I was building DPDK as below steps- * make config T=x86_64-ivshmem-linuxapp-gcc * make && make install After make install step I was getting error "Cannot install DPDK with T defined and DESTDIR undefined" By taking help from forums I changed my "make install" step as "make install x86_64-ivshmem-linuxapp-gcc DESTDIR=install" I am stuck in OVS configuration with DPDK. Please suggest. Thanks & Regards Vivek ________________________________ From: Bodireddy, Bhanuprakash [bhanuprakash.bodire...@intel.com] Sent: Tuesday, March 29, 2016 3:30 PM To: Vivek Gupta; gowrishankar Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: RE: [ovs-discuss] Cannot link with dpdk Hello Vivek, I quickly verified the issue you reported and could reproduce it. When one use install target 'x86_64-ivshmem-linuxapp-gcc' the directory layout is slightly different. make install T= x86_64-ivshmem-linuxapp-gcc DESTDIR=install creates '<homedirectory>/dpdk2.2/install/share/dpdk/ x86_64-native-linuxapp-gcc`, where as one expects the directory layout to be '<homedirectory>/dpdk2.2/install/share/dpdk/ x86_64-ivshmem-linuxapp-gcc`. This is the reason the OVS configure was failing in your case. Try passing -with-dpdk= homedirectory/dpdk2.2/install/share/dpdk/x86_64-native-linuxapp-gcc (or) --with-dpdk=homedirectory/dpdk2.2/ x86_64-ivshmem-linuxapp-gcc Regards, Bhanu Prakash. From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of Bodireddy, Bhanuprakash Sent: Tuesday, March 29, 2016 10:31 AM To: Vivek Gupta <vive...@hcl.com<mailto:vive...@hcl.com>>; gowrishankar <gowrishanka...@linux.vnet.ibm.com<mailto:gowrishanka...@linux.vnet.ibm.com>> Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: Re: [ovs-discuss] Cannot link with dpdk Set my path-to-dpdk to homedirectory/dpdk2.2/ x86_64-ivshmem-linuxapp-gcc and this should resolve your issue. Regards, Bhanu Prakash. From: Vivek Gupta [mailto:vive...@hcl.com] Sent: Tuesday, March 29, 2016 10:15 AM To: Bodireddy, Bhanuprakash <bhanuprakash.bodire...@intel.com<mailto:bhanuprakash.bodire...@intel.com>>; gowrishankar <gowrishanka...@linux.vnet.ibm.com<mailto:gowrishanka...@linux.vnet.ibm.com>> Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: RE: [ovs-discuss] Cannot link with dpdk Yes, I am able to see libdpdk.so file in path-to-dpdk/x86_64-native-linuxapp-gcc/lib Please find attached config.log file. To be mention that I have install DPDK2.2 as below 1. make config T=x86_64-ivshmem-linuxapp-gcc 2. make install T= x86_64-ivshmem-linuxapp-gcc DESTDIR=install my path-to-dpdk = homedirectory/dpdk2.2/install/share/dpdk. Please suggest. Thanks & Regards Vivek ________________________________ From: Bodireddy, Bhanuprakash [bhanuprakash.bodire...@intel.com] Sent: Tuesday, March 29, 2016 1:51 PM To: Vivek Gupta; gowrishankar Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: RE: [ovs-discuss] Cannot link with dpdk Do you see DPDK library in the path mentioned path-to-dpdk/x86_64-ivshmem-linuxapp-gcc/lib/libdpdk.a? From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of Vivek Gupta Sent: Tuesday, March 29, 2016 7:40 AM To: gowrishankar <gowrishanka...@linux.vnet.ibm.com<mailto:gowrishanka...@linux.vnet.ibm.com>> Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: Re: [ovs-discuss] Cannot link with dpdk I have already enabled that option. ________________________________ From: gowrishankar [gowrishanka...@linux.vnet.ibm.com] Sent: Tuesday, March 29, 2016 11:02 AM To: Vivek Gupta Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: Re: [ovs-discuss] Cannot link with dpdk On Monday 28 March 2016 04:25 PM, Vivek Gupta wrote: Hi I am trying to configure OVS 2.5 with DPDK 2.2 with following option ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var -with-dpdk=path-to-dpdk-/x86_64-ivshmem-linuxapp-gcc/ --enable-ssl but I get error message "configure: error: cannot link with dpdk" You need to have CONFIG_RTE_BUILD_COMBINE_LIBS=y while building dpdk. Regards, Gowrishankar ::DISCLAIMER:: ---------------------------------------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ----------------------------------------------------------------------------------------------------------------------------------------------------
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss