Xymon Mailing List Archive search

xymon client make error solaris 10: No rule to make target `../lib/xymonclient.a', needed by `../client/xymond_client'

list Barreca Daniele
Thu, 24 Jan 2013 18:51:46 +0100
Message-Id: <user-eec22245902d@xymon.invalid>

Dear Roland,
thank you very much for your help, following your instruction I successfully compiled the client. Finally I could start enjoying on creating my monitor scripts.

Kind regards,
  Daniele Barreca


On 22/01/13 22:08, Roland Soderstrom wrote:
This is my rude procedure for compiling on Solaris.

I compiled several versions on Solaris, there is a few trick that you need to know.

For the server compilation you need a bunch of SUN freeware packages, I just use the same host for a client package, probably less deps for client only.

On the client itself you need some of these installed as well.

Same procedure for x86.

If you use blastwave packages it is a bit different....

www.sunfreeware.com

binutils (SMCbinut)

db (SMCdb47)

freetype (SMCftype)

gcc (SMCgcc)

libart_lgpl (SMClibart)

libpng (SMClibpng)

libtool (SMClibt)

libiconv (SMCliconv)

libintl (SMClintl)

make (SMCmake)

openldap (SMColdap)

openssl (SMCossl)

pcre (SMCpcre)

rrdtool (SMCrrdt)

sasl (SMCsasl)

zlib (SMCzlib)

setup compiling env.

groupadd -g 1001 xymon

useradd -u 62001 -g 1001 -d /usr/local/xymon -m -s /usr/bin/bash -c "Xymon Owner" xymon

This is for rrdtool, some strange dep, maybe not necessary for client as it doesn't need rrdtool. ( this will force use of gnu ld)

mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig

export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

crle -u -l /usr/local/lib

crle -u -l /usr/local/rrdtool-1.2.19/lib

umask 022

cd /var/tmp

cp <xymon source from somewhere> /var/tmp

gunzip xymon-4.3.10.tar.gz

tar xf xymon-4.3.10.tar

cd xymon-4.3.10

which make

/usr/local/bin/make

which ld

/usr/local/bin/ld

./configure

make

make install         (this step as root)

- Roland

*From:*xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On Behalf Of *Barreca Daniele
*Sent:* Tuesday, 22 January 2013 10:02 PM
*To:* xymon at xymon.com
*Subject:* [Xymon] xymon client make error solaris 10: No rule to make target `../lib/xymonclient.a', needed by `../client/xymond_client'

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