[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: some problems with uClibc
From: |
Giuseppe Scrivano |
Subject: |
Re: some problems with uClibc |
Date: |
Thu, 14 Apr 2011 18:39:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Bruno,
Bruno Haible <address@hidden> writes:
>> 1) With an uClibc compiled without wchar support I had to include
>> <stddef.h> in the "wchar.h" file. uClibc defines __GLIBC__ as well, so
>> the previous guarded inclusion doesn't work. I had to add:
>>
>> #ifdef __UCLIBC__
>> # include <stddef.h>
>> #endif
>
> What was the problem exactly? In particular, which error do you get when
> you run
> $ gnulib-tool --create-testdir --dir=/tmp/testdir --with-tests
> --with-c++-tests wchar
> and then compile the resulting testdir on your uClibc-without-wide-char
> system? First with "make", then with "make -k".
I get exactly the same error:
make[4]: Entering directory `/tmp/testdir/gltests'
g++ -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./..
-I../gllib -I./../gllib -MT test-wchar-c++.o -MD -MP -MF
.deps/test-wchar-c++.Tpo -c -o test-wchar-c++.o test-wchar-c++.cc
mv -f .deps/test-wchar-c++.Tpo .deps/test-wchar-c++.Po
g++ -o test-wchar-c++ test-wchar-c++.o ../gllib/libgnu.a
gcc -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./..
-I../gllib -I./../gllib --sysroot=/tmp/openrisc/toolchain/or32-linux/sys-root
-MT test-wchar.o -MD -MP -MF .deps/test-wchar.Tpo -c -o test-wchar.o
test-wchar.c
test-wchar.c:26:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘a’
test-wchar.c:31:1: error: ‘NULL’ undeclared here (not in a function)
test-wchar.c:31:1: error: bit-field ‘verify_error_if_negative_size__’ width not
an integer constant
>> 2) Even if I have used the `mbtowc' gnulib module, the mbtowc.o object
>> file wasn't included in the final static library, it was necessary to
>> tweak manually the Makefile to do so.
I'll take a more detailed look later tonight.
Thanks,
Giuseppe