Curl Compile Error: ../lib/.libs/libcurl.so: undefined reference to `idna_to_ascii_lz@LIBIDN_1.0'


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » CustomBuild

Curl Compile Error: ../lib/.libs/libcurl.so: undefined reference to `idna_to_ascii_lz@LIBIDN_1.0'Last Modified: Mar 17, 2010, 2:16 am
If you get a curl compile error similar to this one:

/bin/sh ../libtool --tag=CC --mode=link
c  -g0 -O2 -Wno-system-headers   -o curl  main.o hugehelp.o urlglob.o
writeout.o writeenv.o getpass.o homedir.o curlutil.o os-specific.o
strtoofft.o strdup.o rawstr.o nonblock.o  ../lib/libcurl.la -lz
libtool: link: gcc -g0 -O2 -Wno-system-headers -o .libs/curl main.o
hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o
os-specific.o strtoofft.o strdup.o rawstr.o nonblock.o
../lib/.libs/libcurl.so -lz
../lib/.libs/libcurl.so: undefined reference to
`idna_to_ascii_lz@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to
`stringprep_check_version@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to `tld_strerror@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to `tld_check_lz@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to `idna_strerror@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to
`idna_to_unicode_lzlz@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to `idn_free@LIBIDN_1.0'
../lib/.libs/libcurl.so: undefined reference to
`stringprep_locale_charset@LIBIDN_1.0'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory
`/usr/local/directadmin/custombuild/curl-7.20.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/usr/local/directadmin/custombuild/curl-7.20.0/src'
make: *** [all-recursive] Error 1

it would mean that you're missing the libidn files.  To add them, type:

yum install libidn libidn-devel

and compile again.

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST