[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].



More information about the Dev mailing list