[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libidn fails when builddir!=srcdir and wchar.h is unavailable
From: |
Simon Josefsson |
Subject: |
Re: libidn fails when builddir!=srcdir and wchar.h is unavailable |
Date: |
Tue, 12 Feb 2008 16:43:38 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Mike Frysinger <address@hidden> writes:
> On Tuesday 12 February 2008, Simon Josefsson wrote:
>> Mike Frysinger <address@hidden> writes:
>> >> If so, which header file is pulling in wchar.h?
>> >
>> > the gnulib code via the lib/idn-int.h. for example:
>> >
>> > bfin-linux-uclibc-gcc -DLOCALEDIR=\"/usr/local/share/locale\"
>> > -DHAVE_CONFIG_H -I. -I.. -I../../libidn-1.0/src -I../../libidn-1.0/lib
>> > -I../lib -I../../libidn-1.0/gl -I../gl -g -O2 -MT idn.o -MD -MP -MF
>> > .deps/idn.Tpo -c -o idn.o ../../libidn-1.0/src/idn.c In file included
>> > from ../../libidn-1.0/lib/stringprep.h:32,
>> > from ../../libidn-1.0/src/idn.c:37:
>> > ../lib/idn-int.h:90:21: error: wchar.h: No such file or directory
>> > make[1]: *** [idn.o] Error 1
>>
>> Thanks. This is bad. Is there no wchar.h on your system? For
>> reference, which system is this?
>
> there is no wchar.h by design -- uClibc allows you to optionally disable all
> wchar support.
Ah, I see.
>> The problem is that idn-int.h is installed into /usr/include/, so even
>> if I apply your fix to solve the problems inside libidn, there would
>> still be problem for all applications that include the libidn headers.
>
> hrm, that's stinky
I think the check in idn-int.h (i.e., gnulib's stdint.h) should be
conditional on if there is a wchar.h. Other #include's in stdint.h have
proper HAVE_FOO_H checks, so this may be an omission.
/Simon
- libidn fails when builddir!=srcdir and wchar.h is unavailable, Mike Frysinger, 2008/02/09
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Simon Josefsson, 2008/02/12
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Mike Frysinger, 2008/02/12
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Simon Josefsson, 2008/02/12
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Mike Frysinger, 2008/02/12
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable,
Simon Josefsson <=
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Simon Josefsson, 2008/02/19
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Mike Frysinger, 2008/02/19
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Simon Josefsson, 2008/02/19
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Mike Frysinger, 2008/02/19
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Simon Josefsson, 2008/02/19
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Mike Frysinger, 2008/02/19
- Re: libidn fails when builddir!=srcdir and wchar.h is unavailable, Simon Josefsson, 2008/02/19