[Xymon] How to compile client
Galen Johnson
Galen.Johnson at sas.com
Wed Aug 21 23:06:46 CEST 2013
This is what I get when I run "make -s" as instructed after running ./configure.client...
# ./configure.client
Configuration script for Xymon client
This script asks a few questions and builds a Makefile to compile Xymon
Checking your make-utility
Xymon normally keeps all of the client configuration files
on the Xymon server. If you prefer, it is possible to use
a local client configuration file instead - if so, answer
'client' to the next question.
NB: Local configuration requires the PCRE libs on each host.
Server side client configuration, or client side [server] ?
client
Checking for the PCRE libraries
Checking for PCRE ...
Compiling with PCRE library works OK
Linking with PCRE library works OK
Checking for Large File Support ...
Large File Support OK
Checking for clock_gettime() requiring librt ...
clock_gettime() requires librt
What userid will be running Xymon [xymon] ?
Found passwd entry for user xymon:x:1984:1984::/usr/local/xymon:/bin/false
Where do you want the Xymon installation [/usr/local/xymon] ?
OK, will configure to use /usr/local/xymon as the Xymon toplevel directory
What is the IP-address of your Xymon server [127.0.0.1] ?
** NOTE: Using 127.0.0.1 (loopback), but it is probably not what you want **
Using Linux Makefile settings
Created Makefile with the necessary information to build Xymon
Some defaults are used, so do look at the Makefile before continuing.
Configuration complete - now run make -s (GNU make) to build the tools
# make -s
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/ccXXnYLd.o: In function `freeregex':
/root/src/xymon-4.3.12/lib/matching.c:66: undefined reference to `pcre_free'
/tmp/ccXXnYLd.o: In function `matchregex':
/root/src/xymon-4.3.12/lib/matching.c:58: undefined reference to `pcre_exec'
/tmp/ccXXnYLd.o: In function `pickdata':
/root/src/xymon-4.3.12/lib/matching.c:165: undefined reference to `pcre_exec'
/root/src/xymon-4.3.12/lib/matching.c:172: undefined reference to `pcre_copy_substring'
/root/src/xymon-4.3.12/lib/matching.c:183: undefined reference to `dbgprintf'
/tmp/ccXXnYLd.o: In function `compileregex_opts':
/root/src/xymon-4.3.12/lib/matching.c:31: undefined reference to `dbgprintf'
/root/src/xymon-4.3.12/lib/matching.c:32: undefined reference to `pcre_compile'
/root/src/xymon-4.3.12/lib/matching.c:34: undefined reference to `errprintf'
/tmp/ccXXnYLd.o: In function `compile_exprs':
/root/src/xymon-4.3.12/lib/matching.c:145: undefined reference to `errprintf'
/root/src/xymon-4.3.12/lib/matching.c:146: undefined reference to `pcre_free'
/root/src/xymon-4.3.12/lib/matching.c:147: undefined reference to `xfreenullstr'
/root/src/xymon-4.3.12/lib/matching.c:147: undefined reference to `errprintf'
/tmp/ccXXnYLd.o: In function `timematch':
/root/src/xymon-4.3.12/lib/matching.c:198: undefined reference to `within_sla'
collect2: ld returned 1 exit status
make[1]: *** [matching.o] Error 1
make: *** [lib-client] Error 2
pcre and pcre-devel are installed. I can;t find it at the moment but one of my runs complained about the clock_gettime() (?) call. It was complaining about librt but I'm still trying to track that down. This is on RHEL 6.3. It's possible I may still be missing something. I ran the full install (client and server) on my Ubuntu machine without issue.
=G=
________________________________________
From: Xymon [xymon-bounces at xymon.com] on behalf of Henrik Størner [henrik at hswn.dk]
Sent: Wednesday, August 21, 2013 4:20 PM
To: xymon at xymon.com
Subject: Re: [Xymon] How to compile client
On 20-08-2013 20:57, Ricardo A. Schütz wrote:
> 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
Seems there is a problem with the Makefile's when trying to build the
client in the non-default "client-side" configuration.
I don't have a quick fix for it, but I would also recommend using the
server-side configuration.
Regards,
Henrik
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
More information about the Xymon
mailing list