cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libidn not configured when using --with-libidn?

From: Jeffrey Walton <noloader_at_gmail.com>
Date: Mon, 24 Aug 2015 18:56:12 -0400

> But from config.log, it looks like the problem traces back to libiconv:
>
> configure:25468: checking whether to build with libidn
> configure:25498: result: yes (/usr/local)
>
> configure:25822: checking if idna_to_ascii_4i can be linked
> configure:25851: gcc -o conftest -O2 -Wno-system-headers
> -I/usr/local/include \
> -I/usr/local/include -I/usr/local/include/openssl -L/usr/local/lib
> -L/usr/loca\
> l/lib conftest.c /usr/local/lib/libidn.a -lssl -lcrypto -lz >&5
> Undefined symbols:
> "_libiconv_open", referenced from:
> _str_iconv in libidn.a(striconv.o)
> "_libiconv_close", referenced from:
> _str_iconv in libidn.a(striconv.o)
> _str_iconv in libidn.a(striconv.o)
> "_libiconv", referenced from:
> _mem_cd_iconv in libidn.a(striconv.o)
> _mem_cd_iconv in libidn.a(striconv.o)
> ...
>
Cancel... This did the trick for me:

    sed -i "" 's|-lidn|/usr/local/lib/libidn.a -liconv|g' configure.ac \
        configure lib/Makefile.m32 src/Makefile.m32 lib/curl_config.h.in

Thanks, JW.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-25