[strongSwan-dev] Linker error about missing -lrt when compiling malloc_speed.c

Martin Willi martin at strongswan.org
Thu Aug 8 09:20:40 CEST 2013


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





More information about the Dev mailing list