From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8B69637B4 for ; Fri, 10 Mar 2017 13:05:38 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2017 04:05:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,140,1486454400"; d="scan'208";a="58574605" Received: from dpdk6.bj.intel.com ([172.16.182.81]) by orsmga002.jf.intel.com with ESMTP; 10 Mar 2017 04:05:36 -0800 From: Wei Dai To: dev@dpdk.org Cc: john.mcnamara@intel.com, thomas.monjalon@6wind.com, david.marchand@intel.com, Wei Dai Date: Fri, 10 Mar 2017 19:58:52 +0800 Message-Id: <1489147132-40922-4-git-send-email-wei.dai@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489147132-40922-1-git-send-email-wei.dai@intel.com> References: <1489147132-40922-1-git-send-email-wei.dai@intel.com> Subject: [dpdk-dev] [PATCH 3/3] eal: remove references to execinfo.h for musl 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: , X-List-Received-Date: Fri, 10 Mar 2017 12:05:39 -0000 execinfo.h is not supported by musl now. need to remove references to execinfo.h to build DPDK with musl. musl is an implementation of the userspace portion of the standard library functionality described in the ISO C and POSIX standards, plus common extensions. Get more details about musl from http://www.musl-libc.org Signed-off-by: Wei Dai --- lib/librte_eal/linuxapp/eal/eal_debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_debug.c b/lib/librte_eal/linuxapp/eal/eal_debug.c index 5fbc17c..d2416ee 100644 --- a/lib/librte_eal/linuxapp/eal/eal_debug.c +++ b/lib/librte_eal/linuxapp/eal/eal_debug.c @@ -31,7 +31,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#ifndef RTE_LIBC_MUSL + #include +#endif + #include #include #include @@ -47,6 +50,7 @@ /* dump the stack of the calling core */ void rte_dump_stack(void) { +#ifndef RTE_LIBC_MUSL void *func[BACKTRACE_SIZE]; char **symb = NULL; int size; @@ -64,6 +68,7 @@ void rte_dump_stack(void) } free(symb); +#endif } /* not implemented in this environment */ -- 2.7.4