Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp367781pxf; Thu, 18 Mar 2021 02:15:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6YBpXPAiuGxA/FPIAaNBetKsA2ytn5374cbmgzxv2ezsP9INAnrlAqgNff9BECCqyU5jw X-Received: by 2002:a17:906:ad85:: with SMTP id la5mr39933835ejb.37.1616058905954; Thu, 18 Mar 2021 02:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616058905; cv=none; d=google.com; s=arc-20160816; b=dMYLsnLvzd2i6ObHCpqBmoUdfk/HDFh34JcphbF/eJr1PyNJK9MrHlaimFBXAmPLxI 8MfWNARIUj0yijaRFDrdZgxunXftX3FNJn4BOOISlQCLxnHvJfudfknDtmLaZ8jts0l3 5j2CSA1+TwmWb+LnXVjqkORjeQBiWj3sPrClVSEaAxFhai9F3wxsCr6B2M9dk9Sg2Git R0DEgvhc1khu+E2Wkent2vTCsYUbeOUPy7zGLx3FB7Q8W+EotlBN2tOMpN77gsgVOf/G YImBPfRKBUvTJy2KZtNe/CUTVoyA724C4PR9xaNf20Ea5yczK+Ur/saFkfrH38uUzDml s/wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=lpK+osW6xccpM5lQzoOj+5tjhpfdNdqJXPRqW3XcRLc=; b=EMStEprLIC4Brg2ktZglGbDel+L0F4r1hctmG3eJEMUoahhapHoIi6vZ438UIsYAY2 lhfZe73Fu02Uqz6bxQDZGlwwCkPKrOsABALbHZIzGcP1xiuzwPGFCNr2Xg/Vw9kura9W CkywvSq5YdOzJQZtGmb+W0dJnRwE7EFFOlHrBoW0A7HTIgdwjKRc0Jt9i0WOfzMETSet MShQCgluy6S95Kz5kvkB7VF9ZmSFVEcopid+o5NQy5zam7/cIg1gVuFuSAwxeenWvjbH 1CAEHd3NoQaXp+NHk9EdbeHOWdUZFf4wArYIHnXhPxTWuAEKGQ2L28CrhdZ/atXHAoUd DXAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg8si1163950ejb.188.2021.03.18.02.14.29; Thu, 18 Mar 2021 02:15:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbhCRJMZ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Mar 2021 05:12:25 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:59391 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhCRJMF (ORCPT ); Thu, 18 Mar 2021 05:12:05 -0400 Received: from mac-pro.holtmann.net (p4fefce19.dip0.t-ipconnect.de [79.239.206.25]) by mail.holtmann.org (Postfix) with ESMTPSA id 9CA06CED2A; Thu, 18 Mar 2021 10:19:41 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH BlueZ] build: Fix build with latest tree From: Marcel Holtmann In-Reply-To: Date: Thu, 18 Mar 2021 10:12:03 +0100 Cc: "linux-bluetooth@vger.kernel.org" , Denis Kenzior Content-Transfer-Encoding: 8BIT Message-Id: References: <20210316205838.2164464-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, >>>> Latest ell tree has introduced useful.h and main-private.h which are >>>> required to build: >>>> >>>> ell/cert-crypto.c:35:10: fatal error: useful.h: No such file or >>>> directory >>>> 35 | #include "useful.h" >>>> | ^~~~~~~~~~ >>>> ... >>>> --- >>>> Makefile.am | 4 +++- >>>> 1 file changed, 3 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/Makefile.am b/Makefile.am >>>> index ff0df2196..7fce2e7c0 100644 >>>> --- a/Makefile.am >>>> +++ b/Makefile.am >>>> @@ -135,7 +135,9 @@ ell_headers = ell/util.h \ >>>> ell/asn1-private.h \ >>>> ell/cert-private.h \ >>>> ell/pem-private.h \ >>>> - ell/uuid.h >>>> + ell/uuid.h \ >>>> + ell/useful.h \ >>>> + ell/main-private.h >>>> >>> >>> this is the wrong fix. It will break in the tarballs. ELL will not install ell/useful.h ever. So every tarball needs to ensure that ell/useful.h is included. Which means you need to follow the fix from iwd here. >> >> Are you talking about this: >> >> https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=ed05585063f2e6d8f2fcd5f008b861062ac7a429 >> >> Shall we use the same mechanism to link the headers? > > I tried with distcheck to see what would be included in the tarball, > both useful.h and main-private.h do appear to be included, perhaps you > are saying that when we use non-built-in/shared ell > (--enable-external-ell) those headers are not installed, but I guess > in that case we don't need the private header as we won't be using the > built-in sources, or I'm missing something. That said perhaps this is > different in case of iwd as it seems to be using useful.h directly: > > https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/?id=17cf4da72613e80d08d51401399d02683ba8664b for the build case --enable-external-ell you need need ell/useful.h linked or provided in the tarball. All other headers are not needed in that case. See my iwd commit that does exactly that. Regards Marcel