Hello list,
When eglibc is configured with the attached option-groups.config file,
it fails with the following error:
vfprintf.c: In function '_IO_vfprintf_internal':
vfprintf.c:1601: error: too many arguments to function
'_i18n_number_rewrite'
vfprintf.c:1601: error: too many arguments to function
'_i18n_number_rewrite'
vfprintf.c:1898: error: too many arguments to function
'_i18n_number_rewrite'
vfprintf.c:1898: error: too many arguments to function
'_i18n_number_rewrite'
But when it is built with the same option groups, but this time with
OPTION_EGLIBC_LOCALE_CODE (of course with OPTION_POSIX_C_LANG_WIDE_CHAR
too) enabled, no build error.
Does this mean that configure machinery in eglibc-2.9 branch has a bug
or I missed some thing?
--- Begin Message ---
- To: patches@xxxxxxxxxx
- Subject: [patches] Fix building without EGLIBC_LOCALE_CODE
- From: Maxim Kuvyrkov <maxim@xxxxxxxxxxxxxxxx>
- Date: Thu, 23 Apr 2009 15:29:34 +0400
Hello,
I've applied the following simple patch to fix building failure when
EGLIBC is configured without EGLIBC_LOCALE_CODE option group.
--
Maxim K.
CodeSourcery Inc.
2009-04-23 Maxim Kuvyrkov <maxim@xxxxxxxxxxxxxxxx>
* stdio-common/_i18n_number.h (_i18n_number_rewrite): Update.
Index: stdio-common/_i18n_number.h
===================================================================
--- stdio-common/_i18n_number.h (revision 8348)
+++ stdio-common/_i18n_number.h (working copy)
@@ -116,7 +116,7 @@ _i18n_number_rewrite (CHAR_T *w, CHAR_T
#else
static CHAR_T *
-_i18n_number_rewrite (CHAR_T *w, CHAR_T *rear_ptr)
+_i18n_number_rewrite (CHAR_T *w, CHAR_T *rear_ptr, CHAR_T *end)
{
return w;
}
--- End Message ---