Subject: undefined reference to `clock_gettime' compiling GreyLite

undefined reference to `clock_gettime' compiling GreyLite

From: RedFoxy <redfoxy_at_redfoxy.it>
Date: Mon, 16 Jun 2008 15:44:15 +0200

Hi all!
I'm tring to install grey lite (http://mij.oltrelinux.com/net/greylite/)
on my debian, I downloaded and compiled c-ares 1.5.2 (just ./configure
make make install no added options), when I compile Grey List i give
that error:

greylite-2.3# make all install WITH_GEOIP=yes WITH_DNSBLENV=yes
cc -I/usr/local/include -I/opt/local/include -O2 -Wall -DWITH_GEOIP
-c -o logmsg.o logmsg.c
cc -I/usr/local/include -I/opt/local/include -O2 -Wall -DWITH_GEOIP
-L/usr/local/lib -L/opt/local/lib -lsqlite3 -lpthread -lGeoIP
greylite.c logmsg.o -o greylite
cc -I/usr/local/include -I/opt/local/include -O2 -Wall -DWITH_GEOIP -o
dnsblenv dnsblenv.c logmsg.o -L/usr/local/lib -L/opt/local/lib -lsqlite3
-lpthread -lGeoIP -lcares
/usr/local/lib/libcares.a(ares__timeval.o): In function `ares__tvnow':
/_backup/sorgenti/c-ares-1.5.2/ares__timeval.c:49: undefined reference
to `clock_gettime'
collect2: ld returned 1 exit status
make: *** [dnsblenv] Error 1

That look like a c-ares trouble...
What can I do to compile it both?

A complete log of C-Ares when I compile it can be readed here:
http://phpfi.com/324653

Thank's for all
Received on 2008-06-16