[Xymon] Building a new server - part 2

Vernon Everett everett.vernon at gmail.com
Fri Nov 28 04:04:54 CET 2014


SUNWlibm delivers floatingpoint.h
Damn these limited install options!

And gmake completed successfully.
Now let's see if we can get the rest to work. :-)

On 28 November 2014 at 10:50, Vernon Everett <everett.vernon at gmail.com>
wrote:

> And floatingpoint.h, I think is a Solaris library.
> SUNWspro, I think.
> Let me install that and check
>
> On 28 November 2014 at 10:47, Vernon Everett <everett.vernon at gmail.com>
> wrote:
>
>> Hi Roland
>>
>> Started over completely.
>> Used your pkgutil list, and it installed a few packages, mostly around
>> the freetype and libart section.
>> I then did a gmake clean, remover the Makefile and ran configure from
>> scratch.
>> It generated a Makefile. Then I ran gmake.
>> Hit the c-ares issue.
>> Added the -L path, and mentioned above, and we were off again.
>> Then I hit the rrdtool error.
>> Moved the /usr/ccs/bin/ld as mentioned, and we moved ahead again.
>> Then I hit this one..
>> gcc -g -O2 -Wall -Wno-unused -Wno-pointer-sign -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
>> -DRRDTOOL12 -I/opt/csw/include -c -o perfdata.o perfdata.c
>> In file included from perfdata.c:20:0:
>> /opt/csw/lib/gcc/i386-pc-solaris2.10/4.9.0/include-fixed/math.h:333:27:
>> fatal error: floatingpoint.h: No such file or directory
>>  #include <floatingpoint.h>
>>                            ^
>> compilation terminated.
>> Makefile:130: recipe for target 'perfdata.o' failed
>> gmake[1]: *** [perfdata.o] Error 1
>> gmake[1]: Leaving directory '/var/tmp/xymon-4.3.17/web'
>> build/Makefile.rules:111: recipe for target 'web-build' failed
>> gmake: *** [web-build] Error 2
>>
>>
>>
>>
>>
>> On 28 November 2014 at 10:29, Roland Soderstrom <
>> Rolands at logicaltech.com.au> wrote:
>>
>>>  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> 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] *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
>>>
>>
>>
>>
>> --
>> "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
>



-- 
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141128/c5b6f2fe/attachment.html>


More information about the Xymon mailing list