[Xymon] xymon 4.3.10 compile on centos 6.3 : error on pcre_free
Eric Poinsignon
epoinsignon at temenos.com
Fri Dec 28 15:16:07 CET 2012
Hello,
I am trying to compile xymon (client) 4.3.10 on my Linux Centos 6.3 newly installed in full 64 bits (no 32bits whatever),
following process: http://xymon.sourceforge.net/xymon/help/install.html#commonrhel6
I installed all needed pcre-devel and other *-devel packages.
But I got stucked at the make command :
root at lxtest:/tools/xymon/4.3.10/tempo/xymon-4.3.10
> make
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I`pwd`/include -DCLIENTONLY=1 -DLOCALCLIENT=1 -I" LDFLAGS="" OSDEF="-DLINUX" RPATHOPT="-Wl,--rpath," PCREINCDIR="-I" ZLIBINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="" LIBRTDEF="-lrt" XYMONTOPDIR="/tools/xymon/4.3.10" XYMONLOGDIR="" XYMONHOSTNAME="" XYMONHOSTIP="10.20.51.61" XYMONHOSTOS="" LOCALCLIENT="yes" make -C lib client
make[1]: Entering directory `/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib'
gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX -I/tools/xymon/4.3.10/tempo/xymon-4.3.10/include -DCLIENTONLY=1 -DLOCALCLIENT=1 -I -I../include -I -c -o matching.o matching.c
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/cc3Djvrt.o: In function `freeregex':
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:66: undefined reference to `pcre_free'
/tmp/cc3Djvrt.o: In function `matchregex':
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:58: undefined reference to `pcre_exec'
/tmp/cc3Djvrt.o: In function `pickdata':
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:165: undefined reference to `pcre_exec'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:172: undefined reference to `pcre_copy_substring'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:183: undefined reference to `dbgprintf'
/tmp/cc3Djvrt.o: In function `compileregex_opts':
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:31: undefined reference to `dbgprintf'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:32: undefined reference to `pcre_compile'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:34: undefined reference to `errprintf'
/tmp/cc3Djvrt.o: In function `compile_exprs':
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:145: undefined reference to `errprintf'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:146: undefined reference to `pcre_free'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:147: undefined reference to `xfreenullstr'
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:147: undefined reference to `errprintf'
/tmp/cc3Djvrt.o: In function `timematch':
/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:198: undefined reference to `within_sla'
collect2: ld returned 1 exit status
make[1]: *** [matching.o] Error 1
make[1]: Leaving directory `/nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib'
make: *** [lib-client] Error 2
I also tried on 2 other boxes with same os version but got the same error.
I cannot find what is wrong, can you please help ?
BTW, I also tried on same machine to compile xymon 4.3.3 and got another "regex" error :
...
make[1]: Entering directory `/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond'
gcc -o ../client/xymond_client -Wl,--rpath,/usr/lib64 xymond_client.o xymond_worker.o xymond_buffer.o client_config.o ../lib/xymonclient.a -
L/usr/lib64 -lpcre
xymond_client.o: In function `handle_irix_client':
/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/client/irix.c:80: undefined reference to `compileregex'
xymond_worker.o: In function `net_worker_heartbeat':
/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:80: undefined reference to `locator_serverup'
xymond_worker.o: In function `net_worker_run':
/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:292: undefined reference to `locator_init'
/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:298: undefined reference to `locator_register_server'
/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:317: undefined reference to `locator_serverdown'
/nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:312: undefined reference to `locator_serverdown'
...
Thanks in advance for your support and for the nice xymon tool.
Best regards.
Eric
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/20121228/97eb020f/attachment.html>
More information about the Xymon
mailing list