[hobbit] Xymon 4.2.3 Compile Issues HP-UX 11.31 CLOCK_MONOTONIC

John Browning John.Browning at sas.com
Thu Apr 23 16:22:22 CEST 2009


I was able to get around the issue for now by temporarily by making the following changes to the code:

In lib/timefunc.c:

In function gettimer(void):
res = clock_gettime(CLOCK_MONOTONIC, &t); to res = clock_gettime(CLOCK_REALTIME, &t);

in function getntimer(struct timespec *tp):
res = clock_gettime(CLOCK_MONOTONIC, tp); to res = clock_gettime(CLOCK_REALTIME, tp);

In build/test-clockgettime-librt.c:
(void)clock_gettime(CLOCK_MONOTONIC, &ts); to (void)clock_gettime(CLOCK_REALTIME, &ts);

This has worked for now even though it is simply reverting to CLOCK_REALTIME which HP-UX 11.31 supports.

-----Original Message-----
From: Henrik Størner [mailto:henrik at hswn.dk] 
Sent: Thursday, April 23, 2009 9:32 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] Xymon 4.2.3 Compile Issues HP-UX 11.31 CLOCK_MONOTONIC

In <345520A34347BA49B798F70B218ACD1306B49C20F7 at MERCMBX14.na.sas.com> John Browning <John.Browning at sas.com> writes:

>I'm compiling a 4.2.3 client binary for HP-UX 11.31 and am receiving the fo=
>llowing error:

>mefunc-client.o timefunc.c
>timefunc.c: In function 'gettimer':
>timefunc.c:55: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)

I believe this has been fixed in the update for the client configuration
script which you can find at
http://hobbitmon.svn.sourceforge.net/viewvc/hobbitmon/branches/4.2.4/configure.client?revision=6162

Download this file and copy it on top of the "configure.client" file, then 
run "make distclean" and start over with the configure-make-make install
cycle. It should hopefully work.


Regards,
Henrik


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk






More information about the Xymon mailing list