

Where there is a #define iconv_open libiconv_openĪnd the cygwin library libiconv exports: $ objdump -x /usr/lib/ | grep iconv_open The test code should use the provided /usr/include/iconv.h Is looking for iconv_open in the library libiconv, wrongly. tmp/ccz9hxNr.o:conftest.c:(.text+0xe): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `iconv_open'

tmp/ccz9hxNr.o:conftest.c:(.text+0xe): undefined reference to `iconv_open' The test is failing as | char iconv_open () Ĭonfigure:6391: /bin/gcc -o conftest.exe conftest.c -liconv -lev >&5 I was able to reproduce the issue on my home Windows 10 as well.ĮDIT: Here is the configure file that I am using: enter link description here Tried copying the library to that location but that did not help either.

Unlinke in cygwin it is in /lib/ while in cygwin it is here /usr/include/. I have checked where is this libary file inconv.h located on Ubuntu. I have grepped the iconv_open() function name and found it in the cygwin folder /usr/i686-pc-cygwin/sys-root/usr/include/iconv.hĪnd also in the libiconv folder /usr/include/iconv.hīut for some reason the configure script is not able to find it. Make: Leaving directory '/home/msamec/Downloads/libiconv-1.13.1/libcharset' Make: Leaving directory '/home/msamec/Downloads/libiconv-1.13.1/libcharset/lib' home/msamec/Downloads/libiconv-1.13.1/libcharset/lib/./relocatable.c:324:(.text+0x113): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cygwin_conv_to_posix_path'Ĭollect2: error: ld returned 1 exit status home/msamec/Downloads/libiconv-1.13.1/libcharset/lib/./relocatable.c:324: undefined reference to `cygwin_conv_to_posix_path' libs/relocatable.o: In function `DllMain': libs/cygcharset-1.dll -Wl,-enable-auto-image-base -Xlinker -out-implib -Xlinker. I have tried to compile the library libiconv-1.13.1 manually but I have encountered some errors I don't know how to resolve: libtool: link: /bin/gcc -shared. configure I get this error: configure: error: in `/home/msamec/Downloads/i3-4.14.1/x86_64-unknown cygwin':Ĭonfigure: error: cannot find the required iconv_open() function despite tryingĪny clue what can I do to help it find the library? I have installed needed libiconv library via Cygwin setup but while running. I am trying to compile i3 version 4.14.1 under Cygwin 2.884 (Windows 7).
