Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1103828imm; Thu, 13 Sep 2018 12:45:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdakIJ6unrLcI1nfMcrEPyHUFv7k4G3RMrpxrrv8xq7MARuCmtYP2V3I024ObIPCtAGxJ+nB X-Received: by 2002:a63:d002:: with SMTP id z2-v6mr8580656pgf.262.1536867907680; Thu, 13 Sep 2018 12:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536867907; cv=none; d=google.com; s=arc-20160816; b=eDJzTAY1bk0Hq95NcYG8U448y/NbrKFwrfa6XKTHA/CfwzlncUTckMFrHtMvNNYbhJ 4qj3RA5ekr/2dUzPQqoqJSqVCL+jhLNojXlJhUaC01cSq/4l0sjCUUWVotNmbmhb37rJ kpdjVKpgQhkm7MsMjIMW2TwylX3oOBZXTO7IInhfW7RcVAk46cLdc56bZqs2bh9qRCjY XO4ZWQ9KSDTeXKPOJR4Oro2Km5pHbXbkQITEddPKW1mRfEzeBKdDG45IbgpEEUxS32s6 +xZRcrF0McvEiBIgHCaVvEXvpKjf/6NOMrnvTyPUEnBNAkAIHIYcx6ZeSGGD9ntItAKE QxoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QruND5JbyP9rviR4COxHjaHP/42tNBQtJQouoSMf9AI=; b=owEfikIgfxS+eKsz3w5A75qa6+FF4C0UDy3+Vm0JGZMYiocDtGAVlwEBY6kFtskpq+ wbnz8xN1Zlm9dViCJ+GppTEgTB7+w8AQNEuAvJrBOjsV6Ag9v0OOF0TZyvRvwYUH3CYR BrqWSTGBvUDdFjstEs8xrOyd0v/hpVX5NlrmyEeAiwjaD7vcXmDdq2Qpxx/pBScKtWbs reqo0qIdePG3MdQi3MONHiDpRTymo91e/gE3bt36sFzok/rGTB1h51WOGH5Y6NdzvdSQ o7/zcN0T4rXt4l6PW9tmQKyfDDluOgVhGPjBBmdiUrZCHkGHbL8f5gS5D2zJ3NkezxMK ReVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p9dDrTQU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si4798243pge.124.2018.09.13.12.44.51; Thu, 13 Sep 2018 12:45:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p9dDrTQU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728049AbeINAzl (ORCPT + 99 others); Thu, 13 Sep 2018 20:55:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:41388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbeINAzl (ORCPT ); Thu, 13 Sep 2018 20:55:41 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A3EF20853; Thu, 13 Sep 2018 19:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536867884; bh=Cyeha3oztEh3UQHl06+1gaWXogkIxn1BpA1c2ayDM08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p9dDrTQUzghtZlHePtvTyD+ZI7SNjbsDuYRTv1gAFjX/tFtS2ExT0p76vRQB5Qt1I VyhQwox9Ug4V+v2JZiw+Waqrkjk0dDqer3m+mURma+DWtSE8QbpolocBTdGfhDST9r 2LPdzZkDYCagFUARWvi/VD8B8IVTB3Lil2wT7u5c= Received: by jouet.infradead.org (Postfix, from userid 1000) id 693BC140260; Thu, 13 Sep 2018 16:44:41 -0300 (-03) Date: Thu, 13 Sep 2018 16:44:41 -0300 From: Arnaldo Carvalho de Melo To: Alexei Starovoitov Cc: Josh Poimboeuf , Arnaldo Carvalho de Melo , Jakub Kicinski , Daniel Borkmann , Thomas Richter , Hendrik Brueckner , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List , Linux Networking Development Mailing List Subject: Re: [RFC/fix] Re: libbpf build broken on musl libc (Alpine Linux) Message-ID: <20180913194441.GG30969@kernel.org> References: <20180910172903.GB15516@kernel.org> <20180911122218.0d2eb3f9@cakuba> <20180911121543.GB22689@kernel.org> <20180911212451.hvnyfwyvcs4yojqy@ast-mbp> <20180913183240.GF30969@kernel.org> <20180913185629.su22fnimluoezntg@ast-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180913185629.su22fnimluoezntg@ast-mbp> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Sep 13, 2018 at 11:56:31AM -0700, Alexei Starovoitov escreveu: > On Thu, Sep 13, 2018 at 03:32:40PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Sep 11, 2018 at 02:24:53PM -0700, Alexei Starovoitov escreveu: > > > On Tue, Sep 11, 2018 at 09:15:43AM -0300, Arnaldo Carvalho de Melo wrote: > > > > Em Tue, Sep 11, 2018 at 12:22:18PM +0200, Jakub Kicinski escreveu: > > > > > On Mon, 10 Sep 2018 14:29:03 -0300, Arnaldo Carvalho de Melo wrote: > > > > > > After lunch I'll work on a patch to fix this, > > > > > Any luck? > > > > > > Well, we need to apply the patch below and make tools/lib/str_error_r.c > > > > live in a library that libbpf and perf is linked to. > > > > > do you want us to take the patch or you're applying it yourself? > > > > Please do some testing with my perf/libbpf+str_error_r branch, it has > > two patches to get this fixed, the one I sent and a prep one making > > libbpf link against libapi. > > > > [acme@jouet perf]$ git log --oneline -2 > > a7ab924b7fec (HEAD -> perf/urgent, acme.korg/perf/libbpf+str_error_r) tools lib bpf: Use str_error_r() to fix the build in Alpine Linux > > fb4a79e04c2b tools lib bpf: Build and link to tools/lib/api/ > > https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/commit/?h=perf/libbpf%2bstr_error_r&id=fb4a79e04c2b37ee873a3b31a3250925cf466fff > we cannot do this. > lib/api is GPL we cannot use it in LGPL library. Humm, I wrote tools/lib/str_error_r.c, so I can possibly relicense it as LGPL and then link just that one, as I did in one of my local patches. The only line that is not from me in tha file is from Josh Poinboeuf, which I CCed here. - Arnaldo