From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE769C433DB for ; Mon, 25 Jan 2021 19:49:04 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6801620684 for ; Mon, 25 Jan 2021 19:49:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6801620684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kamp.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l47rD-0000SY-0C for qemu-devel@archiver.kernel.org; Mon, 25 Jan 2021 14:49:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l47ps-0008HW-3Z for qemu-devel@nongnu.org; Mon, 25 Jan 2021 14:47:41 -0500 Received: from kerio.kamp.de ([195.62.97.192]:56039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l47pk-000509-QV for qemu-devel@nongnu.org; Mon, 25 Jan 2021 14:47:37 -0500 X-Footer: a2FtcC5kZQ== Received: from submission.kamp.de ([195.62.97.28]) by kerio.kamp.de with ESMTPS (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)) for qemu-devel@nongnu.org; Mon, 25 Jan 2021 20:47:26 +0100 Received: (qmail 22944 invoked from network); 25 Jan 2021 19:47:28 -0000 Received: from ac50.vpn.kamp-intra.net (HELO ?172.20.250.50?) (pl@kamp.de@::ffff:172.20.250.50) by submission.kamp.de with ESMTPS (DHE-RSA-AES128-SHA encrypted) ESMTPA; 25 Jan 2021 19:47:28 -0000 Subject: Re: configure does not detect librados or librbd since the switch to meson To: Paolo Bonzini , dillaman@redhat.com, "qemu-devel@nongnu.org" , philmd@redhat.com References: <23268a39-078d-ed13-6bb4-590ce1292662@kamp.de> From: Peter Lieven Message-ID: <00855a0d-33e0-d835-e6e0-4d3af963975b@kamp.de> Date: Mon, 25 Jan 2021 20:47:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=195.62.97.192; envelope-from=pl@kamp.de; helo=kerio.kamp.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Am 25.01.21 um 16:24 schrieb Paolo Bonzini: > On 25/01/21 15:31, Peter Lieven wrote: >> on Dedian / Ubuntu configure does no longer detect librbd / librados >> since the switch to meson. >> >> I need to add dirs: ['/usr/lib'] to the cc.find_library for librados >> and librbd. But I am not familiar with meson >> >> and can't say if thats the appropriate fix. > > Can you include the meson-logs/meson-log.txt output? Sure: https://pastebin.com/u3XtbDvQ > >> Further issue: if I specify configure --enable-rbd and cc.links fails >> the configure command succeeds and rbd support is disabled. > > That's a separate bug. For the rbd check I can address this as well in the series. Sadly, librbd has no pkg-config (yet). So, I have to create a C file that checks for the version. Peter