Xymon Mailing List Archive search

Building a new server - part 2

15 messages in this thread

list Vernon Everett · Fri, 28 Nov 2014 09:17:40 +0800 ·
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
list Roland Soderstrom · Fri, 28 Nov 2014 02:07:03 +0000 ·
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
quoted from Vernon Everett

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
list Vernon Everett · Fri, 28 Nov 2014 10:24:00 +0800 ·
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 <user-0cec9512a49f@xymon.invalid>
quoted from Roland Soderstrom
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
list Roland Soderstrom · Fri, 28 Nov 2014 02:29:19 +0000 ·
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
quoted from Vernon Everett

From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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
list Vernon Everett · Fri, 28 Nov 2014 10:30:59 +0800 ·
Forgot to include the list.

Of course, refering to my notes, I have hit (and worked around) that issue
before.
mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig
And we get further, but not much.
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 -DRRDTOOL12 -I/opt/csw/include -c -o
perfdata.o perfdata.c
In file included from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:26:26:
iso/math_iso.h: No such file or directory
In file included from
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,
                 from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:30:24:
sys/ieeefp.h: No such file or directory
In file included from
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,
                 from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:104:
error: field `fpclass' has incomplete type
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:128:
error: field `rd' has incomplete type
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:24, Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
quoted from Roland Soderstrom
wrote:
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 <
user-0cec9512a49f@xymon.invalid> 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
list Roland Soderstrom · Fri, 28 Nov 2014 02:41:35 +0000 ·
The ld issue is due to SFW rrdtool have some sort of strange hardcoded dependency on /usr/ccs/bin/ld
It doesn’t matter how many times you tell gmake or PATH or configure to use gnu ld SFW rrdtool will use /usr/ccs/bin/ld, by moving it it uses gnu ld and all works.
But that was not the case for me when using CSW?
quoted from Vernon Everett

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Vernon Everett
Sent: Friday, 28 November 2014 1:31 PM
To: Xymon mailinglist
Subject: [Xymon] Fwd: Building a new server - part 2

Forgot to include the list.

Of course, refering to my notes, I have hit (and worked around) that issue before.
mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig
And we get further, but not much.
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 -DRRDTOOL12 -I/opt/csw/include -c -o perfdata.o perfdata.c
In file included from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:26:26: iso/math_iso.h: No such file or directory
In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,
                 from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:30:24: sys/ieeefp.h: No such file or directory
In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,
                 from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:104: error: field `fpclass' has incomplete type
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:128: error: field `rd' has incomplete type
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:24, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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


--
"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
list Vernon Everett · Fri, 28 Nov 2014 10:47:43 +0800 ·
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
quoted from Roland Soderstrom
-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.
quoted from Roland Soderstrom
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 <user-0cec9512a49f@xymon.invalid>
quoted from Roland Soderstrom
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:user-b3f8dacb72c8@xymon.invalid]
*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 <
user-0cec9512a49f@xymon.invalid> 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
list Vernon Everett · Fri, 28 Nov 2014 10:50:04 +0800 ·
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 <user-b3f8dacb72c8@xymon.invalid>
quoted from Vernon Everett
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 <
user-0cec9512a49f@xymon.invalid> 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:user-b3f8dacb72c8@xymon.invalid]
*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 <
user-0cec9512a49f@xymon.invalid> 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
list Vernon Everett · Fri, 28 Nov 2014 11:04:54 +0800 ·
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 <user-b3f8dacb72c8@xymon.invalid>
quoted from Vernon Everett
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 <user-b3f8dacb72c8@xymon.invalid>
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 <
user-0cec9512a49f@xymon.invalid> 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:user-b3f8dacb72c8@xymon.invalid]
*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 <
user-0cec9512a49f@xymon.invalid> 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
list Ryan Novosielski · Thu, 27 Nov 2014 22:39:20 -0500 ·
I've not built this recently, but as I said the last time I saw this, you definitely don't need to do this to get it to work.

____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
|| \\UTGERS      |---------------------*O*---------------------
||_// Biomedical | Ryan Novosielski - Senior Technologist
|| \\ and Health | user-46c89e614701@xymon.invalid<mailto:user-46c89e614701@xymon.invalid>- 973/972.0922 (2x0922)
||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
quoted from Vernon Everett
    `'

On Nov 27, 2014, at 21:31, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:

Forgot to include the list.

Of course, refering to my notes, I have hit (and worked around) that issue before.
mv /usr/ccs/bin/ld /usr/ccs/bin/ld.orig
And we get further, but not much.
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 -DRRDTOOL12 -I/opt/csw/include -c -o perfdata.o perfdata.c
In file included from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:26:26: iso/math_iso.h: No such file or directory
In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,
                 from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:30:24: sys/ieeefp.h: No such file or directory
In file included from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/math.h:336,
                 from perfdata.c:20:
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:104: error: field `fpclass' has incomplete type
/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include/floatingpoint.h:128: error: field `rd' has incomplete type
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:24, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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


--
"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
list Vernon Everett · Fri, 28 Nov 2014 13:28:51 +0800 ·
And it'w working.
A bit of fun & games getting Apache going, but we now have a working Xymon
server.
Thanks to all for your assistance.

Regards
Vernon


On 28 November 2014 at 11:04, Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
quoted from Ryan Novosielski
wrote:
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 <user-b3f8dacb72c8@xymon.invalid>
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 <user-b3f8dacb72c8@xymon.invalid>
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 <
user-0cec9512a49f@xymon.invalid> 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:user-b3f8dacb72c8@xymon.invalid]
*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 <
user-0cec9512a49f@xymon.invalid> 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
-- 
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
list Roland Soderstrom · Sun, 30 Nov 2014 22:16:42 +0000 ·
I had to test this to figure out why I managed to get it going.
Some findings.
I had to uninstall all SMC packages. Xymon configure.server will use some of the SMC libs.
After this no need to mv /usr/ccs/bin/ld and rrdtool will work.

When using opencsw ALL libs and includes NEEDS to be opencsw or it wont work. (unless it’s vanilla solaris libs)
Maybe on option to configure? If specifying --opencsw it will only use libs/includes in /opt/csw

Openssl 1.0 is installed in /usr/sfw with Solaris, we can’t use that.
Openssl will use /usr/sfw openssl (bug in build/ssl.sh? it will use the last one in the for list it finds)

Cares –L is blank in the Makefile as you pointed out.
I think this is a bug in build/c-ares.sh, line 455-456
        echo "CARESLIBS = -L$LIB -lcares" >>Makefile
          echo "RPATHVAL += ${LIB}"          >>Makefile
Should be:
        echo "CARESLIBS = -L$CARESLIB -lcares" >>Makefile
          echo "RPATHVAL += ${CARESLIB}"          >>Makefile

So after installing all opencsw packages and removing all SMC packages, fixing configure.server
I run configure as this:
MAKE=gmake ; ./configure.server --sslinclude /opt/csw/include/openssl --ssllib /opt/csw/lib
Voila no errors or other fixes.
quoted from Vernon Everett


-      Roland

From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
Sent: Friday, 28 November 2014 4:29 PM
To: Roland Soderstrom
Cc: Xymon mailinglist
Subject: Re: [Xymon] Building a new server - part 2

And it'w working.
A bit of fun & games getting Apache going, but we now have a working Xymon server.
Thanks to all for your assistance.
Regards
Vernon

On 28 November 2014 at 11:04, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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:user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>]
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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


--
"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
list Roland Soderstrom · Sun, 30 Nov 2014 22:35:26 +0000 ·
Typo…
I think this is a bug in build/c-ares.sh, line 455-456
Should be
I think this is a bug in configure.server, line 455-456
quoted from Roland Soderstrom

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Roland Soderstrom
Sent: Monday, 1 December 2014 9:17 AM
To: 'Vernon Everett'
Cc: Xymon mailinglist
Subject: Re: [Xymon] Building a new server - part 2

I had to test this to figure out why I managed to get it going.
Some findings.
I had to uninstall all SMC packages. Xymon configure.server will use some of the SMC libs.
After this no need to mv /usr/ccs/bin/ld and rrdtool will work.

When using opencsw ALL libs and includes NEEDS to be opencsw or it wont work. (unless it’s vanilla solaris libs)
Maybe on option to configure? If specifying --opencsw it will only use libs/includes in /opt/csw

Openssl 1.0 is installed in /usr/sfw with Solaris, we can’t use that.
Openssl will use /usr/sfw openssl (bug in build/ssl.sh? it will use the last one in the for list it finds)

Cares –L is blank in the Makefile as you pointed out.
I think this is a bug in build/c-ares.sh, line 455-456
        echo "CARESLIBS = -L$LIB -lcares" >>Makefile
          echo "RPATHVAL += ${LIB}"          >>Makefile
Should be:
        echo "CARESLIBS = -L$CARESLIB -lcares" >>Makefile
          echo "RPATHVAL += ${CARESLIB}"          >>Makefile

So after installing all opencsw packages and removing all SMC packages, fixing configure.server
I run configure as this:
MAKE=gmake ; ./configure.server --sslinclude /opt/csw/include/openssl --ssllib /opt/csw/lib
Voila no errors or other fixes.


-      Roland

From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
Sent: Friday, 28 November 2014 4:29 PM
To: Roland Soderstrom
Cc: Xymon mailinglist
Subject: Re: [Xymon] Building a new server - part 2

And it'w working.
A bit of fun & games getting Apache going, but we now have a working Xymon server.
Thanks to all for your assistance.
Regards
Vernon

On 28 November 2014 at 11:04, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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:user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>]
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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


--
"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
list Ryan Novosielski · Sun, 30 Nov 2014 18:51:27 -0500 ·
Fascinating. My server is probably CSW so I didn't notice. Where did the SMC packages come from? Are those Sun Freeware or the OS-installed stuff.
signature

____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
|| \\UTGERS      |---------------------*O*---------------------
||_// Biomedical | Ryan Novosielski - Senior Technologist
|| \\ and Health | user-46c89e614701@xymon.invalid<mailto:user-46c89e614701@xymon.invalid>- 973/972.0922 (2x0922)
||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
    `'

quoted from Roland Soderstrom
On Nov 30, 2014, at 17:17, Roland Soderstrom <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> wrote:

I had to test this to figure out why I managed to get it going.
Some findings.
I had to uninstall all SMC packages. Xymon configure.server will use some of the SMC libs.
After this no need to mv /usr/ccs/bin/ld and rrdtool will work.

When using opencsw ALL libs and includes NEEDS to be opencsw or it wont work. (unless it’s vanilla solaris libs)
Maybe on option to configure? If specifying --opencsw it will only use libs/includes in /opt/csw

Openssl 1.0 is installed in /usr/sfw with Solaris, we can’t use that.
Openssl will use /usr/sfw openssl (bug in build/ssl.sh? it will use the last one in the for list it finds)

Cares –L is blank in the Makefile as you pointed out.
I think this is a bug in build/c-ares.sh, line 455-456
        echo "CARESLIBS = -L$LIB -lcares" >>Makefile
          echo "RPATHVAL += ${LIB}"          >>Makefile
Should be:
        echo "CARESLIBS = -L$CARESLIB -lcares" >>Makefile
          echo "RPATHVAL += ${CARESLIB}"          >>Makefile

So after installing all opencsw packages and removing all SMC packages, fixing configure.server
I run configure as this:
MAKE=gmake ; ./configure.server --sslinclude /opt/csw/include/openssl --ssllib /opt/csw/lib
Voila no errors or other fixes.


-      Roland

From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
Sent: Friday, 28 November 2014 4:29 PM
To: Roland Soderstrom
Cc: Xymon mailinglist
Subject: Re: [Xymon] Building a new server - part 2

And it'w working.
A bit of fun & games getting Apache going, but we now have a working Xymon server.
Thanks to all for your assistance.
Regards
Vernon

On 28 November 2014 at 11:04, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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:user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>]
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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


--
"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
list Roland Soderstrom · Mon, 1 Dec 2014 00:02:10 +0000 ·
Yes, SMCxxx are all from SunFreeware, I still have all the /usr/sfw stuff installed (they’re named SUNWxxx)
quoted from Ryan Novosielski

From: Novosielski, Ryan [mailto:user-6e4f7a3bb37f@xymon.invalid]
Sent: Monday, 1 December 2014 10:51 AM
To: Roland Soderstrom
Cc: Vernon Everett; Xymon mailinglist
Subject: Re: [Xymon] Building a new server - part 2

Fascinating. My server is probably CSW so I didn't notice. Where did the SMC packages come from? Are those Sun Freeware or the OS-installed stuff.

____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*

|| \\UTGERS<file:///\\UTGERS>      |---------------------*O*---------------------
quoted from Ryan Novosielski
||_// Biomedical | Ryan Novosielski - Senior Technologist
|| \\ and Health | user-46c89e614701@xymon.invalid<mailto:user-46c89e614701@xymon.invalid>- 973/972.0922 (2x0922)
||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
    `'

On Nov 30, 2014, at 17:17, Roland Soderstrom <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> wrote:
I had to test this to figure out why I managed to get it going.
Some findings.
I had to uninstall all SMC packages. Xymon configure.server will use some of the SMC libs.
After this no need to mv /usr/ccs/bin/ld and rrdtool will work.

When using opencsw ALL libs and includes NEEDS to be opencsw or it wont work. (unless it’s vanilla solaris libs)
Maybe on option to configure? If specifying --opencsw it will only use libs/includes in /opt/csw

Openssl 1.0 is installed in /usr/sfw with Solaris, we can’t use that.
Openssl will use /usr/sfw openssl (bug in build/ssl.sh? it will use the last one in the for list it finds)

Cares –L is blank in the Makefile as you pointed out.
I think this is a bug in build/c-ares.sh, line 455-456
        echo "CARESLIBS = -L$LIB -lcares" >>Makefile
          echo "RPATHVAL += ${LIB}"          >>Makefile
Should be:
        echo "CARESLIBS = -L$CARESLIB -lcares" >>Makefile
          echo "RPATHVAL += ${CARESLIB}"          >>Makefile

So after installing all opencsw packages and removing all SMC packages, fixing configure.server
I run configure as this:
MAKE=gmake ; ./configure.server --sslinclude /opt/csw/include/openssl --ssllib /opt/csw/lib
Voila no errors or other fixes.


-      Roland

From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
Sent: Friday, 28 November 2014 4:29 PM
To: Roland Soderstrom
Cc: Xymon mailinglist
Subject: Re: [Xymon] Building a new server - part 2

And it'w working.
A bit of fun & games getting Apache going, but we now have a working Xymon server.
Thanks to all for your assistance.
Regards
Vernon

On 28 November 2014 at 11:04, Vernon Everett <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> wrote:
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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>> 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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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:user-b3f8dacb72c8@xymon.invalid<mailto:user-b3f8dacb72c8@xymon.invalid>]
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 <user-0cec9512a49f@xymon.invalid<mailto:user-0cec9512a49f@xymon.invalid>> 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


--
"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