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

Previous Next

Package: guile;

Reported by: Thomas Klausner <wiz <at> NetBSD.org>

Date: Sat, 16 Jul 2016 09:14:01 UTC

Severity: normal

To reply to this bug, email your comments to 24002 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-guile <at> gnu.org:
bug#24002; Package guile. (Sat, 16 Jul 2016 09:14:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Klausner <wiz <at> NetBSD.org>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 16 Jul 2016 09:14:01 GMT) Full text and rfc822 format available.

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

From: Thomas Klausner <wiz <at> NetBSD.org>
To: bug-guile <at> gnu.org
Subject: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
Date: Sat, 16 Jul 2016 11:13:04 +0200
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




Information forwarded to bug-guile <at> gnu.org:
bug#24002; Package guile. (Wed, 01 Mar 2017 08:28:02 GMT) Full text and rfc822 format available.

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

From: Andy Wingo <wingo <at> pobox.com>
To: Thomas Klausner <wiz <at> NetBSD.org>
Cc: 24002 <at> debbugs.gnu.org
Subject: Re: bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
Date: Wed, 01 Mar 2017 09:26:52 +0100
Hi Thomas,

On Sat 16 Jul 2016 11:13, Thomas Klausner <wiz <at> NetBSD.org> 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 <at> gnu.org:
bug#24002; Package guile. (Wed, 15 Mar 2017 14:06:01 GMT) Full text and rfc822 format available.

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

From: Thomas Klausner <wiz <at> NetBSD.org>
To: Andy Wingo <wingo <at> pobox.com>
Cc: 24002 <at> debbugs.gnu.org
Subject: Re: bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
Date: Wed, 15 Mar 2017 15:05:37 +0100
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 <at> NetBSD.org> 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




This bug report was last modified 8 years and 91 days ago.

Previous Next


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