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 5E9BAA0588 for ; Thu, 16 Apr 2020 14:53:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 326731DC77; Thu, 16 Apr 2020 14:53:50 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 8BC5C1DC77 for ; Thu, 16 Apr 2020 14:53:48 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from fady@mellanox.com) with ESMTPS (AES256-SHA encrypted); 16 Apr 2020 15:53:47 +0300 Received: from l-wincomp04-vm.labs.mlnx (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 03GCrlkb031567; Thu, 16 Apr 2020 15:53:47 +0300 From: Fady Bader To: thomas@monjalon.net Cc: fady , stable@dpdk.org Date: Thu, 16 Apr 2020 15:53:45 +0300 Message-Id: <20200416125345.16668-1-fady@mellanox.com> X-Mailer: git-send-email 2.16.1.windows.4 Subject: [dpdk-stable] [PATCH] mempool: remove inline functions from export list X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: fady The code didn't compile when using exported mempool functions. compilation error logs: rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_cache_flush rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_default_cache rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_generic_get rte_mempool_exports.def : error LNK2001: unresolved external symbol rte_mempool_generic_put lib\librte_mempool.dll.a : fatal error LNK1120: 4 unresolved externals clang: error: linker command failed with exit code 1120 (use -v to see invocation) [77/77] Linking target drivers/librte_bus_pci-0.200.2.dll. ninja: build stopped: subcommand failed. The cause was that there were some inline functions that were included in the export list. To solve this I removed the 4 functions from rte_mempool_version.map export list which are implemented in the header and shouldn't be exported. Fixes: inline functions export list Cc: stable@dpdk.org Signed-off-by: Fady Bader --- lib/librte_mempool/rte_mempool_version.map | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/librte_mempool/rte_mempool_version.map b/lib/librte_mempool/rte_mempool_version.map index d002dfc46..d67ed2e2b 100644 --- a/lib/librte_mempool/rte_mempool_version.map +++ b/lib/librte_mempool/rte_mempool_version.map @@ -4,18 +4,14 @@ DPDK_20.0 { rte_mempool_audit; rte_mempool_avail_count; rte_mempool_cache_create; - rte_mempool_cache_flush; rte_mempool_cache_free; rte_mempool_calc_obj_size; rte_mempool_check_cookies; rte_mempool_contig_blocks_check_cookies; rte_mempool_create; rte_mempool_create_empty; - rte_mempool_default_cache; rte_mempool_dump; rte_mempool_free; - rte_mempool_generic_get; - rte_mempool_generic_put; rte_mempool_in_use_count; rte_mempool_list_dump; rte_mempool_lookup; -- 2.16.1.windows.4