GNU bug report logs - #49628
Compiling error after a successfully ./configure

Previous Next

Package: parted;

Reported by: "Roberto A. Foglietta" <roberto.foglietta <at> gmail.com>

Date: Sun, 18 Jul 2021 23:17:01 UTC

Severity: normal

To reply to this bug, email your comments to 49628 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#49628; Package parted. (Sun, 18 Jul 2021 23:17:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Roberto A. Foglietta" <roberto.foglietta <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sun, 18 Jul 2021 23:17:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Roberto A. Foglietta" <roberto.foglietta <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: Compiling error after a successfully ./configure
Date: Sun, 18 Jul 2021 22:10:05 +0200
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Information forwarded to bug-parted <at> gnu.org:
bug#49628; Package parted. (Thu, 26 Aug 2021 22:45:01 GMT) Full text and rfc822 format available.

Message #8 received at 49628 <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: "Roberto A. Foglietta" <roberto.foglietta <at> gmail.com>
Cc: 49628 <at> debbugs.gnu.org
Subject: Re: bug#49628: Compiling error after a successfully ./configure
Date: Thu, 26 Aug 2021 15:44:35 -0700
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





This bug report was last modified 3 years and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.