Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DCB8C433F5 for ; Tue, 19 Apr 2022 19:05:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1040A83C11; Tue, 19 Apr 2022 21:05:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="MZd/X+6w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8804883C13; Tue, 19 Apr 2022 21:05:12 +0200 (CEST) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AA45A83B9E for ; Tue, 19 Apr 2022 21:05:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id fu34so4284834qtb.8 for ; Tue, 19 Apr 2022 12:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Hem6ZVqlkOSqXbQkDG/KFE0oy1p4HALRrZB820wFVsw=; b=MZd/X+6w426p45HZzv0MA1UcGrF9KMWjyoRX5SFFZBeFSXZzDm2rVuCL9zTQnHVD/a 45JOsJxR2xFpJCJRZ4sALmSEEcV9QP0xn8/Hj0zAO+vgQjzU8K3UawoJxsgbYzTRdnV3 E422EV98v9nQ7HP9XHLvMqXNCavwQGR1MEoeY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Hem6ZVqlkOSqXbQkDG/KFE0oy1p4HALRrZB820wFVsw=; b=lGuPRgmw4461TYav/T/cph3zIw85ULQ26BxBUUlH8A5WXaAId7EC25wiWuugbTe5Wu bJklj+fPWPChCt3gEJwvZ5KoeNvN2qrxvc9eg2dRFCk9fE6FaUGh4Nc+vHj+lppMnDQC 3kiU2o4JJObyYoT6VnIxQ34DZJimMjt+7Q+wfWVpibGtVpD6MbLc4y9JsGms7si3PNgC sKFNExI20vVGV/TakmBQGVcuicoytYTe3eQmw6xq/+C+nzoAHnpG1msZSmkNVrv847To KOTuf6SHVN/L4VLGo/7A2dBDp0vlaAZ9KQfW9dtXXzzFn6w5ckanpFYd2LvylKWFi7pU ItcA== X-Gm-Message-State: AOAM532rkdY3kCr3OoLNMFXUNdJql0ZGTq7JUvIsGU1cUIneGGBOYoWg 9l0E3kk/WtSEaVJGqp+AXVQFwA== X-Google-Smtp-Source: ABdhPJwefOhjNtz0Hfg2XErk7hg0xPJYiN0yVbURDgYOnR3Ax2n+NVjsvb6ZHU7Ayg/2O9HkHNTJZg== X-Received: by 2002:a05:622a:50b:b0:2e1:deae:22dc with SMTP id l11-20020a05622a050b00b002e1deae22dcmr11527065qtx.359.1650395108534; Tue, 19 Apr 2022 12:05:08 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id d22-20020a05622a101600b002f1f139d83bsm419797qte.84.2022.04.19.12.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 12:05:07 -0700 (PDT) Date: Tue, 19 Apr 2022 15:05:05 -0400 From: Tom Rini To: Mark Kettenis Cc: Philippe Reynes , u-boot@lists.denx.de, sjg@chromium.org Subject: Re: tools/image-host.c build error Message-ID: <20220419190505.GP3045430@bill-the-cat> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VBq/nvTu32OVLBUP" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --VBq/nvTu32OVLBUP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 19, 2022 at 09:02:14PM +0200, Mark Kettenis wrote: > Hello Philippe, >=20 > commit 6e052d1cbafbedbfba73070da483111f2ae68e5a broke building u-boot > on OpenBSD: >=20 > tools/image-host.c:1208:10: error: use of undeclared identifier 'ENODATA' >=20 > The problem here is that ENODATA isn't in POSIX proper (it is part of > the obsolete XSI STREAMS option so typically absent on systems with > BSD heritage). So ENODATA should not be used in the host tools that > are part of U-Boot. I would simply replace it with EINVAL, but maybe > you have a different opinion. >=20 > I can send a proper patch if so desired. Please do. Sadly, I don't see BSD host options in Azure, which is where we have our Windows/macOS build tests done. --=20 Tom --VBq/nvTu32OVLBUP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJfB94ACgkQFHw5/5Y0 tyxTlwv+NAQq7dAXgUir+bujLiUywYkkWzhi4zLWK2FM1/RVUZcevAg8kXsp2dQi r3ouFsR0gUywZWmg5HiFpUHl3tbBVUwJIch/N+49KBv5W0QsBVL3ijxvPXW0tPsm +VJgBUohqLlS5RIQF5z1jnO3jE5AgadCybEF3beF0WD1qOfD1zkSBYYNhc15L5tQ S+tLnCzkDWujBXAr7QYCdI1UtX4jTZ7waDnF6fWKjeq/cSsdhgyzu0CoERDhmier 7Wiu4Rl+0uzc50U12WNSfrROaFSAf5iFELkI/J0NUB7U0ZvR1aGuskguGXuOc0jX S/Juwy/ujPOsIOPSne8qw4pERAjReA/2cNPYJsi1GS+bOhBqe5tvr7CyyZjF+t4f cF9ye7zqqd1FLuXJPaWoqXa89u4J7PRKMsuEdiIEx7g+v9yKtQFDfS8LsZQtsZlG LSXT8X2JtDt5EF35Hgf2qOwg68DJiAeZIhQ2K/W80MSy7bVeva9XbeD2Eb8rByfz O8/rlUyR =Nwpm -----END PGP SIGNATURE----- --VBq/nvTu32OVLBUP--