[ovs-dev] [PATCH 1/2] acinclude.m4: fix build with dpdk 1.6.0r2

Daniele Di Proietto ddiproietto at vmware.com
Fri May 9 18:34:33 UTC 2014


Apparently this workaround creates problems for Ubuntu. I’ll prepare another patch soon.

On May 8, 2014, at 3:51 PM, Daniele Di Proietto <ddiproietto at vmware.com> wrote:

> libintel_dpdk.a refuses to link with libopenvswitch unless -ldl is used
> this could probably be fixed also by using -Wl,-whole-archive
> 
> Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
> ---
> This could probably be fixed also by using -Wl,-whole-archive
> ---
> acinclude.m4 | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/acinclude.m4 b/acinclude.m4
> index e8a8a2e..97eecdb 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -163,7 +163,7 @@ dnl Configure DPDK source tree
> AC_DEFUN([OVS_CHECK_DPDK], [
>   AC_ARG_WITH([dpdk],
>               [AC_HELP_STRING([--with-dpdk=/path/to/dpdk],
> -                              [Specify the DPDP build directory])])
> +                              [Specify the DPDK build directory])])
> 
>   if test X"$with_dpdk" != X; then
>     RTE_SDK=$with_dpdk
> @@ -172,8 +172,8 @@ AC_DEFUN([OVS_CHECK_DPDK], [
>     DPDK_LIB_DIR=$RTE_SDK/lib
>     DPDK_LIBS="$DPDK_LIB_DIR/libintel_dpdk.a"
> 
> -    LIBS="$DPDK_LIBS $LIBS"
> -    CPPFLAGS="-I$DPDK_INCLUDE $CPPFLAGS"
> +    LIBS="-ldl $DPDK_LIBS $LIBS"
> +    CFLAGS="$CFLAGS -I$DPDK_INCLUDE"
> 
>     AC_DEFINE([DPDK_NETDEV], [1], [System uses the DPDK module.])
>   else
> -- 
> 2.0.0.rc0




More information about the dev mailing list