cURL / Mailing Lists / curl-library / Single Mail

curl-library

Building libcurl with the latest ares.

From: Michael Mastroianni <MMastroianni_at_choicestream.com>
Date: Mon, 26 Sep 2005 17:50:12 -0400

I got ares building on linux, got libcurl to build and link against it
(I added #define USE_ARES 1 to config.h), but then when I went to link
my application against it, I got errors like:

../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(hostip.o
): In fu
nction `Curl_resolv':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/hostip.c:423:
undefined refer
ence to `Curl_getaddrinfo'
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/hostip.c:430:
undefined refer
ence to `Curl_is_resolved'
../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(transfer
.o): In
function `Curl_connect_host':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/transfer.c:2064:
undefined re
ference to `Curl_wait_for_resolv'
../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(url.o):
In funct
ion `handleSock5Proxy':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/url.c:1919: undefined
referen
ce to `Curl_wait_for_resolv'
../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(url.o):
In function `Curl_do':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/url.c:3812: undefined
reference to `Curl_wait_for_resolv'
../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(connect.
o): In function `bindlocal':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/connect.c:268:
undefined reference to `Curl_wait_for_resolv'
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/connect.c:281:
undefined reference to `Curl_wait_for_resolv'
../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(multi.o)
: In function `curl_multi_fdset':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/multi.c:293:
undefined reference to `Curl_resolv_fdset'
../../../../externallibs/cpp/curl/LOCAL/linux-dbg/lib/libcurl.a(multi.o)
: In function `curl_multi_perform':
/home/mpm/csmdev/externallibs/cpp/curl/curl_7_14_1/multi.c:449:
undefined reference to `Curl_is_resolved'
make[1]: ***
[../../../../engine/cpp/util/LOCAL/linux-dbg/bin/test-http-aol] Error 1

Is it still trying to use the curl resolver? What do I need to do to get
it to use the ares one?
Received on 2005-09-26