I think you miss a dependency. Use my CSW list. After finding which one you obviously need to redo configure so all Makefiles are corrected.
Roland
From: Vernon Everett [mailto:everett.vernon at gmail.com] Sent: Friday, 28 November 2014 1:24 PM To: Roland Soderstrom Cc: Xymon mailinglist Subject: Re: [Xymon] Building a new server - part 2
Hi Roland Thanks for the quick response. I have built Xymon on Solaris many times too, and agree, it should just work. I did find something interesting just a minute ago. Looking through the Makefile, to check what it's looking for, and notices something odd about the c-ares definitions. See below. Notice the CARESLIBS has no directory defined after the -L I changed that to CARESLIBS = -L/opt/csw/lib -lcares And we moved on. Only to hit another one. gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I/var/tmp/xymon-4.3.17/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -DRRDTOOL12 -c -o do_rrd.o do_rrd.c gcc -o xymond_rrd xymond_rrd.o xymond_worker.o do_rrd.o client_config.o ../lib/libxymontime.a -lrt ../lib/libxymoncomm.a -L/usr/sfw/lib -lssl -lcrypto -lresolv -lsocket -lnsl -lrt -L/opt/csw/lib -lrrd -L/opt/csw/lib -lpcre Undefined first referenced symbol in file XRenderCreateLinearGradient /opt/csw/lib/libcairo.so.2 XRenderCreateRadialGradient /opt/csw/lib/libcairo.so.2 XRenderCreateSolidFill /opt/csw/lib/libcairo.so.2 ld: fatal: Symbol referencing errors. No output written to xymond_rrd collect2: ld returned 1 exit status Makefile:62: recipe for target 'xymond_rrd' failed gmake[1]: *** [xymond_rrd] Error 1 gmake[1]: Leaving directory '/var/tmp/xymon-4.3.17/xymond' build/Makefile.rules:108: recipe for target 'xymond-build' failed gmake: *** [xymond-build] Error 2 My next Xymon install will be on Linux! No exceptions!
--- snip ---
C-ARES settings
SYSTEMCARES = yes CARESINCDIR = -I/opt/csw/include CARESLIBS = -L -lcares RPATHVAL +=
PCRE settings
PCREINCDIR = -I/opt/csw/include PCRELIBS = -L/opt/csw/lib -lpcre RPATHVAL += /opt/csw/lib
RRDtool settings
RRDDEF = -DRRDTOOL12 RRDINCDIR = -I/opt/csw/include RRDLIBS = -L/opt/csw/lib -lrrd RPATHVAL += /opt/csw/lib DORRD = yes
OpenSSL settings
SSLFLAGS = -DHAVE_OPENSSL -DHAVE_SSLV2_SUPPORT SSLINCDIR = -I/opt/csw/include SSLLIBS = -L/usr/sfw/lib -lssl -lcrypto RPATHVAL += /usr/sfw/lib DOSSL = yes --- snip ---
On 28 November 2014 at 10:07, Roland Soderstrom <Rolands at logicaltech.com.au<mailto:Rolands at logicaltech.com.au>> wrote: I’ve compiled 4.3.17 on Solaris Sparc and x86 with OpenCSW, so it should work.
This is roughly what I do. pkgutil -y -i coreutils pkgutil -y -i gzip pkgutil -y -i wget pkgutil -y -a berkeleydb48 pkgutil -y -i freetype pkgutil -y -i libart pkgutil -y -i libpng15_15 pkgutil -y -i libtool pkgutil -i -y gcc4core gcc4g++ gmake pkgutil -i -y pcre libpcre_dev pkgutil -i -y rrdtool rrdtool_dev pkgutil -i -y openssl libssl_dev pkgutil -i -y openldap_client openldap_dev pkgutil -i -y fping
export PATH=/usr/bin:/usr/sbin:/opt/csw/bin:/opt/csw/sbin:/usr/ccs/bin
Make SURE /usr/local/<something> or /usr/sfw/<something> is not in any path. export LD_LIBRARY_PATH=”” crle
which gmake /opt/csw/bin/gmake which ld /usr/ccs/bin/ld MAKE=gmake ; /configure gmake
Roland
From: Xymon [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Vernon Everett Sent: Friday, 28 November 2014 12:18 PM To: Xymon mailinglist Subject: [Xymon] Building a new server - part 2
OK, I was correct about the library packages. Once I installed them, it resolved most of my problems, and the configure script completed OK. On to the make. (Or gmake in my case) And we hit the next hurdle. gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSunOS -I/var/tmp/xymon-4.3.17/include -I/opt/csw/include -o xymonnet xymonnet.o contest.o httptest.o httpresult.o ldaptest.o dns.o dns2.o httpcookies.o -L -lcares -L/opt/csw/lib -lldap -llber ../lib/libxymontime.a -lrt ../lib/libxymoncomm.a -L/usr/sfw/lib -lssl -lcrypto -lresolv -lsocket -lnsl -lrt ../lib/libxymon.a -L/opt/csw/lib -lpcre Undefined first referenced symbol in file ares_process dns.o ares_gethostbyname dns.o ares_strerror dns.o ares_init_options dns.o ares_search dns.o ares_fds dns.o ares_destroy dns.o ares_timeout dns.o ares_expand_name dns2.o ld: fatal: Symbol referencing errors. No output written to xymonnet collect2: ld returned 1 exit status Makefile:33: recipe for target 'xymonnet' failed gmake[1]: *** [xymonnet] Error 1 gmake[1]: Leaving directory '/var/tmp/xymon-4.3.17/xymonnet' build/Makefile.rules:102: recipe for target 'xymonnet-build' failed gmake: *** [xymonnet-build] Error 2
Any ideas? Regards Vernon
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
-- "Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton