Xymon Mailing List Archive search

Error compiling Xymon Client in client mode

list Jeremy Laidman
Fri, 4 Jan 2013 15:21:26 +1100
Message-Id: <user-44408373e6df@xymon.invalid>

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, <user-76f6272dbe03@xymon.invalid> 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:user-ae4522577e16@xymon.invalid]
*Envoyé :* jeudi 3 janvier 2013 15:49
*À :* DESCHAMPS Florent Ext DMGP/PORTAIL; '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*: user-76f6272dbe03@xymon.invalid [mailto:user-76f6272dbe03@xymon.invalid<user-76f6272dbe03@xymon.invalid>]

*Sent*: Thursday, January 03, 2013 04:15 AM
*To*: xymon at xymon.com <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<xymon-bounces at xymon.com>]
*De la part de* user-76f6272dbe03@xymon.invalid
*Envoyé :* mardi 18 décembre 2012 11:08
*À :* 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.****


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.