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

Avesh Agarwal avesh.ncsu at gmail.com
Wed Aug 7 23:17:20 CEST 2013


When compiling strongswan-5.1.0 on Fedora18, I get following error:

/usr/bin/ld: malloc_speed.o: undefined reference to symbol
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2' is defined in DSO
/lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation collect2: error:
ld returned 1 exit status make[2]: *** [malloc_speed] Error 1

I had to use the attached patch to get it compiled.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20130807/e72a351e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc-speed-lrt.patch
Type: application/octet-stream
Size: 1683 bytes
Desc: not available
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20130807/e72a351e/attachment.obj>

More information about the Dev mailing list