Re: 2.6.0.RC1 cygwin compilation issue

mannino <[email protected]> Tue, 4 Sep 2018 11:29:52 +0300
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
> Yes but have you tried what I suggested?
Sorry but what did you suggest? I did fetch "a fresh unpacked source
tree" from GitHub. Maybe I didn't understand what you wanted
me to do.

> By the way, does dar-2.5.16 has the same problem on your
> installation?
Yes, exactly the same issue. "checking for iconv - yes", but linking fails.

wget 
ftp://ftp.dm3c.org/dar.linux.free.fr/Releases/Source_code/dar-2.5.16.tar.gz
tar xf dar-2.5.16.tar.gz
cd dar-2.5.16
misc/batch_cygwin dar-2.5.16 win64

gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: 
/cygdrive/i/szsz/tmpp/gcc/gcc-7.3.0-3.x86_64/src/gcc-7.3.0/configure 
--srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-7.3.0-3.x86_64/src/gcc-7.3.0 
--prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc 
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C 
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin 
--target=x86_64-pc-cygwin --without-libiconv-prefix 
--without-libintl-prefix --libexecdir=/usr/lib --enable-shared 
--enable-shared-libgcc --enable-static 
--enable-version-specific-runtime-libs --enable-bootstrap 
--enable-__cxa_atexit --with-dwarf2 --with-tune=generic 
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite 
--enable-threads=posix --enable-libatomic --enable-libcilkrts 
--enable-libgomp --enable-libitm --enable-libquadmath 
--enable-libquadmath-support --disable-libssp --enable-libada 
--disable-symvers --with-gnu-ld --with-gnu-as 
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix 
--without-libintl-prefix --with-system-zlib --enable-linker-build-id 
--with-default-libstdcxx-abi=gcc4-compatible 
--enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 7.3.0 (GCC)

find /cygdrive/c/cygwin64/ -name *iconv*

...
/cygdrive/c/cygwin64/bin/iconv.exe
...
/cygdrive/c/cygwin64/lib/libiconv.a
/cygdrive/c/cygwin64/lib/libiconv.dll.a
...
/cygdrive/c/cygwin64/usr/include/iconv.h
/cygdrive/c/cygwin64/usr/include/sys/iconvnls.h
/cygdrive/c/cygwin64/usr/share/aclocal/iconv.m4
...

If you have an up to date list of required cygwin packages, I can check
mine against it and install missing.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot