yann@541: Matthias Kaehlcke writes: yann@541: yann@541: A compilation of an ARM toolchain with glibc 2.7 using crosstool-ng yann@541: failed with a gcc error in glibc-2.7/posix/regex_internal.c, more yann@541: concretly in the function build_wcs_upper_buffer(). The return type of yann@541: the function prototype in regex_internal.h doesn't correspond with the yann@541: return type of this function in regex_internal.c. yann@541: yann@541: The attached patch corrects the return type of the function prototype yann@541: in regex_internal.h yann@541: yann@541: --- glibc-2.7/posix/regex_internal.h.org 2008-05-30 11:16:01.000000000 +0200 yann@541: +++ glibc-2.7/posix/regex_internal.h 2008-05-30 11:16:35.000000000 +0200 yann@541: @@ -391,7 +391,7 @@ yann@541: internal_function; yann@541: # ifdef RE_ENABLE_I18N yann@541: static void build_wcs_buffer (re_string_t *pstr) internal_function; yann@541: -static int build_wcs_upper_buffer (re_string_t *pstr) internal_function; yann@541: +static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) internal_function; yann@541: # endif /* RE_ENABLE_I18N */ yann@541: static void build_upper_buffer (re_string_t *pstr) internal_function; yann@541: static void re_string_translate_buffer (re_string_t *pstr) internal_function;