[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] './check-stateless . ASCII' error during 'make ch
Re: [bug-gnu-libiconv] './check-stateless . ASCII' error during 'make check' run for MSVC builds on Windows
Mon, 24 Apr 2017 00:24:54 +0200
KMail/5.1.3 (Linux/4.4.0-72-generic; KDE/5.18.0; x86_64; ; )
> ./check-stateless . ASCII
> make: *** [Makefile:32: check] Error 127
Such iconv binaries are completely broken.
> Reproduced for <ICC|MSVC><Debug|Release><Shared> builds only, if CFLAGS
> variable contain key ' -DUNICODE '.
Sure: -DUNICODE changes many prototypes in the <windows.h> headers,
to use wchar_t* strings instead of char* strings. It is absolutely normal
that you get garbage when trying a Unix program with this flag.
> Not sure whether it's an error of <ICC|MSVC> or a flaw in libiconv testsuite.
> But ' -DUNICODE ' is a default key for MESA, QT and other libraries builds
> using MSVC. Would be nice to use it for libiconv too. This allow to make
> builds of all this libraries with the same build options.
Request denied. Please learn what -DUNICODE means and why it was terribly silly
by Microsoft to introduce this option.
> P.S. The above libiconv build was made in slightly different way than
> described in README.windows manual. To accomplish it an additional patch
> required (see attachment).
The libtool mailing lists are the right place to post such patches,
since the original source is in libtool.m4.