From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2D38A0C4C; Tue, 13 Jul 2021 18:22:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84EAD41257; Tue, 13 Jul 2021 18:22:56 +0200 (CEST) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by mails.dpdk.org (Postfix) with ESMTP id A93A841238 for ; Tue, 13 Jul 2021 18:22:55 +0200 (CEST) Received: by mail-pj1-f50.google.com with SMTP id p14-20020a17090ad30eb02901731c776526so1751293pju.4 for ; Tue, 13 Jul 2021 09:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BEt1o1X/ZLSUEfvv2yskNpX2v+HhPIkBdWMnhB+YGEE=; b=pyqbYyVg6nJirZ0PeGCGVrn0yI6WWW9+tGNh5we8hdNw+Rjf7i3bQdSu8Zf6owc5Kd yyIO5yfxOx+9W5dfrsyOEHKZ53jOwLQm+GVpNCFfylytBsLEiYCgsY9+ePej9m03+QUb SUaKJ2RvWNrgl/4idOlRvgjk6GK161afn1HvwnqhLR+D7Amqi0CxU19SP7e43wfG/JTX iDHsIS4fxNiJkEFUKEYxLI4NVX5/vBG7Tqq97kGV1/lsOFYz+3hr5GQhPCtpNxpYYaUe +YVw7lSVoOshslHMJySueNWCu08Qu/+BAAAELncBXG9KANSjLQoahIW7lUOVr7GwlsxW 9opw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BEt1o1X/ZLSUEfvv2yskNpX2v+HhPIkBdWMnhB+YGEE=; b=R4VMUcuC1KZdpanthnhdeqHzqCsbyB5sKgBH/Owa57gD2CI+jOc7ToN1VwpOUsJOOz pnl1L8upjiqA5m5kdHJy8+CcNH6nyolSsbP4452Sj8c0WmFyIHwydIPnqK4gP+9nTRpx MFZRnl2wvyxebb2Wj2DGb/lTtyyG1Z5/KxudqeiEuJbFD7aN4GhgbI3Jn74a9XvwNeSQ cAHD8x43OvzQlusamwR04RCmCMT66IKb8qSrYnS/tcreJ/e3OL87z7n/aLpjFSbfncoc GwMfdliO8IItO6RDCYSQEO3goRf3SfwnhLMkvgGD4uRaaGCDFxYjHsExpCAbpgKl8EzQ qwPg== X-Gm-Message-State: AOAM531B5y8AFPOpG26Ar5fSH2C/ITGdWWj1U5Fq/9CDe1c38V0l7SpF PPtXxrgl9zpE2De1sqANk7Vmlg== X-Google-Smtp-Source: ABdhPJxVlMS3VZvtxtf8EbHrxBtx0i+PjQAqVWCfFMbSsut5pyyZAFlYN6E3jbiVdsWbkFgOlQ7fTA== X-Received: by 2002:a17:90a:d988:: with SMTP id d8mr140758pjv.111.1626193374724; Tue, 13 Jul 2021 09:22:54 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id cx4sm3398298pjb.53.2021.07.13.09.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 09:22:54 -0700 (PDT) Date: Tue, 13 Jul 2021 09:22:52 -0700 From: Stephen Hemminger To: bugzilla@dpdk.org Cc: dev@dpdk.org Message-ID: <20210713092252.05b4c30a@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [Bug 754] quick question about including netinet/ip.h in rte_ethdev.h X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, 13 Jul 2021 10:14:20 +0000 bugzilla@dpdk.org wrote: > https://bugs.dpdk.org/show_bug.cgi?id=3D754 >=20 > Bug ID: 754 > Summary: quick question about including netinet/ip.h in > rte_ethdev.h > Product: DPDK > Version: 19.11 > Hardware: All > OS: All > Status: UNCONFIRMED > Severity: normal > Priority: Normal > Component: ethdev > Assignee: dev@dpdk.org > Reporter: jy7805.heo@samsung.com > Target Milestone: --- >=20 > Hello all,=20 >=20 > I'm making some application using DPDK. Once I want to include and > together, below redefinition error is being show.=20 >=20 >=20 > /usr/include/linux/ip.h:86:8: error: redefinition of =E2=80=98struct iphd= r=E2=80=99 > struct iphdr { > ^~~~~ > In file included from /usr/local/include/rte_ip.h:21:0, > from /usr/local/include/rte_flow.h:24, > from /usr/local/include/rte_eth_ctrl.h:11, > from /usr/local/include/rte_ethdev.h:978, > from > /home/jy7805.heo/git/srsLTE/lib/include/srslte/dpdk/dpdk_utils.h:18, > from > /home/jy7805.heo/git/srsLTE/lib/include/srslte/dpdk/dpdk_threads.h:9, > from > /home/jy7805.heo/git/srsLTE/lib/include/srslte/ph_thread/ph_tx.h:4, > from /home/jy7805.heo/git/srsLTE/lib/src/ph_thread/ph_tx= .cc:1: >=20 > I found that rte_ip.h is including netinet/ip.h which is making collision= with > linux/ip.h >=20 > Does anyone who ever seen this kind of error before ? Should I change > linux/ip.h to netinet/ip.h ?=20 What distribution?=20 In the general the simple solution is not include linux/ip.h