0

我在 Cygwin 上构建 httrack,但它总是“检查 -liconv 中的 iconv ... no”并编译错误。

collect2: error: ld returned 1 exit status
./.libs/libhttrack.a(htscharset.o): In function `hts_convertStringCharset':
/home/myname/httrack/src/htscharset.c:441: undefined reference to `libiconv_open'
/home/myname/httrack/src/htscharset.c:460: undefined reference to `libiconv'
/home/myname/httrack/src/htscharset.c:491: undefined reference to `libiconv_close

我已经在 /usr/local/libiconv 中安装了 libiconv1.1.4,但它仍然是错误的。

nm /lib/libiconv.a | grep iconv
iconv.o:
00000000 D __libiconv_version
00015960 T _iconv_canonicalize
00015120 T _libiconv
00015180 T _libiconv_close
00014d00 T _libiconv_open
000151a0 T _libiconv_open_into
00015690 T _libiconvctl
00015810 T _libiconvlist
     U _libiconv_relocate
000000d0 T _libiconv_relocate
00000000 T _libiconv_set_relocation_prefix
iconv-exports.o:
00000000 D __imp___libiconv_version
     U __libiconv_version
libiconv.res.o:

配置 iconv 检查的代码:

### Check for iconv
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
$as_echo_n "checking for iconv in -liconv... " >&6; }
if ${ac_cv_lib_iconv_iconv+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-liconv  $LIBS"
4

1 回答 1

0

httrack需要几个补丁才能在 Cygwin 上正确构建和运行。libiconv 补丁修复了 iconv 配置测试以在 Cygwin(和其他使用 GNU libiconv 的平台)上工作。

于 2013-10-25T02:28:33.783 回答