Xymon Mailing List Archive search

Xymon 4.2.3 Compile Issues HP-UX 11.31 CLOCK_MONOTONIC

list John Browning
Thu, 23 Apr 2009 10:22:22 -0400
Message-Id: <user-922da0dbcf1b@xymon.invalid>

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:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, April 23, 2009 9:32 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Xymon 4.2.3 Compile Issues HP-UX 11.31 CLOCK_MONOTONIC

In <user-3a8ea80be762@xymon.invalid> John Browning <user-45e7970967c7@xymon.invalid> 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