curl-library
Re: Fedora 13 issue building curl
Date: Fri, 10 Sep 2010 17:47:00 -0700
--On Friday, September 10, 2010 2:51 PM -0700 Dan Fandrich
<dan_at_coneharvesters.com> wrote:
> On Fri, Sep 10, 2010 at 10:09:38PM +0100, Paul Howarth wrote:
>> On Fri, 10 Sep 2010 14:05:13 -0700
>> > I don't have this issue on the other 20 or so OSes I build curl on.
>> > Any idea why curl is failing to pick up librt?
>>
>> Default linker behaviour was changed from Fedora 13 onwards:
>>
>> http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
>
> Looks like that's the problem. -lrt is added to libcurl, but not the
> curl binary, despite it calling clock_gettime(). Does this
> (completely untested) patch help?
>
> diff --git a/acinclude.m4 b/acinclude.m4
> index 86f7c7b..225fb9d 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -2145,6 +2145,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC],
> [ else
> LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
> fi
> + CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
> AC_MSG_RESULT([$curl_cv_gclk_LIBS])
> ac_cv_func_clock_gettime="yes"
> ;;
That patch by itself had no change in behavior.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-09-11