[Top][All Lists]
[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: |
Clemens Koller |
Subject: |
Re: m4-1.4.10 compile error: unsigned reference to decimal_point_char |
Date: |
Sat, 14 Jul 2007 12:22:53 +0200 |
User-agent: |
Thunderbird 2.0.0.4 (Windows/20070604) |
Bruno Haible schrieb:
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:
Looks good!
Attached is the updated port for CRUX including the patch from Bruno.
Thank you!
Regards,
--
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany
http://www.anagramm-technology.com
Phone: +49-89-741518-50
Fax: +49-89-741518-19
# Description: A standard Unix macro processor with extensions
# URL: http://www.seindal.dk/rene/gnu/
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=m4
version=1.4.10
release=1
source=(
ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2
m4-vasnprintf-decimal_point_char.patch
)
build() {
cd $name-$version
patch -p0 < ../m4-vasnprintf-decimal_point_char.patch
./configure --prefix=/usr --mandir=/usr/man
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
}
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
0a35bab2f5d605e08083d7e3cbd4b8b0 m4-1.4.10.tar.bz2
268be8f482a1b7cb293557cceefa827a m4-vasnprintf-decimal_point_char.patch
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/m4
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/m4.1.gz