Subject: Re: Compiling c-ares 1.7.0 on MAC OSX (v10.6 -- Snow Leopard)

Re: Compiling c-ares 1.7.0 on MAC OSX (v10.6 -- Snow Leopard)

From: Dhruva T S <dhruvats_at_tataelxsi.co.in>
Date: Wed, 13 Jan 2010 19:02:44 +0530

Curl is compiling without any problems.
I used "./configure --enable-ares=/usr/local/lib".

So, curl uses c-ares from "/usr/local/lib".

Is there a way where I can install c-ares in some other location by using
"./configure --prefix=/home/user1/Desktop/c-ares".
I tried the above, but curl configure searches for c-ares libs in standard paths.
  

>Thanks for the reply.
>Curl is compiling without any problems.

>Sometimes, I get a crash whose backtrace in gdb is as under:
>0 libcurl.4.dylib 0x00788714 addbyter + 36
>1 libcurl.4.dylib 0x00788881 dprintf_formatf + 289
>2 libcurl.4.dylib 0x0078a207 curl_mvsnprintf + 55
>3 libcurl.4.dylib 0x0077737f Curl_failf + 63
>4 libcurl.4.dylib 0x0076e0e2 Curl_resolv_timeout + 578

>On searching the curl mailing list, I found that I need to compile cURL with c-ares enabled.
>I hope this fixes the above crash.

>2010/1/11, Dhruva T S wrote:

> I am trying to compile curl 7.19.4 with c-ares support on MAC OSX Snow
> Leopard(v10.6).
> When I run './configure' for c-ares 1.7.0, I get "checking for monotonic
> clock_gettime() ... no".

>No problem there, if clock_gettime() is not available or usable then
>gettimeofday() will be used.

> So when I run configure script for libcURL, I get an "error: c-ares library
> defective or too old"
> On googling, I came to know that as c-ares is unable to find 'librt' library
> in MAC OS X, I am getting this error.

>The libcurl configure message It is not due to the lack of
>clock_gettime(), it is most likely due to libcurl configure script
>finding an installed c-ares library older than the 1.7.0 one that you
>have just built, or not finding any at all.

>Besides building c-ares 1.7.0, you must install it in some location in
>order to use it.

>Later on if you want libcurl to find your built library instead of an
>older version installed in some default location then you must specify
>the location of the 1.7.0 c-ares installed library specifying the
>location with --enable-ares=PATH.

>That should be enough.
>--
>-=[Yang]=-
Received on 2010-01-13