From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] mk: fix compile error and ABI versioning for combined shared library Date: Sun, 06 Dec 2015 15:37:41 +0100 Message-ID: <1483331.SImPA21uKy@xps13> References: <56603A44.7040803@redhat.com> <1449150668-26017-1-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id DD0DD91B5 for ; Sun, 6 Dec 2015 15:38:52 +0100 (CET) Received: by wmvv187 with SMTP id v187so133693731wmv.1 for ; Sun, 06 Dec 2015 06:38:52 -0800 (PST) In-Reply-To: <1449150668-26017-1-git-send-email-ferruh.yigit@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-12-03 13:51, Ferruh Yigit: > Fixes following error (observed when versioning macros used): > LD libdpdk.so > /usr/bin/ld: /root/dpdk/build/lib/libdpdk.so: version node not found > for symbol @DPDK_x.y > > Also resulting combined library contains symbol version information: > $ readelf -a build/lib/libdpdk.so | grep rte_eal_ | grep @ | head > <...> GLOBAL DEFAULT 12 rte_eal_alarm_set@@DPDK_2.0 > <...> GLOBAL DEFAULT 12 rte_eal_pci_write_config@@DPDK_2.1 > <...> GLOBAL DEFAULT 12 rte_eal_remote_launch@@DPDK_2.0 > ... > > Versioning fixed by merging all version scripts into one automatically and > feeding it to final library. > > Signed-off-by: Ferruh Yigit Applied, thanks > +SYMBOLS=$(grep -h "{" $FILES | sort -u | sed 's/{//') I think SYMBOLS would be better named as VERSIONS.