Re: 2.6.0.RC1 cygwin compilation issue

mannino <[email protected]> Mon, 3 Sep 2018 20:41:10 +0300
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
> can you try the following on a fresh unpacked source tree:
>
> #cd dar-2.6.0.RC3
> #misc/batch_cygwin 2.6.0.RC3 win64
>
> this should build a zip package in the current directory.
The following commands:

wget https://github.com/Edrusb/DAR/archive/master.zip
unzip master.zip
cd DAR-master
misc/init
misc/batch_cygwin 2.6.0.RC3 win64

produce the same compilation error as before (duplicating it here for
the sake of completeness):

---

libtool: link: g++ -static -o dar_static.exe command_line.o 
config_file.o dar.o dar_suite.o hide_file.o no_comment.o line_tools.o 
crit_action_cmd_line.o  -lintl ../libdar/.libs/libdar64.a -lpthread 
-lrsync -lgcrypt -lxxx -llzma -llzo2 -lbz2 -lz -ldl
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../lib/libintl.a(dcigettext.o): 
In function `_nl_find_msg':
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/dcigettext.c:1315: 
undefined reference to `libiconv'
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/dcigettext.c:1315:(.text+0x5ed): 
relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
`libiconv'
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/dcigettext.c:1183: 
undefined reference to `libiconv_open'
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/dcigettext.c:1183:(.text+0x96f): 
relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
`libiconv_open'
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/dcigettext.c:1177: 
undefined reference to `libiconv_open'
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/dcigettext.c:1177:(.text+0xaf9): 
relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
`libiconv_open'
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../lib/libintl.a(relocatable.o): 
In function `libintl_set_relocation_prefix':
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/relocatable.c:171: 
undefined reference to `libiconv_set_relocation_prefix'
/usr/src/debug/gettext-0.19.8.1-2/gettext-tools/../gettext-runtime/intl/relocatable.c:171:(.text+0x46): 
relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
`libiconv_set_relocation_prefix'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:574: dar_static.exe] Error 1
make[3]: Leaving directory '/cygdrive/d/DAR-master/src/dar_suite'
make[2]: *** [Makefile:424: all-recursive] Error 1
make[2]: Leaving directory '/cygdrive/d/DAR-master/src'
make[1]: *** [Makefile:466: all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/d/DAR-master'
make: *** [Makefile:398: all] Error 2
if test -z 'strip'; then \
   make  INSTALL_PROGRAM="/bin/sh /cygdrive/d/DAR-master/install-sh -c -s" \
     install_sh_PROGRAM="/bin/sh /cygdrive/d/DAR-master/install-sh -c 
-s" INSTALL_STRIP_FLAG=-s \
       install; \
else \
   make  INSTALL_PROGRAM="/bin/sh /cygdrive/d/DAR-master/install-sh -c -s" \
     install_sh_PROGRAM="/bin/sh /cygdrive/d/DAR-master/install-sh -c 
-s" INSTALL_STRIP_FLAG=-s \
     "INSTALL_PROGRAM_ENV=STRIPPROG='strip'" install; \
fi

---

I have tried a few more iconv-related cygwin packages but by now I don't
know what else to try and why it is refusing to compile yet saying
"checking for working iconv... yes".

Same thing with dar-2.6.0.RC3.tar.gz from your FTP.

I doubt this has any significance but I'm doing all this on Windows
Server 2012R2 x64 VPS.

NB: is this an unintentional typo to be corrected?
   can uses multiple threads : NO
s/uses/use/


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