xymon 4.3.10 compile on centos 6.3 : error on pcre_free
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 tomain' /tmp/cc3Djvrt.o: In functionfreeregex': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:66: undefined reference topcre_free' /tmp/cc3Djvrt.o: In functionmatchregex': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:58: undefined reference topcre_exec' /tmp/cc3Djvrt.o: In functionpickdata': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:165: undefined reference topcre_exec' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:172: undefined reference topcre_copy_substring' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:183: undefined reference todbgprintf' /tmp/cc3Djvrt.o: In functioncompileregex_opts': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:31: undefined reference todbgprintf' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:32: undefined reference topcre_compile' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:34: undefined reference toerrprintf' /tmp/cc3Djvrt.o: In functioncompile_exprs': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:145: undefined reference toerrprintf' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:146: undefined reference topcre_free' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:147: undefined reference toxfreenullstr' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:147: undefined reference toerrprintf' /tmp/cc3Djvrt.o: In functiontimematch': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:198: undefined reference towithin_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.
I can confirm the same problem when compiling the client in "client side client configuration" mode on RHEL6.3. Normally if you're compiling the client only, you're still running it in server side configuration mode [ ./configure --client ; answer "server" ], which compiles OK, so it may just be a rarely executed code path.
Looks to be that libs are not properly called in in {lib,common}/Makefile, or perhaps a "yes" vs 1 issue...
Regards,
-jc
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 tomain' /tmp/cc3Djvrt.o: In functionfreeregex': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:66: undefined reference topcre_free' /tmp/cc3Djvrt.o: In functionmatchregex': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:58: undefined reference topcre_exec' /tmp/cc3Djvrt.o: In functionpickdata': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:165: undefined reference topcre_exec' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:172: undefined reference topcre_copy_substring' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:183: undefined reference todbgprintf' /tmp/cc3Djvrt.o: In functioncompileregex_opts': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:31: undefined reference todbgprintf' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:32: undefined reference topcre_compile' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:34: undefined reference toerrprintf' /tmp/cc3Djvrt.o: In functioncompile_exprs': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:145: undefined reference toerrprintf' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:146: undefined reference topcre_free' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:147: undefined reference toxfreenullstr' /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:147: undefined reference toerrprintf' /tmp/cc3Djvrt.o: In functiontimematch': /nas/tools/RedHat/EL_6/xymon/4.3.10/tempo/xymon-4.3.10/lib/matching.c:198: undefined reference towithin_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 2I 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 functionhandle_irix_client': /nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/client/irix.c:80: undefined reference tocompileregex' xymond_worker.o: In functionnet_worker_heartbeat': /nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:80: undefined reference tolocator_serverup' xymond_worker.o: In functionnet_worker_run': /nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:292: undefined reference tolocator_init' /nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:298: undefined reference tolocator_register_server' /nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:317: undefined reference tolocator_serverdown' /nas/tools/RedHat/EL_6/xymon/4.3.3/tempo/xymon-4.3.3/xymond/xymond_worker.c:312: undefined reference tolocator_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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (2)
-
cleaver@terabithia.org
-
epoinsignon@temenos.com