From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70FA4A0565; Mon, 2 Mar 2020 01:23:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9EE8A1C06A; Mon, 2 Mar 2020 01:23:18 +0100 (CET) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by dpdk.org (Postfix) with ESMTP id C2BCD1BE83; Mon, 2 Mar 2020 01:23:17 +0100 (CET) Received: by mail-qk1-f193.google.com with SMTP id q18so8490745qki.10; Sun, 01 Mar 2020 16:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XL7+Q4PdgWTdXHI5VeE4yGFLRY6DBrnsdEAKlpuwEv8=; b=P1Lbb7NH+DYyNL7yyZeUYUqiiZVr+T2F1QI7PVgvoGCR0CXcPcMKnvFppfYez70rw+ 9ndVLNVbSIoSVC5+5Ed77KFvBfEyI5OXF51K+3P479hE3siPMkhBgMrE8KDxVoIyW1xx mQW3hqgjE4dWdrTtREVn9UB7aTFvV0EmCJI99k4jdN2JIQvy2OXwnertjwwk/IkLCwMx AM3VN1IRfASP0lxiB0R3p7FNkdBDwxMXrEQbSdrRhgQfzRepPpjzrVSALX5G2PcyzEAS dBHMaZDNqePv4rWw0kjYiNCs8dzhNl0x7DpqJAXFuIsgPap9CeY5zCPnGVcE7EIvW2I6 tbxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XL7+Q4PdgWTdXHI5VeE4yGFLRY6DBrnsdEAKlpuwEv8=; b=B9EJpiTgcQJSevYtCQhM4+aCzW8cN2J1fm1q8/oCPeDlvAHENcvQtOZRloE4UhgGSg XLxtvALvwqtIVk7EazccIEDLb+yCNvuRJpefLyC2f4bKO6l7Dj1US1Czm7QqfaN7EjjC EJNqnyw+gcDJRdrxuqTT+Z4UIoV49O2LzfeV3UjKlRDoIHLBKBodlAsLS7OptfkzWD1i TBwrLqlJ68g7RKFJeQbRkFqo6N+i2fzdm+t8DrYNacBK+WeUjbX3C6qhKSaWxrmfrbtd oltJdo5RR54F+Zz5Z62tbbPnHglB8BcB57E8+3I2PzuspAJTtTWsZTFp1wQLYDBaGxSm b/Tw== X-Gm-Message-State: APjAAAWE227of4Q6vIs/O8pM5zU1Jysd7IiedkT7ii7JSsnl2vuEl413 F+lw368jCW+uLJA0gP7v8hBPf93X8FABMWZte4E= X-Google-Smtp-Source: APXvYqwciiSVplRwAfzK0ZRxEzNV/pUsNLba69jfkq1DHd1MJ7lEB/SQzrbOmm9MzCIVeHzbAJ1I5b6eoTEcR1BCeP8= X-Received: by 2002:a05:620a:5f8:: with SMTP id z24mr13976907qkg.203.1583108597161; Sun, 01 Mar 2020 16:23:17 -0800 (PST) MIME-Version: 1.0 References: <1582972040-7026-1-git-send-email-xiangxia.m.yue@gmail.com> In-Reply-To: From: Tonghao Zhang Date: Mon, 2 Mar 2020 08:22:41 +0800 Message-ID: To: Ali Alnubani Cc: "stable@dpdk.org" , Matan Azrad , "dev@dpdk.org" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [dpdk v1] net/mlx5: fix possible building error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Mar 2, 2020 at 1:09 AM Ali Alnubani wrote: > > Hi Tonghao, > > > -----Original Message----- > > From: dev On Behalf Of > > xiangxia.m.yue@gmail.com > > Sent: Saturday, February 29, 2020 12:27 PM > > To: Matan Azrad ; dev@dpdk.org > > Cc: Tonghao Zhang ; stable@dpdk.org > > Subject: [dpdk-dev] [dpdk v1] net/mlx5: fix possible building error > > > > From: Tonghao Zhang > > > > When setting the CONFIG_RTE_BUILD_SHARED_LIB to y, and build the mlx5 > > pmd, there is a building error. > > To fix it, add RTE_IBVERBS_LINK_DLOPEN to include relative codes. > > > > > mlx5_common.o: In function `mlx5_glue_init': > > > drivers/common/mlx5/mlx5_common.c:324: undefined reference to > > `dlclose' > > > > Fixes: 7b4f1e6bd367 ("common/mlx5: introduce common library") > > Cc: stable@dpdk.org > > > > Signed-off-by: Tonghao Zhang > > --- > > drivers/common/mlx5/mlx5_common.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > I test this case on multiple environments and don't see the build failure. Can you please provide more information about yours, and how to reproduce this? Hi Ali, I use the dpdk-next-net, and the last commit id is d7142fbae16f185e11bfa44be061399afc40a1be. The build config is show as below: diff --git a/config/common_base b/config/common_base index 7ca2f28..4bd5126 100644 --- a/config/common_base +++ b/config/common_base @@ -57,7 +57,7 @@ CONFIG_RTE_ENABLE_LTO=n # # Compile to share library # -CONFIG_RTE_BUILD_SHARED_LIB=n +CONFIG_RTE_BUILD_SHARED_LIB=y # # Use newest code breaking previous ABI @@ -363,7 +363,7 @@ CONFIG_RTE_LIBRTE_MLX4_DEBUG=n # Compile burst-oriented Mellanox ConnectX-4, ConnectX-5, # ConnectX-6 & BlueField (MLX5) PMD # -CONFIG_RTE_LIBRTE_MLX5_PMD=n +CONFIG_RTE_LIBRTE_MLX5_PMD=y CONFIG_RTE_LIBRTE_MLX5_DEBUG=n # The building failure log show: LD librte_common_mlx5.so.20.0.1 mlx5_common.o: In function `mlx5_glue_init': /root/zth/myshell/dpdk-next-net/drivers/common/mlx5/mlx5_common.c:324: undefined reference to `dlclose' collect2: error: ld returned 1 exit status > Thanks, > Ali