[Xymon] How to compile client

Ricardo A. Schütz ricardo at lxti.com.br
Tue Aug 20 20:57:43 CEST 2013


Hi,

I need help compiling the client.

I have compiled the server and it's working fine. Now I need to compile the client but it doesn't compile. The first error (which I can't remember) I have corrected compiling the server before the client.

Now I get the following error:

make[1]: Entering directory `/usr/src/xymon-4.3.12/xymond'
make[1]: *** No rule to make target `../lib/xymonclient.a', needed by `../client/xymond_client'.  Stop.
make[1]: Leaving directory `/usr/src/xymon-4.3.12/xymond'
make: *** [xymond-client] Error 2


So I tried to change the file ./xymond/Makefile to the following:

../client/xymond_client: $(CLIENTOBJS) ../lib/libxymonclient.a
        $(CC) -o $@ $(RPATHOPT) $(CLIENTOBJS) ../lib/libxymonclient.a $(PCRELIBS) $(NETLIBS) $(LIBRTDEF)

And now:

make[1]: Entering directory `/usr/src/xymon-4.3.12/xymond'
gcc -o ../client/xymond_client -Wl,--rpath, xymond_client.o    xymond_worker.o xymond_buffer.o client_config.o ../lib/libxymonclient.a -L -lpcre  
xymond_client.o: In function `want_msgtype':
/usr/src/xymon-4.3.12/xymond/xymond_client.c:257: undefined reference to `xmh_item'
xymond_client.o: In function `unix_cpu_report':
/usr/src/xymon-4.3.12/xymond/xymond_client.c:482: undefined reference to `init_status'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:490: undefined reference to `addtostatus'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:496: undefined reference to `addtostatus'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:497: undefined reference to `addtostatus'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:501: undefined reference to `finish_status'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:492: undefined reference to `addtostrstatus'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:493: undefined reference to `addtostatus'
/usr/src/xymon-4.3.12/xymond/xymond_client.c:500: undefined reference to `addtostatus'

Any help would be much appreciated.

Thanks in advance.

--
Ricardo Alberto Schutz
Consultor
LXTI - www.lxti.com.br
Tel. Comercial: +55 (47) 3385-4345
Celular: +55 (47) 8802-3881



More information about the Xymon mailing list