[prev in list] [next in list] [prev in thread] [next in thread] 

List:       strongswan-announce
Subject:    Re: [strongSwan-dev] Linker error about missing -lrt when compiling malloc_speed.c
From:       Martin Willi <martin () strongswan ! org>
Date:       2013-08-08 7:20:40
Message-ID: 1375946440.2965.4.camel () martin
[Download RAW message or body]

Hi Avesh,

> /usr/bin/ld: malloc_speed.o: undefined reference to symbol
> 'clock_gettime@@GLIBC_2.2'

Thanks for the patch. It seems glibc version 2.17 and older require
librt, while newer ones (and other C libraries) have it included.

I pushed your patch [1], and then made use of the librt configure check
we have already in place [2].

Regards
Martin

[1]http://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=62e1c808
[2]http://git.strongswan.org/?p=strongswan.git;a=commitdiff;h=3b6d8855


_______________________________________________
Dev mailing list
Dev@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic