From unknown Sun Jun 22 04:29:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49628: Compiling error after a successfully ./configure Resent-From: "Roberto A. Foglietta" Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Sun, 18 Jul 2021 23:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49628 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 49628@debbugs.gnu.org X-Debbugs-Original-To: bug-parted@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162665016714076 (code B ref -1); Sun, 18 Jul 2021 23:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2021 23:16:07 +0000 Received: from localhost ([127.0.0.1]:57616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5G0y-0003ew-Nm for submit@debbugs.gnu.org; Sun, 18 Jul 2021 19:16:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:40780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5D7p-0003Qm-Tg for submit@debbugs.gnu.org; Sun, 18 Jul 2021 16:10:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5D7p-0000Uy-MR for bug-parted@gnu.org; Sun, 18 Jul 2021 16:10:57 -0400 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:36461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5D7n-0002et-T6 for bug-parted@gnu.org; Sun, 18 Jul 2021 16:10:57 -0400 Received: by mail-io1-xd33.google.com with SMTP id u7so17428408ion.3 for ; Sun, 18 Jul 2021 13:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Nem9u1vqmk+gIONi6ByiYXpBFJeYJJipRTPQWGXLHCs=; b=jcHEgw8IOutgGZXv9KVppF9A2hNqTkfTQKlaYg8VjJc4YTTer1s2yPupyZtQdrdN5H p+QXAxIf6KBLgfRpOwrjx72cWLXKCnmudRTBk9YMHJUplOCddJ5iduBZg2B1BQXvexLP 8HbMuSekq2gp4obggYe2zqkFq+tx8WZiUJelg4yD9MgFNrAR5qLqAjAHCyx6GxksyzpC inGmt4faPVj5ISHPSH+fnQcnIrJ3ff9lmjq5wEKw4g0P422ikgmQ3f20aMWIRKnUNbPx d6/yUohWcIt69/QYacyhq1+1gERFIF2noQQjdmkUFVBCWoGZpvHWDVWSCdOGF7l7Wobu bs2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Nem9u1vqmk+gIONi6ByiYXpBFJeYJJipRTPQWGXLHCs=; b=cLF7j0TJKS1st1IMmito4//bDSdVSWrSMjNYd5dzBU/NmPgeXjipIJLIeK64QyLk8A D1my1BOvX5W7jcZ92i608HM0QXDKYGE0EnhxV1e9wwxAyuae7La7+G9ggpnv4h6Foz74 D256a0JGEfsgvouKrM/PPle8tzAI4onRnz/jC5xqt/gdXP0UlLM/+mLfdC3cPsR+MASt 07g3WBrdGDArKb11ghSjaZY/G5D34xfWWN0ZKJFfszouWjxaerDUIR5sV1aL8NVMF8lb FIhHPajR5Oqq3z576NztsyR73A4OSOEcw8RXy/zSTN1m07xhLNoN+PsQB79g8NqMTsFd 53BA== X-Gm-Message-State: AOAM5314xg2FyFReFZMGVQ79b7GjLcS5yHu506PqKbhMqyvmQVun+z3j Ev4RJjH/250TDxqWT0j440fUDPoIhOR4U9rcCu3JkGHzhHvT X-Google-Smtp-Source: ABdhPJx1a01DU0Zmmx+oqdsHWPnWdoYqMfpmzukQhDc36njQIW924K7tXsqDmWZUcclvH6dlw/ivIzqfEb8vi0Ju1Go= X-Received: by 2002:a5d:84d2:: with SMTP id z18mr16372218ior.130.1626639053537; Sun, 18 Jul 2021 13:10:53 -0700 (PDT) MIME-Version: 1.0 From: "Roberto A. Foglietta" Date: Sun, 18 Jul 2021 22:10:05 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000f6c71c05c76b6a88" Received-SPF: pass client-ip=2607:f8b0:4864:20::d33; envelope-from=roberto.foglietta@gmail.com; helo=mail-io1-xd33.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sun, 18 Jul 2021 19:16:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000f6c71c05c76b6a88 Content-Type: text/plain; charset="UTF-8" Hi all, I am trying to compile parted 3.4 with the following configuration: ./configure --without-readline --disable-debug --disable-nls --disable-shared --enable-discover-only --disable-device-mapper however, make gives me a compile error. Instead with this, everything is fine ./configure --without-readline --disable-debug --disable-nls --disable-shared --disable-device-mapper The difference is in -enable-discover-only and digging into the error gpt.c: In function 'gpt_read': gpt.c:1075:35: error: 'write_back' undeclared (first use in this function) 1075 | if (!_parse_header (disk, gpt, &write_back)) | ^~~~~~~~~~ gpt.c:1075:35: note: each undeclared identifier is reported only once for each function it appears in I found that variable is not defined when DISCOVER_ONLY is enabled Cheers, -- Roberto A. Foglietta +39.349.33.30.697 --000000000000f6c71c05c76b6a88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

=C2=A0I am trying to compile pa= rted 3.4 with the following configuration:

./confi= gure --without-readline --disable-debug --disable-nls --disable-shared --en= able-discover-only --disable-device-mapper

=C2=A0h= owever, make gives me a compile error. Instead with this, everything=C2=A0i= s fine

./configure --without-readline --disable-de= bug --disable-nls --disable-shared --disable-device-mapper

=C2=A0The difference is in=C2=A0

=C2=A0 -= enable-discover-only

=C2=A0and digging into th= e error

gpt.c: In function 'gpt_read':
= gpt.c:1075:35: error: 'write_back' undeclared (first use in this fu= nction)
=C2=A01075 | =C2=A0 if (!_parse_header (disk, gpt, &write_ba= ck))
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ^~~~~~~~~~
gpt.c:1075:35: note: each undeclared identifier is report= ed only once for each function it appears in

= =C2=A0I found that variable is not defined when=C2=A0DISCOVER_ONLY is enabl= ed

=C2=A0Cheers,
--
Roberto A. Foglietta
+39.349.33.30= .697
--000000000000f6c71c05c76b6a88-- From unknown Sun Jun 22 04:29:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49628: Compiling error after a successfully ./configure Resent-From: "Brian C. Lane" Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Thu, 26 Aug 2021 22:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49628 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: "Roberto A. Foglietta" Cc: 49628@debbugs.gnu.org Received: via spool by 49628-submit@debbugs.gnu.org id=B49628.163001788511795 (code B ref 49628); Thu, 26 Aug 2021 22:45:01 +0000 Received: (at 49628) by debbugs.gnu.org; 26 Aug 2021 22:44:45 +0000 Received: from localhost ([127.0.0.1]:50713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJO72-00034B-V5 for submit@debbugs.gnu.org; Thu, 26 Aug 2021 18:44:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJO70-000343-P0 for 49628@debbugs.gnu.org; Thu, 26 Aug 2021 18:44:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630017882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H5E3O2l6JiWllEClInrzdktgwBkyZZ59h3TpnLO3X5k=; b=YMH4VX8xH7IZyJpxFkGkDNDZU7msSdJ7g4FfFSxmZg0+x9TrpRh3RGeMraaSL9A7q+4u8p CLREbAuCzZAv3Opvn+cMc4pQ5yeGD2Qf2x0uRmxx6uaojjHpo2+Dt3jlm0OeoLoLsWZJfM cAGzxNEM8zdyLNBsEKRJjOVVFzFKhQM= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-546-38wYdl6xOu-4B6CxsaJA8w-1; Thu, 26 Aug 2021 18:44:39 -0400 X-MC-Unique: 38wYdl6xOu-4B6CxsaJA8w-1 Received: by mail-pj1-f72.google.com with SMTP id ob1-20020a17090b390100b001793bdcc41eso574449pjb.0 for <49628@debbugs.gnu.org>; Thu, 26 Aug 2021 15:44:39 -0700 (PDT) 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:references :mime-version:content-disposition:in-reply-to; bh=H5E3O2l6JiWllEClInrzdktgwBkyZZ59h3TpnLO3X5k=; b=OfG19LhWKwq4hF4caejmpBvNYhBvaYQAwrkBaMv8kEReWbtOeoIX1DIGL9LKj7yp23 jTF9v9/5d6qkORKJE9eiE5iRnh4vnQDltfXOtUrgqh8pBogGOKZ89nTMlIn2Moe3Y2hn P14EcVQdOprErf+wNCRbSYLHhHq8COHHxWLOgAzUOVI7p37DVUrcQAHNVLsCGvQUGgYQ pizo0VKufqK0ovlteBqAfj8K3ZTVeG+QB3M1Kat5jDVtjAU7qiyI1ih4ItH7UPfuXI2Z tn1Hw8AY8JqzOZRfpqP0X06bWwLCqdL8jId9uo0Owz79xFTQsUkAABretrX93xvGFga9 fuEA== X-Gm-Message-State: AOAM533iNzZMQ0Mqljdk9tkZo1Qdloe+/tJPjX6nIxfR0agvLp047Jvz H6IcjA7HPhMs/X9qBTyW3w1aJ0rAFfuEKWQNaHCaqeY9vw3raqFq2lAZ6QvVKmWhdpcFcmDaTps vHuh/zgb2AU+SDCQ= X-Received: by 2002:a62:1e46:0:b0:3f2:7036:8023 with SMTP id e67-20020a621e46000000b003f270368023mr3364851pfe.21.1630017878014; Thu, 26 Aug 2021 15:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQwhDs/YoCaE6PY3N3H7BSthMRL4nH3aTUpO2SO8Ua/RiARGniyLTndCo1kiVkC5AaU6WNvA== X-Received: by 2002:a62:1e46:0:b0:3f2:7036:8023 with SMTP id e67-20020a621e46000000b003f270368023mr3364830pfe.21.1630017877639; Thu, 26 Aug 2021 15:44:37 -0700 (PDT) Received: from ohop.brianlane.com ([2601:603:5000:3e9:52e5:49ff:fe52:c5be]) by smtp.gmail.com with ESMTPSA id v186sm4122969pfb.178.2021.08.26.15.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Aug 2021 15:44:37 -0700 (PDT) Date: Thu, 26 Aug 2021 15:44:35 -0700 From: "Brian C. Lane" Message-ID: References: MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bcl@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sun, Jul 18, 2021 at 10:10:05PM +0200, Roberto A. Foglietta wrote: > Hi all, > > I am trying to compile parted 3.4 with the following configuration: > > ./configure --without-readline --disable-debug --disable-nls > --disable-shared --enable-discover-only --disable-device-mapper > > however, make gives me a compile error. Instead with this, everything is > fine > > ./configure --without-readline --disable-debug --disable-nls > --disable-shared --disable-device-mapper > > The difference is in > > -enable-discover-only > > and digging into the error > > gpt.c: In function 'gpt_read': > gpt.c:1075:35: error: 'write_back' undeclared (first use in this function) > 1075 | if (!_parse_header (disk, gpt, &write_back)) > | ^~~~~~~~~~ > gpt.c:1075:35: note: each undeclared identifier is reported only once for > each function it appears in > > I found that variable is not defined when DISCOVER_ONLY is enabled Will it build for you if you remove the DISCOVER_ONLY define surrounding the write_back variable declaration? It's safe to declare, all the uses of it are also disabled. I can't get things to compile at all if I turn on discover mode on Fedora so I can't test whether that's the only change needed. Brian -- Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart