This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
build failure with --enable-clocale=gnu and glibc 2.3(.1)
- From: Zack Weinberg <zack at codesourcery dot com>
- To: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 14 Nov 2002 13:07:09 -0800
- Subject: build failure with --enable-clocale=gnu and glibc 2.3(.1)
I get this error:
/home/zack/src/gcc/vanilla/build/gcc/xgcc -shared-libgcc -B/home/zack/src/gcc/vanilla/build/gcc/ -nostdinc++ -L/home/zack/src/gcc/vanilla/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/zack/src/gcc/vanilla/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/zack/src/i/gcc_ni/i686-pc-linux-gnu/bin/ -B/home/zack/src/i/gcc_ni/i686-pc-linux-gnu/lib/ -isystem /home/zack/src/i/gcc_ni/i686-pc-linux-gnu/include -nostdinc++ -I/home/zack/src/gcc/vanilla/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/zack/src/gcc/vanilla/build/i686-pc-linux-gnu/libstdc++-v3/include -I/home/zack/src/gcc/vanilla/libstdc++-v3/libsupc++ -I/home/zack/src/gcc/vanilla/libstdc++-v3/libmath -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c codecvt_members.cc -fPIC -DPIC -o .libs/codecvt_members.o
In file included from codecvt_members.cc:37:
c++locale_internal.h:37: error: `nl_langinfo_l' was not declared in this scope
c++locale_internal.h:37: error: ISO C++ forbids declaration of `__nl_langinfo_l
' with no type
codecvt_members.cc: In member function `virtual std::codecvt_base::result
std::codecvt<wchar_t, char, mbstate_t>::do_out(mbstate_t&, const wchar_t*,
const wchar_t*, const wchar_t*&, char*, char*, char*&) const':
codecvt_members.cc:53: error: cannot convert `int* const' to `__locale_struct*'
for argument `1' to `__locale_struct* __uselocale(__locale_struct*)'
codecvt_members.cc:57: error: cannot convert `int*' to `__locale_struct*' for
argument `1' to `__locale_struct* __uselocale(__locale_struct*)'
codecvt_members.cc: In member function `virtual std::codecvt_base::result
std::codecvt<wchar_t, char, mbstate_t>::do_in(mbstate_t&, const char*, const
char*, const char*&, wchar_t*, wchar_t*, wchar_t*&) const':
codecvt_members.cc:88: error: cannot convert `int* const' to `__locale_struct*'
for argument `1' to `__locale_struct* __uselocale(__locale_struct*)'
codecvt_members.cc:92: error: cannot convert `int*' to `__locale_struct*' for
argument `1' to `__locale_struct* __uselocale(__locale_struct*)'
make[2]: *** [codecvt_members.lo] Error 1
make[2]: Leaving directory `/home/zack/src/gcc/vanilla/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zack/src/gcc/vanilla/build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [all-recursive-am] Error 2
trying to compile libstdc++ from CVS HEAD with --enable-clocale=gnu
(autodetected) and glibc 2.3.1. Anyone else seen this?
nl_langinfo_l does appear in /usr/include/locale.h
(wrapped in #ifdef __USE_GNU) but __nl_langinfo_l does not.
zw