Subject: Re: undefined reference to `clock_gettime' compiling GreyLite

Re: undefined reference to `clock_gettime' compiling GreyLite

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 16 Jun 2008 18:12:51 +0200 (CEST)

On Mon, 16 Jun 2008, RedFoxy wrote:

> That look like a c-ares trouble...

Yeah, c-ares' configures script nowadays checks for the clock_gettime function
and might use -lrt in its LIBS. You can probably see your c-ares configure
output to see if this is the case for you.

Apps using c-ares will of course have to adapt to what c-ares itself requires.

libcares.pc should keep that info, although I believe it didn't in the 1.5.2
release due to a bug.

-- 
  / daniel.haxx.se
Received on 2008-06-16