iconv implementation using Win32 API to convert.

Overview
win_iconv is a iconv implementation using Win32 API to convert.

win_iconv is placed in the public domain.

ENVIRONMENT VARIABLE:
    WINICONV_LIBICONV_DLL
        If $WINICONV_LIBICONV_DLL is set, win_iconv uses the DLL.  If
        loading the DLL or iconv_open() failed, falls back to internal
        conversion.  If a few DLL are specified as comma separated list,
        the first loadable DLL is used.  The DLL should have
        iconv_open(), iconv_close() and iconv().  Or libiconv_open(),
        libiconv_close() and libiconv().
        (only available when USE_LIBICONV_DLL is defined at compile time)

Win32 API does not support strict encoding conversion for some codepage.
And MLang function drops or replaces invalid bytes and does not return
useful error status as iconv does.  This implementation cannot be used for
encoding validation purpose.

Yukihiro Nakadaira <[email protected]>
Comments
  • can't work.

    can't work.

    Hello,
    
    I run following C++ routine code with VC 20005 on the Win7 64bit:
    
        const char* in = "Hello";
    
        char out[255]="";
        char* pout = out;
    
        size_t inlen = (size_t)strlen(in), outlen;
    
        iconv_t cd = iconv_open("UTF-8","GBK"); 
    
        size_t retsize = iconv(cd, &in, &inlen, &pout, &outlen);
    
        iconv_close(cd); 
    
        cout<< out <<endl;
    
    
    After the running, the available out still is a empty string.
    
    What should I do for the available out as same as the available in?
    
    

    Original issue reported on code.google.com by [email protected] on 7 Jun 2012 at 9:47

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 8
  • warnings with 64 bits compiler

    warnings with 64 bits compiler

    Using mingw-w64 64 bits compiler, I have those warnings:
    
    win_iconv.c:1194:12: warning: cast from pointer to integer of different size 
    [-Wpointer-to-int-cast]
    win_iconv.c:1196:13: warning: cast to pointer from integer of different size 
    [-Wint-to-pointer-cast]
    win_iconv.c:1204:16: warning: cast to pointer from integer of different size 
    [-Wint-to-pointer-cast]
    win_iconv.c:1207:56: warning: use of C99 long long integer constant 
    [-Wlong-long]
    win_iconv.c:1209:27: warning: cast to pointer from integer of different size 
    [-Wint-to-pointer-cast]
    win_iconv.c:1212:45: warning: cast to pointer from integer of different size 
    [-Wint-to-pointer-cast]
    
    

    Original issue reported on code.google.com by [email protected] on 19 Sep 2011 at 3:38

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 5
  • const char ** vs char ** in iconv function.

    const char ** vs char ** in iconv function.

    glibc iconv and libiconv (and presumably other iconv implementations) use char 
    ** for the second argument to the iconv function.
    
    win-iconv uses const char **, which makes it unnecessarily cumbersome to write 
    code which compiles cleanly using any iconv library (such as cross-platform 
    code).
    
    I would suggest changing the function prototype to match glibc and winiconv 
    (although, const would be more logical, to be frank).
    

    Original issue reported on code.google.com by [email protected] on 3 Aug 2011 at 8:46

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 5
  • Adding missing UCS-2-INTERNAL encoding as an alias of UCS2.

    Adding missing UCS-2-INTERNAL encoding as an alias of UCS2.

    Certain windows installations report their encoding as UCS-2-INTERNAL, which was causing SDL initialization failure when using cygwin's mingw64_64-w64-win-iconv libraries

    See issue #32

    opened by s-daveb 4
  • Reject bytes >= 0x80 when converting from ASCII

    Reject bytes >= 0x80 when converting from ASCII

    Patch taken from GLib (file still under the public domain).

    This behavior is more consistent with other iconv implementations (like GNU libiconv, glibc and Mac OS X).

    opened by nalimilan 4
  • Assumption that sizeof(DWORD)==sizeof(void*) in find_imported_module_by_funcname

    Assumption that sizeof(DWORD)==sizeof(void*) in find_imported_module_by_funcname

    http://code.google.com/p/win-iconv/source/browse/trunk/win_iconv.c#1194
    
    This generates a half-dozen warnings and potentially won't work when compiling 
    for 64 bit windows.
    It'd probably be better to declare base as size_t and change the casts 
    accordingly.
    

    Original issue reported on code.google.com by [email protected] on 3 Aug 2011 at 5:10

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 4
  • maybe uninitialized variable

    maybe uninitialized variable

    compiling with gcc 4.7:
    
    win_iconv.c: In function 'utf32_mbtowc':
    win_iconv.c:1539:52: warning: 'wc' may be used uninitialized in this function 
    [-Wmaybe-uninitialized]
    
    as i don't know the code, i don't know if it's areally a problem, and if yes, 
    what the best fix is.
    

    Original issue reported on code.google.com by [email protected] on 6 Sep 2011 at 1:48

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 3
  • Patch to fix dll name with mingw

    Patch to fix dll name with mingw

    When win-iconv is built with cmake using the mingw cross compiler, the built 
    dll is called libiconv.dll. However, the .def file and the import library still 
    refer to iconv.dll (note the missing lib prefix).
    
    The attached patch fixes the issue by making sure the dll name is iconv.dll 
    even with mingw.
    

    Original issue reported on code.google.com by [email protected] on 20 Jul 2011 at 7:00

    Attachments:

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 3
  • can't be build on rhel-6 with cmake-2.6.4

    can't be build on rhel-6 with cmake-2.6.4

    on rhel-6 the system cmake-2.6.4 which can't build win-iconv. if i build 
    cmake-2.8.4 for rhel-6 then it can build win-iconv, but it'd be useful if the 
    system's default cmake also can build win-iconv without overload system 
    packages (which is always dangerous).
    would ben't be it possible to modify cmake build files to be able to build with 
    cmake-2.6.4 too?
    

    Original issue reported on code.google.com by [email protected] on 19 Jun 2011 at 10:05

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 3
  • Document GLIB_COMPILATION macro

    Document GLIB_COMPILATION macro

    I discovered the GLIB_COMPILATION macro when reading the code, and I found it quite interesting. Would it be possible to add a word about it in the README? Mentioning whether it increases compliance with Unicode would be good.

    It could also be given a more general name, but that's a detail.

    opened by nalimilan 2
  • Issue #8

    Issue #8

    https://github.com/win-iconv/win-iconv/commit/045c6fee3fd911191b93601615e08c3a55425fab

    This broke #8.

    The author claims to add const "as it should be". Well, the standard says otherwise. Even glibc people are pretty serious about keeping it non-const, quoting:

    Ulrich Drepper 2006-08-14 16:30:51 UTC What are you talking about? That patch is completely, utterly wrong. The current code and the manual is correct, there is no problem. The current spec has already been revised with an interpretation request and the first draft of the upcoming spec is fixed. There is no const. Period. Your patch makes the glibc of whatever moron is using it non-compliant.

    At very least, please offer us a #define we can set to make the header export non-const version.

    opened by rr- 2
  • `make -jX` breaks build. using multiple threads introduces non-reproducibility and probabilistic breakage

    `make -jX` breaks build. using multiple threads introduces non-reproducibility and probabilistic breakage

    The makefile is not thread-safe. Building with e.g. make -j4 introduces race conditions and (probabilistic) build failures.

    When using make -j1, builds do not fail, and the built artifacts are deterministic. When using e.g. make -j4, builds sometimes fail, and the built artifacts are NOT deterministic.


    $ git clone https://github.com/win-iconv/win-iconv.git
    Cloning into 'win-iconv'...
    [...]
    $ cd win-iconv
    $ git checkout 9f98392dfecadffd62572e73e9aba878e03496c4
    Note: switching to '9f98392dfecadffd62572e73e9aba878e03496c4'.
    [...]
    HEAD is now at 9f98392 Merge pull request #33 from bittwiddler1/master
    $ export SOURCE_DATE_EPOCH=1530212462
    

    build1:

    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    ar rcs libiconv.a win_iconv.o
    ranlib libiconv.a
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    

    build2:

    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ar rcs libiconv.a win_iconv.o
    ranlib libiconv.a
    

    Notice how the order of the last three lines is different between build1 and build2.

    build3
    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    ar rcs libiconv.a win_iconv.o
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ranlib libiconv.a
    
    build4
    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    ar rcs libiconv.a win_iconv.o
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ranlib libiconv.a
    bfd plugin: libiconv.a: file too short
    
    build5
    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ar rcs libiconv.a win_iconv.o
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 10682374 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 11337734 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 11862022 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 12582918 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 13238278 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 13762566 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 14483462 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 15138822 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 17301510 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 18677780 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 21757958 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 25231366 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 30146580 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 31195142 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 31522836 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 37224454 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 42926086 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 43581446 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 44171270 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 55377926 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 102760454 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 114032646 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 117178388 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 117702662 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 119603206 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 120127494 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 121831430 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 122355718 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 123928582 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 132251654 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 132907014 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 133431302 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 134152198 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 135069702 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 135790598 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 136708102 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 137428998 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 138346502 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 139067398 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 139984902 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 140705798 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 145293318 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 145948678 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 146472966 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 147193862 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 148111366 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 148832262 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 149749766 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 150470662 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 151388166 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 152109062 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 155648006 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 156303366 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 156958726 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 160890886 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 161546246 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 162201606 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 164560902 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 165216262 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 165871622 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 167051270 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 169082886 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 170328070 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 170983430 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 172163078 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 173473798 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 174260230 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 175112198 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 175439892 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 181141510 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 181927942 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 182452230 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 183369734 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 184680454 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 186712084 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 187432966 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 188022804 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 189005830 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 189726726 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 191692820 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 192413702 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 193724422 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 196083732 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 197263380 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 197984262 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 199294982 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 200671252 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 201654278 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 202702854 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 203751430 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 234684422 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 235601940 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 238944276 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 242090004 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 244776980 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 246546452 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 248774662 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 249102342 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 250413076 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 251985926 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 254083092 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 257949716 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 259194886 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 259915796 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 260964358 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 265814022 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 266534918 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 267976710 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 268697606 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 269746182 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 270467078 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 272367622 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 273088518 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 274333702 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 275054598 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 276955142 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 277676038 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 278921222 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 287178758 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 302972934 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 308871188 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 372572166 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 385613830 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 386859014 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 398852102 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 406519814 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 418316294 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 461307924 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 462028806 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 463994900 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 464715782 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 521207828 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 521928710 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 523894804 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 524615686 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 542441492 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 548798470 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 552599572 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 580190228 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 583532564 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 589037588 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 591003668 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 592052244 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 604241926 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 605880326 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 619053062 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 636289044 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 640024596 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 641794068 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 645005332 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 649265172 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 651952148 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 662962182 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 262164 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 786438 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 1310726 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 1835014 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 2359302 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 2883590 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 3407878 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 3932166 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 4456454 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 4980742 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 5505030 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 6029318 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 6553606 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 7077894 in relocs
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    [... cut ... above line appeared 150 more times here ...]
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 7602182 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 8126470 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 8650758 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 9175046 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 9699334 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 10223622 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 10747910 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 11272198 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 11796486 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 12320774 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 12845062 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 13369350 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 13893638 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 14417926 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 14942214 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 15466502 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 15990790 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 16515078 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 17039366 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 17563654 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 18087942 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 18612230 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 19136518 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 19660806 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 20185094 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 20709382 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 21233670 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 21757958 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 22282246 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 22806534 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 23330822 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 23855110 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 24379398 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 24903686 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 25427974 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 25952262 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 26476550 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 27000838 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 27525126 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 28049414 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 28573702 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 29097990 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 29622278 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 30146566 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 30670854 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 31195142 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 31719430 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 32243718 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 32768006 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 33292294 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 33816582 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 34340870 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 34865158 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 35389446 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 35913734 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 36438022 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 36962310 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 37486598 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 38010886 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 38535174 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 39059462 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 39583750 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 40108038 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 40632326 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 41156614 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 41680902 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 42205190 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 42729478 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 43253766 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 43778054 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 44302342 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 44826630 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 45350918 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 45875206 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 46399494 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 46923782 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 47448070 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 47972358 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 48496646 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 49020934 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 49545222 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 50069510 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 50593798 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 51118086 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 51642374 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 52166662 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 52690950 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 53215238 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 53739526 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 54263814 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 54788102 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 55312390 in relocs
    ranlib libiconv.a
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 55836678 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 56360966 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 56885254 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 57409542 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 57933830 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 58458118 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 58982406 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 59506694 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 60030982 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 60555270 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 61079558 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 61603846 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 62128134 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 62652422 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 63176710 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 63700998 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 64225286 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 64749574 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 65273862 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 65798150 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 66322438 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 66846726 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 67371014 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 67895302 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 68419590 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 68943878 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 69468166 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 69992454 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 70516742 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 71041030 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 71565318 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 72089606 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 72613894 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 73138182 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 73662470 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 74186758 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 74711046 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 75235334 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 75759622 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 76283910 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 76808198 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 77332486 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 77856774 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 78381062 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 78905350 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 79429638 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 79953926 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 80478214 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 81002502 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 81526790 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 82051078 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 82575366 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 83099654 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 83623942 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 84148230 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 84672518 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 85196806 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 85721094 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 86245382 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 86769670 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 87293958 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 87818246 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 88342534 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 88866822 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 89391110 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 89915398 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 90439686 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 90963974 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 91488262 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 92012550 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 92536838 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 93061126 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 93585414 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 94109702 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 94633990 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 95158278 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 95682566 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 96206854 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 96731142 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 97255430 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 97779718 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 98304006 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 98828294 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 99352582 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 99876870 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 100401158 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 100925446 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 101449734 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 101974022 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 102498310 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 103022598 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 103546886 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 104071174 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 104595462 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 105119750 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 105644038 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 106168326 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 106692614 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 107216902 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 107741190 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 108265478 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 108789766 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 109314054 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 109838342 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 110362630 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 110886918 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 111411206 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 111935494 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 112459782 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 112984070 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 113508358 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 114032646 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 114556934 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 115081222 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 115605510 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 116129798 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 116654086 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 117178374 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 117702662 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 118226950 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 118751238 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 119275526 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 119799814 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 120324102 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 120848390 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 121372678 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 121896966 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 122421254 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 122945542 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 123469830 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 123994118 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 124518406 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 125042694 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 125566982 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 126091270 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 126615558 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 127139846 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 127664134 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 128188422 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 128712710 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 129236998 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 129761286 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 130285574 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 130809862 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 131334150 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 131858438 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 132382726 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 132907014 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 133431302 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 133955590 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 134479878 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 135004166 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 135528454 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 136052742 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 136577030 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 137101318 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 137625606 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 138149894 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 138674182 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 139198470 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 139722758 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 140247046 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 140771334 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 141295622 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 141819910 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 142344198 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 142868486 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 143392774 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 143917062 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 144441350 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 144965638 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 145489926 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 146014214 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 146538502 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 147062790 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 147587078 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 148111366 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 148635654 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 149159942 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 149684230 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 150208518 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 150732806 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 151257094 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 151781382 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 152305670 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 152829958 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 153354246 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 153878534 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 154402822 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 154927110 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 155451398 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 155975686 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 156499974 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 157024262 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 157548550 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 158072838 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 158597126 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 159121414 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 159645702 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 160169990 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 160694278 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 161218566 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 161742854 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 162267142 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 162791430 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 163315718 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 163840006 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 164364294 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 164888582 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 165412870 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 165937158 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 166461446 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 166985734 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 167510022 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 168034310 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 168558598 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 169082886 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 169607174 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 170131462 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 170655750 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 171180038 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 171704326 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 172228614 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 172752902 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 173277190 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 173801478 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 174325766 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 174850054 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 175374342 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 175898630 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 176422918 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 176947206 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 177471494 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 177995782 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 178520070 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 179044358 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 179568646 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 180092934 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 180617222 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 181141510 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 181665798 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 182190086 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 182714374 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 183238662 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 183762950 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 184287238 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 184811526 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 185335814 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 185860102 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 186384390 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 186908678 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 187432966 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 204996614 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 205258758 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 205520902 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 206569478 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 207618054 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 208666630 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 209715206 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 210763782 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 2097158 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 4194324 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 6291476 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 8388628 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 10747924 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 12845076 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 14942228 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 17825812 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 19922964 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 22020116 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 24117268 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 26214420 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 28311572 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 30408724 in relocs
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    [... cut ... above line appeared 350 more times here ...]
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: error: 0-bit reloc in dll
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 32505876 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 34603028 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 36700180 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 38797332 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 40894484 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 42991636 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 45088788 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 47185940 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 49283092 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 51380244 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 53477396 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 55836692 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 57933844 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 60293140 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 62652436 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 64749588 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 66846740 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 68943892 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 71041044 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 73138196 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 75235348 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: warning: illegal symbol index 1714290708 in relocs
    /usr/bin/i686-w64-mingw32-ld: win_iconv.o: illegal relocation type 27753 at address 0x35
    /usr/bin/i686-w64-mingw32-ld: warning: win_iconv.o: local symbol `(null)' has no section
    collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
    compilation terminated.
    make: *** [Makefile:36: iconv.dll] Error 1
    
    build6
    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    ar rcs libiconv.a win_iconv.o
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ranlib libiconv.a
    
    build7
    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    ar rcs libiconv.a win_iconv.o
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ranlib libiconv.a
    bfd plugin: libiconv.a: file too short
    
    build8
    $ git clean -ffxdq
    $ CC="i686-w64-mingw32-gcc" make -j4
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c -DMAKE_DLL
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -c win_iconv.c
    i686-w64-mingw32-gcc -pedantic -Wall -DUSE_LIBICONV_DLL -DDEFAULT_LIBICONV_DLL=\"\" -s -o win_iconv.exe win_iconv.c -DMAKE_EXE
    ar rcs libiconv.a win_iconv.o
    i686-w64-mingw32-gcc -shared -o iconv.dll -Wl,-s -Wl,--out-implib=libiconv.dll.a -Wl,--export-all-symbols win_iconv.o 
    ranlib libiconv.a
    

    (build4, build5, and build7 errored)

    opened by SomberNight 0
  • Encoding name

    Encoding name "SHIFFT_JIS"

    https://github.com/win-iconv/win-iconv/blob/9f98392dfecadffd62572e73e9aba878e03496c4/win_iconv.c#L313-L314

    In win_iconv.c, there is "SHIFFT_JIS" and "SHIFFT_JIS-MS". Is this typo?

    opened by N2583ZYOB6 1
  • iconv does not correctly handle Euro-Sign entered in CP1252 -> iso-8859-1//TRANSLIT

    iconv does not correctly handle Euro-Sign entered in CP1252 -> iso-8859-1//TRANSLIT

    What steps will reproduce the problem?
    create a file euro.txt containing a bare Euro sign (€) Hex 80 on a line and 
    run
    
    win_iconv -c -f CP1252 -t iso-8859-1//TRANSLIT euro.txt
    
    What is the expected output? (verified with Linux SLES 11-SP3)
    EUR
    
    What do you see instead? 
    ?
    
    Redirected to a file that file contains: Hex 3F
    
    This would be correct for iso-8859-15.
    
    What version of the product are you using? On what operating system?
    win_iconv from win-iconv-0.06-bin.zip dated 21.10.2012 
    on Windows 7 32bit SP1
    
    Please provide any additional information below.
    
    

    Original issue reported on code.google.com by [email protected] on 19 May 2014 at 2:19

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 1
  • win-iconv should use the GNU iconv test suite

    win-iconv should use the GNU iconv test suite

    Hello.
    
    I am a member of the ReactOS project (www.reactos.org) and we are interested in 
    your project.
    
    Some of the dependencies that our project relies on depends on an iconv 
    implementation. The fact that win-iconv is based on WIN32 API without any other 
    dependency and its light weight make it very appealing to us.
    
    However, we need some quality insurance to ensure that the use of your library 
    will be transparent to software programmed mostly against the GNU 
    implementation (www.gnu.org/software/libiconv/). That's why we would like 
    win-iconv to be tested against their test suite.
    
    Of course, we are ready to contribute in any way needed to get this done.
    
    Regards.
    Jérôme
    

    Original issue reported on code.google.com by [email protected] on 7 Dec 2012 at 9:54

    Type-Defect Priority-Medium auto-migrated 
    opened by GoogleCodeExporter 1
Releases(v0.0.8)
Owner
null
Tiny blocker of Windows tracking and telemetry written in plain C++/Win32 API.

Tiny blocker of Windows tracking and telemetry written in plain C++/Win32 API. Just run once as admin and forget. No questions asked. No harmful actions performed like other Windows spying blockers try.

null 5 Mar 30, 2022
A simple thread-safe implementation of runtime obfuscation for Win32 applications.

Thread-Safe Win32 Runtime Obfuscation A simple thread-safe implementation of runtime obfuscation for Win32 applications. The main use case for this is

Daniel 1 Mar 6, 2022
GameBoy emulator with debugger written in C++ using Win32 and SDL2

脳(のう)腐(ふ) DMG-01 emulator written in modern C++ using Win32 API and SDL2. It is intended as a hobby project to sharpen my C++ skills. The emulator is

Jimmy Yang 21 Sep 21, 2022
Small program using GMP to convert a decimal number (1.8) into a reduced fraction (9/5)

gmp_rationalize This is a small program to convert a decimal number (like 1.8) into a reduced fraction (like 9/5), using GMP for handling arbitrary-pr

null 3 Apr 5, 2022
Jittey - A public domain text editor written in C and Win32

Jittey (Jacob's Terrific Text Editor) is a single-file basic text editor written in pure C and Win32, there is no real reason to use it, but it

Jakub Šebek 27 Sep 28, 2022
Easily hook WIN32 x64 functions

About Library for easy hooking of arbitrary functions in WIN32 x64 executables. Only requires target function address. Disassembles the function prolo

tcpie 17 Jun 12, 2022
Acrylic effect for all existing Win32 context menus

AcrylicMenus This is a proof-of-concept tiny application that applies acrylic effect to almost all existing Win32 context menus on Windows 10 and Wind

null 392 Nov 29, 2022
A LoadLibrary injector for CS:GO that automatically bypasses Trusted Mode by disabling various Win32 function hooks.

TrustedInjector This is a LoadLibrary injector for Counter-Strike: Global Offensive. Information It automatically bypasses trusted mode by removing ho

Brandon 18 Sep 12, 2022
Vaca - An experimental Win32 wrapper for C++ to develop GUI programs

Vaca Visual Application Components Abstraction Copyright (c) 2005-2012 David Capello All rights reserved. Vaca is a library to develop GUI application

David Capello 64 Nov 25, 2022
A tool to apply accent color to win32 controls.

AccentApplicator A tool to apply accent color to win32 controls. Works with Windows 10 only. Overall Progress Controls Button Checkbox Combobox Edit T

Rounak 12 Oct 31, 2022
In DFS-BFS Implementation In One Program Using Switch Case I am Using an Simple And Efficient Code of DFS-BFS Implementation.

DFS-BFS Implementation-In-One-Program-Using-Switch-Case-in-C Keywords : Depth First Search(DFS), Breadth First Search(BFS) In Depth First Search(DFS),

Rudra_deep 1 Nov 17, 2021
Convert LLVM coverage information into HTML reports

llvm-coverage-to-html converter The clang compiler supports source based coverage tracking, but the default reporting options are very basic. This too

Thomas Neumann 2 Oct 11, 2021
POC tool to convert CobaltStrike BOF files to raw shellcode

BOF2Shellcode POC tool to convert a Cobalt Strike BOF into raw shellcode. Introduction This code was written as part of a blog tutorial on how to conv

FalconForce 129 Nov 15, 2022
Convert Javascript/TypeScript to C

Convert Javascript/TypeScript to C

Andrei Markeev 1.1k Nov 23, 2022
cbmconvert: create, extract and convert 8-bit Commodore binary archives

cbmconvert: create, extract and convert 8-bit Commodore binary archives cbmconvert extracts files from most known archive file formats that are used o

Marko Mäkelä 6 Feb 5, 2022
Resize, crop, and convert images on Upload.

Upload Image Plugin Resize, crop, and convert images on Upload. To use this plugin use the following settings in a "Transformation Step" in the Upload

Upload.js 20 Mar 31, 2022
pluggable tool to convert an unrolled TritonAST to LLVM-IR, optimize it and get back to TritonAST

it is fork from https://github.com/fvrmatteo/TritonASTLLVMIRTranslator *WARNINGS: tested only linux(ubuntu 20.04) and only llvm and clang version 10*

pr4gasm 5 Jun 10, 2022
A tool to convert Call of Duty XBIN/EXPORT files to and from each other.

exportxbin exportxbin is an enhanced version of export2bin included in the Call of Duty: Black Ops III Mod Tools. Its main goal is to provide users wi

Philip 3 Jan 22, 2022
Tiny project to convert a .ase to a RGBA Byte array

Tiny project to convert a .ase to a RGBA Byte array

Stephen Ma 3 Apr 6, 2021