jemalloc-4.0.0 on el5 and el6: undefined reference to `clock_gettime'
Jason Evans
jasone at canonware.com
Fri Aug 21 09:39:11 PDT 2015
On Aug 20, 2015, at 12:36 AM, Daniel Micay <danielmicay at gmail.com> wrote:
> On 20/08/15 03:34 AM, Ingvar Hagelund wrote:
>> When compiling jemalloc-4.0.0 on rhel5 or rhel6, the linker stops with
>> "undefined reference to `clock_gettime'"
>>
>> Adding "-lrt" to LDFLAGS gets around this, but perhaps it could have
>> been picked up automatically?
>>
>> [...]
>
> Yeah, the issue would be that clock_gettime was moved to libc in newer
> versions of libc so -lrt wasn't added for the tests.
This issue is now being tracked at:
https://github.com/jemalloc/jemalloc/issues/257
Thanks,
Jason
More information about the jemalloc-discuss
mailing list