From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 37A06592E for ; Fri, 25 Jul 2014 12:41:57 +0200 (CEST) Received: by mail-wg0-f49.google.com with SMTP id k14so3992120wgh.8 for ; Fri, 25 Jul 2014 03:43:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=n0YPYugwIJKySryL8L2k3oQJJYFkXwYxbT1eRV6Ds7M=; b=CVTIMpyRu7gFta6B199yS1CMookw3WuHuryPI86Gd097cKNvlKiw0WiiLoHszdSerj 3cnDQoO4ULHV0pwgR9JBo3pEa2+BDR/nOycd/38jcuqhHz5q3JZ/G0Grcs68+vE7S/Sg BiB5jqjmiQ1sKWui5DKHZc9cwAGpdH7tMfyZYMPK8gqwBq8FMomp8yp90nvc1HjXgILg UWaWDzqGf9LJobJ1QJIbF1N/wqmZ08ra/11aogCGcaiPmV3jqEk0wSsUNzVJkCVSrCKW EWnx8KDt2P65WFo4cM4e+8U90iQ56nqMBa1tGLMYUOl8It0yZkXiTcJONP1MgIsPNozT ARCA== X-Gm-Message-State: ALoCoQkOG5Sor9DjGE6W4yGiZ1GrhEpZInukIKL7Fn7+HIShzR82PHcSVKWaYlE/40uIDs289+OO X-Received: by 10.194.109.71 with SMTP id hq7mr21059806wjb.114.1406285008140; Fri, 25 Jul 2014 03:43:28 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id gi15sm24188028wjc.20.2014.07.25.03.43.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jul 2014 03:43:27 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Fri, 25 Jul 2014 12:43:15 +0200 Message-ID: <1432797.FfhxlLyX1P@xps13> Organization: 6WIND User-Agent: KMail/4.13.2 (Linux/3.15.5-2-ARCH; KDE/4.13.2; x86_64; ; ) In-Reply-To: <53D18EFF.8080804@fixup.fi> References: <20140724075918.GA21277@mhcomputing.net> <53D18EFF.8080804@fixup.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] symbol conflicts between netinet/in.h, arpa/inet.h, and rte_ip.h 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: Fri, 25 Jul 2014 10:41:57 -0000 Hi all, 2014-07-24 22:55, Antti Kantee: > On 24/07/14 07:59, Matthew Hall wrote: > > I ran into some weird symbol conflicts between system netinet/in.h and DPDK > > rte_ip.h. They have a lot of duplicated definitions for stuff like IPPROTO_IP > > and so on. This breaks when you want to use inet_pton from arpa/inet.h, > > because it includes netinet/in.h to define struct in_addr. [...] > Again, I recommend steering away from any tightrope approaches that > "know" which types are non-conflicting, or pick out half-and-half from > the host and IP stack. "Do, or do not, there is no half-and-half" The general problem here is that DPDK is conflicting with libc. So the obvious question would be: "why DPDK needs to redefine libc stuff"? I don't see any obvious answer since bare metal is planned to be removed. (see http://dpdk.org/ml/archives/dev/2014-June/003868.html) Objections? -- Thomas