22 Jan
2013
22 Jan
'13
11:02 a.m.
Hi everyone, I am trying to compile xymon 4.3.10 on a Solaris 10 SPARC 64bit server. When i run make, after a while the compilation stops with the following error:
...
xymond_client.c: In function `nextsection':
xymond_client.c:216: warning: dereferencing type-punned pointer will
break strict-aliasing rules
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DSunOS
-I/export/home/xymon/xymon-4.3.10/include -DCLIENTONLY=1
-DLOCALCLIENT=1 -I/usr/local/include -c -o xymond_worker.o
xymond_worker.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DSunOS
-I/export/home/xymon/xymon-4.3.10/include -DCLIENTONLY=1
-DLOCALCLIENT=1 -I/usr/local/include -c -o xymond_buffer.o
xymond_buffer.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DSunOS
-I/export/home/xymon/xymon-4.3.10/include -DCLIENTONLY=1
-DLOCALCLIENT=1 -I/usr/local/include -c -o client_config.o
client_config.c
make[1]: *** No rule to make target `../lib/xymonclient.a', needed
by `../client/xymond_client'. Stop.
make[1]: Leaving directory `/export/home/xymon/xymon-4.3.10/xymond'
make: *** [xymond-client] Error 2
The ./configure.client report a Checking for clock_gettime() requiring librt ... clock_gettime() requires librt I checked for librt libraries in /lib, they are there and in /usr/lib also, my LD_LIBRARY_PATH is correctly set (at least, I think so) and libpcre is installed. Then, googleing I found a suggestion about adding LIBRTDEF="-lrt" in build/Makefile.rules I did it, but nothing changed.
Can anyone help me investigating the error.
Kind regards, Daniele Barreca