unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
@ 2016-07-16  9:13 Thomas Klausner
  2017-03-01  8:26 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Klausner @ 2016-07-16  9:13 UTC (permalink / raw)
  To: 24002

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
  2016-07-16  9:13 bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER Thomas Klausner
@ 2017-03-01  8:26 ` Andy Wingo
  2017-03-15 14:05   ` Thomas Klausner
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2017-03-01  8:26 UTC (permalink / raw)
  To: Thomas Klausner; +Cc: 24002

Hi Thomas,

On Sat 16 Jul 2016 11:13, Thomas Klausner <wiz@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER
  2017-03-01  8:26 ` Andy Wingo
@ 2017-03-15 14:05   ` Thomas Klausner
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Klausner @ 2017-03-15 14:05 UTC (permalink / raw)
  To: Andy Wingo; +Cc: 24002

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@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-15 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-16  9:13 bug#24002: configure: missing call to AC_C_FLEXIBLE_ARRAY_MEMBER Thomas Klausner
2017-03-01  8:26 ` Andy Wingo
2017-03-15 14:05   ` Thomas Klausner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).