Hi,
Replace CLOCK_MONOTONIC with CLOCK_REALTIME in: timefunc.c test-clockgettime-librt.c
This is my Makefile.HP-UX ############################### OSDEF = -DHPUX NETLIBS = -lnsl CC = cc
CFLAGS=-Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DHPUX -D_XOPEN_SOURCE_EXTENDED -DHAVE_STDINT_H $(LFSDEF) $(OSDEF) -I/usr/local/include
LDFLAGS=+Z -L/usr/local/lib -L/usr/lib/hpux64
MAILPROGRAM="mailx" ##################################
Compiler used: HP C/aC++ B3910B A.06.24 [Dec 04, 2009]
Regards, Toni
Build of Xymon 4.3.0 client fails with error on HP-UX 11iv3 ia64. Bug#3201638
This client is currently running 4.3.0 beta 2.
Here is the output:
Created Makefile with the necessary information to build Xymon
Some defaults are used, so do look at the Makefile before continuing.
Configuration complete - now run gmake -s (GNU make) to build the tools
salmon # gmake -s
timefunc.c: In function 'gettimer':
timefunc.c:55: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
timefunc.c:55: error: (Each undeclared identifier is reported only once
timefunc.c:55: error: for each function it appears in.)
timefunc.c: In function 'getntimer':
timefunc.c:67: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
timefunc.c: In function 'timespec_text':
timefunc.c:147: warning: passing argument 2 of 'getescapestring' from incompatible pointer type
gmake[1]: *** [timefunc-client.o] Error 1
gmake: *** [lib-client] Error 2
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon