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

Re: [issues] [eglibc-2.9 svn revision 8535]: build error when configured with OPTION_EGLIBC_LOCALE_CODE disabled



Gaye Abdoulaye Walsimou wrote:
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?

Hello Gaye,

This was a bug EGLIBC code; it was fixed several weeks ago by the attached patch. The patch should apply to 2.9 branch without problems.

Regards,

--
Maxim K.
CodeSourcery
--- Begin Message ---
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 ---