RHEL5 client compilation error (xymon-4.2.3-RC1)
Hi folks!
I am trying to compile the xymon client on a RHEL 5.3 x86_64 server but I get the following errors (I have done a ./configure properly):
[...]
../lib/hobbitclient.a(timefunc-client.o): In function gettimer': /tmp/xymon-4.2.3-RC1/lib/timefunc.c:55: undefined reference to clock_gettime'
../lib/hobbitclient.a(timefunc-client.o): In function getntimer': /tmp/xymon-4.2.3-RC1/lib/timefunc.c:67: undefined reference to clock_gettime'
collect2: ld devolvió el estado de salida 1
make[1]: *** [setup-newfiles] Error 1
make[1]: se sale del directorio `/tmp/xymon-4.2.3-RC1/build'
make: *** [build-build] Error 2
Any clue on how to solve it? It seems to be a problem with includes (that function is in /usr/include/time.h)
Greetings, Juanra
On Tue, Feb 17, 2009 at 12:37:14PM +0100, Juan Ramon Martin Blanco wrote:
[...] ../lib/hobbitclient.a(timefunc-client.o): In function
gettimer': /tmp/xymon-4.2.3-RC1/lib/timefunc.c:55: undefined reference toclock_gettime' ../lib/hobbitclient.a(timefunc-client.o): In functiongetntimer': /tmp/xymon-4.2.3-RC1/lib/timefunc.c:67: undefined reference toclock_gettime' collect2: ld devolvió el estado de salida 1 make[1]: *** [setup-newfiles] Error 1 make[1]: se sale del directorio `/tmp/xymon-4.2.3-RC1/build' make: *** [build-build] Error 2Any clue on how to solve it? It seems to be a problem with includes (that function is in /usr/include/time.h)
CentOS5 client had the same problem. Adding this to the Makefile solved it:
# clock_gettime() settings
LIBRTDEF = -lrt
(similar to the Makefile for the server).
Wendell
On Tue, Feb 17, 2009 at 2:53 PM, Wendell Turner <wendell at enflight.com>wrote:
On Tue, Feb 17, 2009 at 12:37:14PM +0100, Juan Ramon Martin Blanco wrote:
[...] ../lib/hobbitclient.a(timefunc-client.o): In function
gettimer': /tmp/xymon-4.2.3-RC1/lib/timefunc.c:55: undefined reference toclock_gettime' ../lib/hobbitclient.a(timefunc-client.o): In functiongetntimer': /tmp/xymon-4.2.3-RC1/lib/timefunc.c:67: undefined reference toclock_gettime' collect2: ld devolvió el estado de salida 1 make[1]: *** [setup-newfiles] Error 1 make[1]: se sale del directorio `/tmp/xymon-4.2.3-RC1/build' make: *** [build-build] Error 2Any clue on how to solve it? It seems to be a problem with includes (that function is in /usr/include/time.h)
CentOS5 client had the same problem. Adding this to the Makefile solved it:
clock_gettime() settings
LIBRTDEF = -lrt
Thanks Wendell, but that does not work for me.
(similar to the Makefile for the server).
Wendell
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (2)
-
robejrm@gmail.com
-
wendell@enflight.com