GNU bug report logs - #24002
configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Thomas Klausner <wiz@HIDDEN>; dated Sat, 16 Jul 2016 09:14:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 24002 <at> debbugs.gnu.org:


Received: (at 24002) by debbugs.gnu.org; 15 Mar 2017 14:05:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 15 10:05:41 2017
Received: from localhost ([127.0.0.1]:57284 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1co9Yb-0004mo-6o
	for submit <at> debbugs.gnu.org; Wed, 15 Mar 2017 10:05:41 -0400
Received: from danbala.ifoer.tuwien.ac.at ([128.130.168.114]:50366)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wiz@HIDDEN>) id 1co9YY-0004me-Us
 for 24002 <at> debbugs.gnu.org; Wed, 15 Mar 2017 10:05:39 -0400
Received: by danbala.ifoer.tuwien.ac.at (Postfix, from userid 116)
 id 8A5C0A50D; Wed, 15 Mar 2017 15:05:37 +0100 (CET)
Date: Wed, 15 Mar 2017 15:05:37 +0100
From: Thomas Klausner <wiz@HIDDEN>
To: Andy Wingo <wingo@HIDDEN>
Subject: Re: bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
Message-ID: <20170315140537.5x7ds7g5em5php3b@danbala>
References: <20160716091303.GP23723@HIDDEN>
 <sfid-H20170301-092709-+030.40-1@HIDDEN>
 <87o9xljtbn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87o9xljtbn.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 24002
Cc: 24002 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Wed, Mar 01, 2017 at 09:26:52AM +0100, Andy Wingo wrote:
> Hi Thomas,
> 
> On Sat 16 Jul 2016 11:13, Thomas Klausner <wiz@HIDDEN> writes:
> 
> > On NetBSD, the build of guile-2.0.12 breaks early because
> > FLEXIBLE_ARRAY_MEMBER is not defined:
> >
> > In file included from strftime.c:33:0:
> > time-internal.h:48:14: error: 'FLEXIBLE_ARRAY_MEMBER' undeclared here (not in a function)
> >    char abbrs[FLEXIBLE_ARRAY_MEMBER];
> 
> I just pulled in an updated Gnulib which I hope fixes this problem.  If
> you build from Git then you should be able to verify the fix, or wait
> until we have another release.

I just tried the 2.1.8 release (from March 10, so after your mail),
and the problem still exists.

Cheers,
 Thomas




Information forwarded to bug-guile@HIDDEN:
bug#24002; Package guile. Full text available.

Message received at 24002 <at> debbugs.gnu.org:


Received: (at 24002) by debbugs.gnu.org; 1 Mar 2017 08:27:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 01 03:27:02 2017
Received: from localhost ([127.0.0.1]:60918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cizbC-0006gf-Jj
	for submit <at> debbugs.gnu.org; Wed, 01 Mar 2017 03:27:02 -0500
Received: from pb-sasl1.pobox.com ([64.147.108.66]:53991
 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wingo@HIDDEN>) id 1cizbB-0006gE-4f
 for 24002 <at> debbugs.gnu.org; Wed, 01 Mar 2017 03:27:01 -0500
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1])
 by pb-sasl1.pobox.com (Postfix) with ESMTP id 845C248CB9;
 Wed,  1 Mar 2017 03:27:00 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=sasl; bh=pf1KfTMpChb8Azw3u4NbH5T7DYI=; b=kcyFuD
 B/JGPsKK37x6dI7XnwhBw+hHbZLq5t8WD8VIKmUQAm+kjDb8z0AwYDZUPNEntwml
 4KJkdV2xVw55YifOaPuHZZV4taB1NkUrT4JuTyEVHfTFr64NRhfEA6ZhnohOHGct
 BjkQ5+MXtYrHbP+g+268IiBZT9gLuFe/6nrqE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; q=dns; s=sasl; b=Y07CVpeKloE5r5r7ZyIF20EQtvEe26rn
 7DgxcGUdoYdSpIizptDxDgX6cNSTwg52HTzgvfbV4LQaF61f7WX1jj6wq3hfh6Zg
 hDmLUFy0LpJMtDbNe6gcmjLfkqoc+dmONwLf9ptCD3pgT4NnxPc5nCqt34RRp2YE
 RpsbnGFMmR0=
Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1])
 by pb-sasl1.pobox.com (Postfix) with ESMTP id 4514248CB7;
 Wed,  1 Mar 2017 03:27:00 -0500 (EST)
Received: from clucks (unknown [109.190.228.233])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 69EF748CB6;
 Wed,  1 Mar 2017 03:26:59 -0500 (EST)
From: Andy Wingo <wingo@HIDDEN>
To: Thomas Klausner <wiz@HIDDEN>
Subject: Re: bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
References: <20160716091303.GP23723@HIDDEN>
Date: Wed, 01 Mar 2017 09:26:52 +0100
In-Reply-To: <20160716091303.GP23723@HIDDEN> (Thomas Klausner's
 message of "Sat, 16 Jul 2016 11:13:04 +0200")
Message-ID: <87o9xljtbn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Pobox-Relay-ID: D6D4363E-FE58-11E6-9CF2-B667064AB293-02397024!pb-sasl1.pobox.com
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 24002
Cc: 24002 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Hi Thomas,

On Sat 16 Jul 2016 11:13, Thomas Klausner <wiz@HIDDEN> writes:

> On NetBSD, the build of guile-2.0.12 breaks early because
> FLEXIBLE_ARRAY_MEMBER is not defined:
>
> In file included from strftime.c:33:0:
> time-internal.h:48:14: error: 'FLEXIBLE_ARRAY_MEMBER' undeclared here (not in a function)
>    char abbrs[FLEXIBLE_ARRAY_MEMBER];

I just pulled in an updated Gnulib which I hope fixes this problem.  If
you build from Git then you should be able to verify the fix, or wait
until we have another release.

Thanks for the report,

Andy




Information forwarded to bug-guile@HIDDEN:
bug#24002; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Jul 2016 09:13:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 16 05:13:25 2016
Received: from localhost ([127.0.0.1]:53486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bOLf3-0005G9-N0
	for submit <at> debbugs.gnu.org; Sat, 16 Jul 2016 05:13:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45367)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wiz@HIDDEN>) id 1bOLf1-0005Fv-0e
 for submit <at> debbugs.gnu.org; Sat, 16 Jul 2016 05:13:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1bOLev-0008Md-1I
 for submit <at> debbugs.gnu.org; Sat, 16 Jul 2016 05:13:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:57797)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1bOLeu-0008MN-UG
 for submit <at> debbugs.gnu.org; Sat, 16 Jul 2016 05:13:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36337)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1bOLes-00048T-UO
 for bug-guile@HIDDEN; Sat, 16 Jul 2016 05:13:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1bOLen-0008Kb-Tk
 for bug-guile@HIDDEN; Sat, 16 Jul 2016 05:13:13 -0400
Received: from danbala.ifoer.tuwien.ac.at ([128.130.168.64]:50667)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1bOLen-0008KK-Mu
 for bug-guile@HIDDEN; Sat, 16 Jul 2016 05:13:09 -0400
Received: by danbala.ifoer.tuwien.ac.at (Postfix, from userid 116)
 id 14990A5A4; Sat, 16 Jul 2016 11:13:04 +0200 (CEST)
Date: Sat, 16 Jul 2016 11:13:04 +0200
From: Thomas Klausner <wiz@HIDDEN>
To: bug-guile@HIDDEN
Subject: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
Message-ID: <20160716091303.GP23723@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hi!

On NetBSD, the build of guile-2.0.12 breaks early because
FLEXIBLE_ARRAY_MEMBER is not defined:

In file included from strftime.c:33:0:
time-internal.h:48:14: error: 'FLEXIBLE_ARRAY_MEMBER' undeclared here (not in a function)
   char abbrs[FLEXIBLE_ARRAY_MEMBER];
              ^

config.h has:

/* #undef FLEXIBLE_ARRAY_MEMBER */

I think the problem is that m4/gnulib-comp.m4 has:

  if test "$HAVE_TIMEZONE_T" = 0; then
    func_gl_gnulib_m4code_flexmember
  fi

but on NetBSD, HAVE_TIMEZONE_T is 1 and so
func_gl_gnulib_m4code_flexmember is not called and
FLEXIBLE_ARRAY_MEMBER is not defined.

FLEXIBLE_ARRAY_MEMBER is used in time-internal.h which is included by:

lib/time_rz.c lib/timegm.c lib/strftime.c lib/mktime.c

so there might be more cases where this will break.

Cheers,
 Thomas




Acknowledgement sent to Thomas Klausner <wiz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#24002; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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