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 66515A052F; Mon, 10 Feb 2020 13:27:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C20011BDAE; Mon, 10 Feb 2020 13:27:38 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id A59151BC25 for ; Mon, 10 Feb 2020 13:27:37 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from asafp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 10 Feb 2020 14:27:36 +0200 Received: from pegasus07.mtr.labs.mlnx (pegasus07.mtr.labs.mlnx [10.210.16.112]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 01ACRa9a017481; Mon, 10 Feb 2020 14:27:36 +0200 From: Matan Azrad To: dev@dpdk.org Cc: Viacheslav Ovsiienko , Thomas Monjalon Date: Mon, 10 Feb 2020 12:27:34 +0000 Message-Id: <1581337654-7893-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] common/mlx5: fix dlopen meson build 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" The glue shared library name was created by the common class FMT name, driver_name_fmt = 'rte_common_@0@', which is not correlated with LIB_GLUE_BASE = 'librte_pmd_mlx5_glue.so'. This causes the dynamic linkage of the glue library to fail what remained mlx5 drivers outside the PCI driver list. The command: MLX5_GLUE_PATH=$(pwd)/build-meson/drivers/common/mlx5 build-meson/app/dpdk-testpmd -n 4 -w 0000:00:05.0 -w 0000:00:06.0 -- -i The log: common_mlx5: Cannot load glue library: /usr/local/lib64/dpdk/pmds-20.0.1-glue/librte_pmd_mlx5_glue.so.20.02.0: cannot open shared object file: No such file or directory Adjust the shared library name to the LIB_GLUE_BASE definition. Fixes: 7b4f1e6bd367 ("common/mlx5: introduce common library") Signed-off-by: Matan Azrad --- drivers/common/mlx5/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build index 2b70410..9cbd527 100644 --- a/drivers/common/mlx5/meson.build +++ b/drivers/common/mlx5/meson.build @@ -185,7 +185,7 @@ endif # Build Glue Library if pmd_dlopen and build dlopen_name = 'mlx5_glue' - dlopen_lib_name = driver_name_fmt.format(dlopen_name) + dlopen_lib_name = 'rte_pmd_@0@'.format(dlopen_name) dlopen_so_version = LIB_GLUE_VERSION dlopen_sources = files('mlx5_glue.c') dlopen_install_dir = [ eal_pmd_path + '-glue' ] -- 1.8.3.1