Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

librt need to link with a static archive of libevent for platforms using clock_gettime #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Configure must run as

./configure LIBS=-lrt

at Solaris 10 with SUN C compiler

Original issue reported on code.google.com by d.s.iva...@gmail.com on 4 Aug 2011 at 8:02

GoogleCodeExporter commented 9 years ago
Are you linking with a static version of libevent?

Original comment by trond.no...@gmail.com on 4 Aug 2011 at 12:04

GoogleCodeExporter commented 9 years ago
Yes.

Original comment by d.s.iva...@gmail.com on 5 Aug 2011 at 4:23

GoogleCodeExporter commented 9 years ago
Just out of curiosity: why? 

Not only will using a static archive require you to recompile _all_ programs 
using libevent when someone release a new version that fix a bug you're seeing, 
but in addition to that you won't share the memory pages making up libevent 
between all of the applications using it..

This is an implicit dependency of libevent, so it feels a bit weird to search 
for it in memcacheds configure... The problem is however not solaris specific 
and applies to all systems where libevent requires a clock functionality from 
librt (like linux etc)

Since this seems to be a "frequent" problem I guess searching for clock_gettime 
and add it won't hurt (we do that already in the engine-pu branch)

Original comment by trond.no...@gmail.com on 8 Aug 2011 at 2:32