[Xymon] Error compiling Xymon Client in client mode

Eric Poinsignon epoinsignon at temenos.com
Fri Jan 4 14:17:03 CET 2013


Thanks, compiling the server worked for me to get a good client for both 4.3.3 and 4.3.10.
Best regards.

Eric Poinsignon
Unix systems engineer
______________________________________________________________________
Temenos , Odyssey Financial Technologies S.A*, Av. des Baumettes 23, 1020 Renens, SWITZERLAND

Phone:

+41 (0) 21 310 09 25

Fax::

+41 (0) 21 310 00 99

Email:

epoinsignon at temenos.com





Web:

www.temenos.com<http://www.temenos.com/>

* a member of the Temenos group of companies



From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of fdeschamps.ext at orange.com
Sent: Friday, January 04, 2013 10:05 AM
To: Jeremy Laidman
Cc: xymon at xymon.com
Subject: Re: [Xymon] Error compiling Xymon Client in client mode

Thank you ! Your method  worked for me too.
I will continue my tests of xymon client with that, hoping that it will be fixed in a future release.

Florent Deschamps

De : Jeremy Laidman [mailto:jlaidman at rebel-it.com.au]
Envoyé : vendredi 4 janvier 2013 05:21
À : DESCHAMPS Florent Ext DMGP/PORTAIL
Cc : xymon at xymon.com<mailto:xymon at xymon.com>
Objet : Re: [Xymon] Error compiling Xymon Client in client mode

I get the same result when trying to do the same thing (with v4.3.4 and v4.3.10).  I think that there's a bug in the way the client is built when using client-side configuration, and nobody uses it anymore so it hasn't been tested for a very long time.

It seems that if you first configure for client-side config, it will not create the lib/xymonclient.a file required.  However, if you first configure for server-side config and make, then re-configure for client-side config and make again, this problem goes away.

There are two more problems, it seems:  The file xymond/Makefile requires an adjustment for using libxymonclient instead of xymonclient, and some libraries need to be forced to link against it also.  So the following adjusted entry in xymond/Makefile worked for me:

../client/xymond_client: $(CLIENTOBJS) ../lib/libxymonclient.a
        $(CC) -o $@ $(RPATHOPT) $(CLIENTOBJS) ../lib/loadhosts.o ../lib/matching.o ../lib/timing.o ../lib/locator.o ../lib/libxymonclientcomm.a ../lib/libxymonclient.a -lpcre $(PCRELIBS) $(NETLIBS) $(LIBRTDEF)

I note that some of the libraries should have been pulled in with $(PCRELIBS) and $(LIBRTDEF) but these don't seem to have been defined when in client-config mode.

J



On 4 January 2013 02:17, <fdeschamps.ext at orange.com<mailto:fdeschamps.ext at orange.com>> wrote:
A rule is missing in one of the Makefile and it can't compile xymond_client.

The final error is :
make[1]: Entering directory `/home/fdeschamps/xymon-4.3.10/xymond'
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I/home/fdeschamps/xymon-4.3.10/include -DCLIENTONLY=1 -DLOCALCLIENT=1 -I /usr/lib -c -o xymond_client.o xymond_client.c
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I/home/fdeschamps/xymon-4.3.10/include -DCLIENTONLY=1 -DLOCALCLIENT=1 -I /usr/lib -c -o xymond_worker.o xymond_worker.c
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I/home/fdeschamps/xymon-4.3.10/include -DCLIENTONLY=1 -DLOCALCLIENT=1 -I /usr/lib -c -o xymond_buffer.o xymond_buffer.c
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I/home/fdeschamps/xymon-4.3.10/include -DCLIENTONLY=1 -DLOCALCLIENT=1 -I /usr/lib -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 `/home/fdeschamps/xymon-4.3.10/xymond'
make: *** [xymond-client] Error 2


The complete output is here : http://pastebin.com/58hm9cXP


Florent Deschamps

De : Novosielski, Ryan [mailto:novosirj at umdnj.edu<mailto:novosirj at umdnj.edu>]
Envoyé : jeudi 3 janvier 2013 15:49
À : DESCHAMPS Florent Ext DMGP/PORTAIL; 'xymon at xymon.com<mailto:xymon at xymon.com>'
Objet : Re: [Xymon] Error compiling Xymon Client in client mode

I've not seen anywhere where you posted any actual output from your attempts. I'm assuming the compile fails, but how?



From: fdeschamps.ext at orange.com<mailto:fdeschamps.ext at orange.com> [mailto:fdeschamps.ext at orange.com]
Sent: Thursday, January 03, 2013 04:15 AM
To: xymon at xymon.com<mailto:xymon at xymon.com> <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: Re: [Xymon] Error compiling Xymon Client in client mode

Hello,

I'm still stucked on this problem.
./configure -client + client side configuration does not compile.

Does someone have any idea ?

Thanks

Florent Deschamps

De : xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] De la part de fdeschamps.ext at orange.com<mailto:fdeschamps.ext at orange.com>
Envoyé : mardi 18 décembre 2012 11:08
À : xymon at xymon.com<mailto:xymon at xymon.com>
Objet : [Xymon] Error compiling Xymon Client in client mode

Hi,

I'm trying to compile to compile the Xymon client in client mode (./configure -client, + client side configuration).
I'm using xymon 4.3.10. I'm compiling on ubuntu lucid with pcre and pcre-dev installed.
I'm stuck at the build of xymond_client, where it needs xymonclient.a but there is no rule to build it.

Indeed, in xymond/Makefile :
../client/xymond_client: $(CLIENTOBJS) ../lib/xymonclient.a
        $(CC) -o $@ $(RPATHOPT) $(CLIENTOBJS) ../lib/xymonclient.a $(PCRELIBS) $(NETLIBS) $(LIBRTDEF)

I didn't find any rules to build xymonclient.a (only a libxymonclient.a in lib/Makefile)
Any help would be appreciated.



_________________________________________________________________________________________________________________________



Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.



This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.

Thank you.
The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. Any use or disclosure of the contents of this e-mail/attachments by a not intended recipient is unauthorized and may be unlawful. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of TEMENOS. We recommend that you check this e-mail and any attachments against viruses. TEMENOS accepts no liability for any damage caused by any malicious code or virus transmitted by this e-mail.
The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. Any use or disclosure of the contents of this e-mail/attachments by a not intended recipient is unauthorized and may be unlawful. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of TEMENOS. We recommend that you check this e-mail and any attachments against viruses. TEMENOS accepts no liability for any damage caused by any malicious code or virus transmitted by this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130104/7c9eb85d/attachment.html>


More information about the Xymon mailing list