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 ACBBCA0547; Wed, 21 Apr 2021 16:53:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B34441AC8; Wed, 21 Apr 2021 16:53:06 +0200 (CEST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id 75C4C410F9 for ; Wed, 21 Apr 2021 16:53:05 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id q22so4822179lfu.8 for ; Wed, 21 Apr 2021 07:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lUwLT+wlGlKu2wZSJ5Dte4Tc9mFTDvUpbYHJAnhL3SI=; b=q04yXnOCZWP3mljGaF2hjtig/sBSt72lm4cdFzrb4sOUrY6j/PC2gWQiseYt/PExF6 j0RB332e23pV4aX5unNEOpdunVsNIpN84iBehVTtUJCH2TY9mm0KZVl/dbbQPe7YNdJr Y3RCP4xGWYFA/x7cY32lNARYvZSaWJC9ptvJd1EqlVh2koTOc9COv68jiVAkIvtZOsi0 BKleMMQb1PTLB94a+qPCBrQ/oJy7ZVwcBCgL/qCk7xQIvjNDDLRVFaBqWSgtVyKIIQ6z o5zodRtlmorVzolGtLlBgNmC6pcSK6n97kxvtCNMo6r/7IKTOW0ty2Q+Dvhhkmh1+ati rWIA== 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=lUwLT+wlGlKu2wZSJ5Dte4Tc9mFTDvUpbYHJAnhL3SI=; b=NF4WEtfJ9DdI3nBDrvdzlfGNzEsFopaz7uFapi2vq4y7wBhFOJp1ckJWa5RnpoEf6b 5Q9BCu58Q1Iew8LVAhUElbgk4fjnI9FEdm4xlwORs+B1sXBOgdIYWwFXd7QV6IQg6hBP IXAcY6F/kFuJdo62Z2oe19fG2RVn3y+5WO/zLHT0XP78Yb1C7HXzzYh/icecqvn7pa07 8Ga6lD8fiiHM7RpwL3yuLBmVB9577WKTyKDQQT8XlQ4lNoberqivdMQnxKz3JuRuq/H/ sF+EzWPoieXVDnEzAxMraupEaWMTAxdLymC23/wcuZo66MREW3OATqZxOi3BBqqFGa+F bEVQ== X-Gm-Message-State: AOAM530ybK8TFKARs3BPXqTgM2b7yMCnWRXKKMLv/27nKII2eNRbDiyJ 6XpPj4oIwjDah2LvxdpVlZ2GaNKTHhLwSg== X-Google-Smtp-Source: ABdhPJyJOMPZzZV8QZ6Cw0JqD1MEzs3R7FuYA1dY+7psAAKCS1g7UDdEklrMXRo5BH/mSuGcGm1kBQ== X-Received: by 2002:a05:6512:203:: with SMTP id a3mr20074719lfo.111.1619016784933; Wed, 21 Apr 2021 07:53:04 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id d11sm228158lfv.202.2021.04.21.07.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 07:53:04 -0700 (PDT) Date: Wed, 21 Apr 2021 17:53:03 +0300 From: Dmitry Kozlyuk To: Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20210421175303.75572a8c@sovereign> In-Reply-To: <2873208.8DoL4XIl1F@thomas> References: <20210324005008.24705-1-dmitry.kozliuk@gmail.com> <20210415221055.1575-1-dmitry.kozliuk@gmail.com> <2873208.8DoL4XIl1F@thomas> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 0/3] net/pcap: build on Windows 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" 2021-04-21 00:20 (UTC+0200), Thomas Monjalon: > > Dmitry Kozlyuk (3): > > eal/windows: add timespec_get shim for MinGW > > net/pcap: move OS-dependent code to separate files > > net/pcap: build on Windows > > Compilation is failing on FreeBSD 11: > http://mails.dpdk.org/archives/test-report/2021-April/188997.html > implicit declaration of function 'timespec_get' is invalid in C99 > use of undeclared identifier 'TIME_UTC' > > It should be fixed by including time.h No, FreeBSD 11 is missing timespec_get indeed. > I cannot reproduce the issue with FreeBSD 12. After adding a FreeBSD 11 shim and rebasing over "main" I get another error unrelated to the patch. It seems FreeBSD 11 is missing pthread_setname_np() as well. [11/1847] Compiling C object lib/librte_telemetry.a.p/telemetry_telemetry.c.o ../src/lib/telemetry/telemetry.c:445:2: warning: implicit declaration of function 'pthread_setname_np' is invalid in C99 [-Wimplicit-function-declaration] pthread_setname_np(t_old, "telemetry-v1"); ^ ../src/lib/telemetry/telemetry.c:474:2: warning: implicit declaration of function 'pthread_setname_np' is invalid in C99 [-Wimplicit-function-declaration] pthread_setname_np(t_new, "telemetry-v2"); ^ 2 warnings generated. [60/1847] Linking target lib/librte_telemetry.so.21.2 FAILED: lib/librte_telemetry.so.21.2 cc -o lib/librte_telemetry.so.21.2 lib/librte_telemetry.a.p/telemetry_telemetry.c.o lib/librte_telemetry.a.p/telemetry_telemetry_data.c.o lib/librte_telemetry.a.p/telemetry_telemetry_legacy.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,librte_telemetry.so.21 -Wl,--no-as-needed -pthread -lm -lexecinfo -Wl,--end-group -Wl,--version-script=/tmp/src/lib/telemetry/version.map lib/librte_telemetry.a.p/telemetry_telemetry.c.o: In function `rte_telemetry_init': telemetry.c:(.text.internal+0x15a): undefined reference to `pthread_setname_np' telemetry.c:(.text.internal+0x24d): undefined reference to `pthread_setname_np' cc: error: linker command failed with exit code 1 (use -v to see invocation)