From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 2D8705A71 for ; Wed, 25 Feb 2015 13:31:05 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YQb78-00028Y-OG; Wed, 25 Feb 2015 07:31:03 -0500 Date: Wed, 25 Feb 2015 07:30:53 -0500 From: Neil Horman To: Cunming Liang Message-ID: <20150225123053.GA31224@hmsreliant.think-freely.org> References: <1424835589-18122-1-git-send-email-cunming.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424835589-18122-1-git-send-email-cunming.liang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version map X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 12:31:05 -0000 On Wed, Feb 25, 2015 at 11:39:47AM +0800, Cunming Liang wrote: > These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. > The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. > Thanks for the notification from Tetsuya Mukawa . > > Cunming Liang (2): > eal/linux: fix symbol missing in version map > eal/bsd: fix symbol missing in version map > > lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ > lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ > 2 files changed, 4 insertions(+) > > -- > 1.8.1.4 > > NAK This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead, rte_socket id should be made a non inline function and exported. Then the definition of per_lcore_socket_id can be made private, protecting it from type changes. Neil