bug-gnulib
[Top][All Lists]
Advanced

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

Re: m4-1.4.10 compile error: unsigned reference to decimal_point_char


From: Bruno Haible
Subject: Re: m4-1.4.10 compile error: unsigned reference to decimal_point_char
Date: Sat, 14 Jul 2007 02:08:14 +0200
User-agent: KMail/1.5.4

Clemens Koller wrote:
> > m4-1.4.10 doesn't build anymore (1.4.9 built fine):
> >
> > make[1]: Entering directory `/usr/ports/core/m4/work/src/m4-1.4.10/ 
> > src'
> > gcc -std=gnu99  -O2 -pipe   -o m4 m4.o builtin.o debug.o eval.o  
> > format.o freeze.o input.o macro.o output.o path.o symtab.o  
> > stackovf.o ../lib/libm4.a
> > ../lib/libm4.a(vasnprintf.o): In function `vasnprintf':
> > vasnprintf.c:(.text+0x3690): undefined reference to  
> > `decimal_point_char'

Whee. I apologize for this bug. This should fix it:


2007-07-13  Bruno Haible  <address@hidden>

        * lib/vasnprintf.c (decimal_point_char): Define also if
        (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
        && !NEED_PRINTF_DIRECTIVE_A.
        Reported by Clemens Koller <address@hidden> via
        Gary V. Vaughan <address@hidden>.

--- lib/vasnprintf.c    11 Jun 2007 01:10:07 -0000      1.58
+++ lib/vasnprintf.c    14 Jul 2007 00:01:26 -0000
@@ -200,7 +200,7 @@
 /* Here we need to call the native sprintf, not rpl_sprintf.  */
 #undef sprintf
 
-#if NEED_PRINTF_DIRECTIVE_A && !defined IN_LIBINTL
+#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || 
NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL
 /* Determine the decimal-point character according to the current locale.  */
 # ifndef decimal_point_char_defined
 #  define decimal_point_char_defined 1





reply via email to

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