bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: m4-1.4.10 segfault with x86_64 during ./configure when checking whet


From: Bruno Haible
Subject: Re: m4-1.4.10 segfault with x86_64 during ./configure when checking whether printf supports infinite 'long double' arguments
Date: Mon, 17 Dec 2007 12:37:23 +0100
User-agent: KMail/1.5.4

Gilles Espinasse wrote:
> It compile fine. I didn't look the result of tests.
> The problem stay un-noticed for some times until I was looking at the
> console screen during compilation.

So the only problem is that the configure test crashes? This is easy to
fix; I'm applying this patch:

2007-12-17  Bruno Haible  <address@hidden>

        * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
        avoid a segmentation fault of the configure test on x86_64 systems.

*** m4/printf.m4.orig   2007-12-17 10:18:35.000000000 +0100
--- m4/printf.m4        2007-12-17 10:17:58.000000000 +0100
***************
*** 1,4 ****
! # printf.m4 serial 20
  dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # printf.m4 serial 21
  dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
***************
*** 240,245 ****
--- 240,246 ----
          [gl_cv_func_printf_infinite_long_double],
          [
            AC_TRY_RUN([
+ ]GL_NOCRASH[
  #include <float.h>
  #include <stdio.h>
  #include <string.h>
***************
*** 265,270 ****
--- 266,272 ----
  static long double zeroL = 0.0L;
  int main ()
  {
+   nocrash_init();
    if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
        || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
      return 1;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]