Xymon Mailing List Archive search

Solaris X86 xymon configure problems

17 messages in this thread

list Keelie · Fri, 25 Nov 2011 10:22:42 +0000 ·
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.
 
This is the output of my ./configure:

 
Configuration script for Xymon

 
This script asks a few questions and builds a Makefile to compile Xymon

 
Checking your make-utility

Checking pre-requisites for building Xymon

 
Checking for fping ...

Xymon has a built-in ping utility (xymonping)

However, it is not yet fully stable and therefore it

may be best to use the external fping utility instead.

I found fping in /usr/local/sbin/fping

Do you want to use it [Y/n] ?

Y

Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...

127.0.0.1 is alive

OK, will use '/usr/local/sbin/fping' for ping tests

NOTE: If you are using an suid-root wrapper, make sure the 'xymond'

      user is also allowed to run fping without having to enter passwords.

      For 'sudo', add something like this to your 'sudoers' file:

      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping

 
Checking for RRDtool ...

Found RRDtool include files in /usr/local/rrdtool-1.2.19/include

Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib

Linking RRD with PNG library: -L/usr/lib -lpng

 
Checking for PCRE ...

Found PCRE include files in /usr/local/include

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

Found PCRE libraries in /usr/local/lib

 
Checking for OpenSSL ...

Found OpenSSL include files in /usr/local/ssl/include

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

make: *** [test-link] Error 1

WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.

Continuing with SSL support disabled.

 
Checking for LDAP ...

test-ldap.c: In function `main':

test-ldap.c:25: warning: implicit declaration of function `ldap_init'

test-ldap.c:25: warning: assignment makes pointer from integer without a cast

Found LDAP include files in /usr/include

Found LDAP libraries in /usr/lib

 
When I run make I get the following:

 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all

make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

make[1]: *** [showgraph.cgi] Error 1

make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'

make: *** [web-build] Error 2

 
*************************************************************************************************
list Tim McCloskey · Fri, 25 Nov 2011 11:31:00 -0800 ·
Can you provide the output from the following?

pkginfo -i | gegrep -i '(ssl|pcre)'
or, if you don't have gnu grep
pkginfo -i | grep -i ssl
pkginfo -i | grep -i pcre
/usr/local/ssl/bin/openssl version
env 
which gmake make ldd openssl
ldd -s /path/to/openssl from above
 ls -laR /usr/sfw | grep -i pcre 
ls -laR /usr/sfw | grep -i ssl*.so 

gcc -v

Sounds like you might have a couple versions of some tools.  
quoted from Keelie

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Keelie [user-a6cb21ab99e1@xymon.invalid]
Sent: Friday, November 25, 2011 2:22 AM
To: xymon at xymon.com
Subject: [Xymon] Solaris X86 xymon configure problems

Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.

This is the output of my ./configure:

Configuration script for Xymon

This script asks a few questions and builds a Makefile to compile Xymon

Checking your make-utility
Checking pre-requisites for building Xymon

Checking for fping ...
Xymon has a built-in ping utility (xymonping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I found fping in /usr/local/sbin/fping
Do you want to use it [Y/n] ?
Y
Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/local/sbin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymond'
      user is also allowed to run fping without having to enter passwords.
      For 'sudo', add something like this to your 'sudoers' file:
      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping


Checking for RRDtool ...
Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib
Linking RRD with PNG library: -L/usr/lib -lpng


Checking for PCRE ...
Found PCRE include files in /usr/local/include
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
Found PCRE libraries in /usr/local/lib


Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.
Continuing with SSL support disabled.


Checking for LDAP ...
test-ldap.c: In function `main':
test-ldap.c:25: warning: implicit declaration of function `ldap_init'
test-ldap.c:25: warning: assignment makes pointer from integer without a cast
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib


When I run make I get the following:

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all
make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
make[1]: *** [showgraph.cgi] Error 1
make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'
make: *** [web-build] Error 2


*************************************************************************************************
list Roland Soderstrom · Fri, 25 Nov 2011 19:48:00 +0000 ·
Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make
Some packets has  /use/ccs/bin/make hard coded

Roland

Sent from my iPhone
quoted from Keelie

On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid<mailto:user-a6cb21ab99e1@xymon.invalid>> wrote:


Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.

This is the output of my ./configure:

Configuration script for Xymon

This script asks a few questions and builds a Makefile to compile Xymon

Checking your make-utility
Checking pre-requisites for building Xymon

Checking for fping ...
Xymon has a built-in ping utility (xymonping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I found fping in /usr/local/sbin/fping
Do you want to use it [Y/n] ?
Y
Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/local/sbin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymond'
      user is also allowed to run fping without having to enter passwords.
      For 'sudo', add something like this to your 'sudoers' file:
      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping


Checking for RRDtool ...
Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib
Linking RRD with PNG library: -L/usr/lib -lpng


Checking for PCRE ...
Found PCRE include files in /usr/local/include
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
Found PCRE libraries in /usr/local/lib


Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.
Continuing with SSL support disabled.


Checking for LDAP ...
test-ldap.c: In function `main':
test-ldap.c:25: warning: implicit declaration of function `ldap_init'
test-ldap.c:25: warning: assignment makes pointer from integer without a cast
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib


When I run make I get the following:

CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all
make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
make[1]: *** [showgraph.cgi] Error 1
make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'
make: *** [web-build] Error 2


*************************************************************************************************
list Ryan Novosielski · Fri, 25 Nov 2011 19:51:55 -0500 ·
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre
quoted from Roland Soderstrom
On Nov 25, 2011 15:04, Roland Soderstrom &lt;user-0cec9512a49f@xymon.invalid&gt; wrote: 


Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make

Some packets has&nbsp;&nbsp;/use/ccs/bin/make&nbsp;hard coded&nbsp;
quoted from Roland Soderstrom


Roland


Sent from my iPhone


On 25/11/2011, at 9:32 PM, "Keelie" &lt;user-a6cb21ab99e1@xymon.invalid&gt; wrote:


Can
 anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.


&nbsp;
This is the output of my ./configure:
&nbsp;
Configuration script for Xymon
&nbsp;
This script asks a few questions and builds a Makefile to compile Xymon
&nbsp;
Checking your make-utility
Checking pre-requisites for building Xymon
&nbsp;
quoted from Roland Soderstrom
Checking for fping ...
Xymon has a built-in ping utility (xymonping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I found fping in /usr/local/sbin/fping
Do you want to use it [Y/n] ?
Y
Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/local/sbin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymond'

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user is also allowed to run fping without having to enter passwords.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For 'sudo', add something like this to your 'sudoers' file:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping
&nbsp;
&nbsp;
&nbsp;
quoted from Roland Soderstrom
Checking for RRDtool ...
Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib
Linking RRD with PNG library: -L/usr/lib -lpng

&nbsp;
&nbsp;
quoted from Roland Soderstrom
Checking for PCRE ...
Found PCRE include files in /usr/local/include
ld: warning: global symbol '_END_' has non-global binding:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/lib/libpcre.so value=LOCL);
Found PCRE libraries in /usr/local/lib
&nbsp;
&nbsp;
quoted from Roland Soderstrom
Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/ssl/lib/libssl.so value=LOCL);
quoted from Roland Soderstrom
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.
Continuing with SSL support disabled.

&nbsp;
&nbsp;
quoted from Roland Soderstrom
Checking for LDAP ...
test-ldap.c: In function `main':
test-ldap.c:25: warning: implicit declaration of function `ldap_init'
test-ldap.c:25: warning: assignment makes pointer from integer without a cast
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib

&nbsp;
&nbsp;
When I run make I get the following:
&nbsp;
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT&nbsp; -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include"
quoted from Roland Soderstrom
 PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data"
 XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi"
 MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all
make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT&nbsp; -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi&nbsp; showgraph.o ../lib/libxymon.a -L/usr/local/lib
quoted from Roland Soderstrom
 -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/lib/libpcre.so value=LOCL);
quoted from Roland Soderstrom
make[1]: *** [showgraph.cgi] Error 1
make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'
make: *** [web-build] Error 2

&nbsp;


*************************************************************************************************
list Sailesh · Mon, 28 Nov 2011 08:12:51 +0400 ·
Hi, 

 
The path for the xymon user should be in this order to avoid the compilation problem.

 
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib

 
Regards,

Sailesh
quoted from Ryan Novosielski

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ryan Novosielski
Sent: Saturday, November 26, 2011 4:52 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Solaris X86 xymon configure problems

 
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre

 
On Nov 25, 2011 15:04, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote: 

Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make

Some packets has  /use/ccs/bin/make hard coded 

 
Roland

Sent from my iPhone


On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid> wrote:

 
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.

 
This is the output of my ./configure:

 
Configuration script for Xymon

 
This script asks a few questions and builds a Makefile to compile Xymon

 
Checking your make-utility

Checking pre-requisites for building Xymon

 
Checking for fping ...

Xymon has a built-in ping utility (xymonping)

However, it is not yet fully stable and therefore it

may be best to use the external fping utility instead.

I found fping in /usr/local/sbin/fping

Do you want to use it [Y/n] ?

Y

Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...

127.0.0.1 is alive

OK, will use '/usr/local/sbin/fping' for ping tests

NOTE: If you are using an suid-root wrapper, make sure the 'xymond'

      user is also allowed to run fping without having to enter passwords.

      For 'sudo', add something like this to your 'sudoers' file:

      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping

 
Checking for RRDtool ...

Found RRDtool include files in /usr/local/rrdtool-1.2.19/include

Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib

Linking RRD with PNG library: -L/usr/lib -lpng

 
Checking for PCRE ...

Found PCRE include files in /usr/local/include

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

Found PCRE libraries in /usr/local/lib

 
Checking for OpenSSL ...

Found OpenSSL include files in /usr/local/ssl/include

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

make: *** [test-link] Error 1

WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.

Continuing with SSL support disabled.

 
Checking for LDAP ...

test-ldap.c: In function `main':

test-ldap.c:25: warning: implicit declaration of function `ldap_init'

test-ldap.c:25: warning: assignment makes pointer from integer without a cast

Found LDAP include files in /usr/include

Found LDAP libraries in /usr/lib

 
When I run make I get the following:

 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all

make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

make[1]: *** [showgraph.cgi] Error 1

make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'

make: *** [web-build] Error 2

 
*************************************************************************************************
list Keelie · Mon, 28 Nov 2011 10:23:28 +0000 ·
Hi All,
 
Thanks for all your replies. I have already tried linking /usr/ccs/bin/ld to /usr/local/bin/ld, I found this troubleshooting step on google a few days ago, it didn’t help. I have unlinked it now and installed binutils, which has installed /usr/local/bin/ld.
I have now tried setting the xymon user path to that suggested, but unfortunately that hasn’t helped either.
 
So far I have:
1.     Installed the following packages –
SMClgcc346
SMCzlib
SMClintl
SMCliconv
SMCbinut
SMCcheck
SMCgmp
SMCcoreu
SMCcvs
SMCdb47
SMCevtlog
SMCexpat
SMCftype
SMCfontc
SMCfping
SMCgcc
SMCxpm
SMClibpng
SMCjpeg
SMCgd
SMCncurs
SMCgdb
SMCgdbm
SMCgettxt
SMClibart
SMClibnet
SMClibt
SMCpcre
SMCslang
SMCglib
SMCmake
SMCossl
SMCsasl
SMColdap
SMCperl
SMCreadl
SMCrrdt
 
2.     Added $(NETLIBS) before $(LIBRTDEF ) in all the Makefiles where it was missing
3.     Edited /var/xymon/xymon-4.3.5/xymonnet/ldaptest.c to move the #endif to line 97
4.     Edited /var/xymon/xymon-4.3.5/build/test-rrd.c to add NULL, &ymin, &ymax to line 30
5.     Edit /var/xymon/xymon-4.3.5/web/showgraph.c to add NULL, &ymin, &ymax to line 1156
 
Thanks
Keelie

Sent from my iPhone
quoted from Sailesh

On 28 Nov 2011, at 04:12, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:
Hi,
 
The path for the xymon user should be in this order to avoid the compilation problem.
 
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib
 
 
Regards,
Sailesh
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ryan Novosielski
Sent: Saturday, November 26, 2011 4:52 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Solaris X86 xymon configure problems
 
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre
 
On Nov 25, 2011 15:04, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote:

Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make
Some packets has  /use/ccs/bin/make hard coded 
 
Roland

Sent from my iPhone

On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid> wrote:

 
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.
 
This is the output of my ./configure:
 
Configuration script for Xymon
 
This script asks a few questions and builds a Makefile to compile Xymon
 
Checking your make-utility
Checking pre-requisites for building Xymon
 
Checking for fping ...
Xymon has a built-in ping utility (xymonping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I found fping in /usr/local/sbin/fping
Do you want to use it [Y/n] ?
Y
Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/local/sbin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymond'
      user is also allowed to run fping without having to enter passwords.
      For 'sudo', add something like this to your 'sudoers' file:
      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping
 
 
Checking for RRDtool ...
Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib
Linking RRD with PNG library: -L/usr/lib -lpng
 
 
Checking for PCRE ...
Found PCRE include files in /usr/local/include
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
Found PCRE libraries in /usr/local/lib
 
 
Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.
Continuing with SSL support disabled.
 
 
Checking for LDAP ...
test-ldap.c: In function `main':
test-ldap.c:25: warning: implicit declaration of function `ldap_init'
test-ldap.c:25: warning: assignment makes pointer from integer without a cast
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib
 
 
When I run make I get the following:
 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all
make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
make[1]: *** [showgraph.cgi] Error 1
make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'
make: *** [web-build] Error 2
 
*************************************************************************************************

list Sailesh · Mon, 28 Nov 2011 14:44:34 +0400 ·
Hi Keelie,

 
Please find the packages I have installed on Solaris 10 Sparc.

 
bash-3.00# ls

apache-2.2.21-sol10-sparc-local       libtool-2.4-sol10-sparc-local

db-4.7.25.NC-sol10-sparc-local        make-3.82-sol10-sparc-local

expat-2.0.1-sol10-sparc-local         openldap-2.4.24-sol10-sparc-local

fontconfig-2.8.0-sol10-sparc-local    openldap-2.4.26-sol10-sparc-local

fping-2.4b2-sol10-sparc-local         openssl-1.0.0e-sol10-sparc-local

freetype-2.4.2-sol10-sparc-local      pango-1.18.2-sol10-sparc-local

ganglia-3.0.7-sol10-sparc-local       pcre-8.20-sol10-sparc-local

gcc-3.4.6-sol10-sparc-local           prngd-0.9.25-sol10-sparc-local

glib-2.25.13-sol10-sparc-local        render-0.8-sol10-sparc-local

jpeg-8a-sol10-sparc-local             renderproto-0.9.3-sol10-sparc-local

jpeg2ps-1.9-sol10-sparc-local         rrdtool-1.2.19-sol10-sparc-local

jpeginfo-1.6.1-sol10-sparc-local      sasl-2.1.25-sol10-sparc-local

libart_lgpl-2.3.19-sol10-sparc-local  tar-1.26-sol10-sparc-local

libgcc-3.4.6-sol10-sparc-local        unrar-3.68-sol10-sparc-local

libiconv-1.14-sol10-sparc-local       xrender-0.8.3-sol10-sparc-local

libintl-3.4.0-sol10-sparc-local       xymon-4.2.2.tar

libpng-1.2.44-sol10-sparc-local       zlib-1.2.5-sol10-sparc-local

 
You do not have to link all these libraries. Go on http://sunfreeware.com/indexsparc10.html to download all the packages you required.

 
The most important thing is to put the path in the correct order.

PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib

 
Regards,

Sailesh
quoted from Keelie

 
From: Keelie [mailto:user-a6cb21ab99e1@xymon.invalid] 
Sent: Monday, November 28, 2011 2:23 PM
To: Sailesh
Cc: Ryan Novosielski; xymon at xymon.com; user-0cec9512a49f@xymon.invalid
Subject: Re: [Xymon] Solaris X86 xymon configure problems

 
Hi All,

 
Thanks for all your replies. I have already tried linking /usr/ccs/bin/ld to /usr/local/bin/ld, I found this troubleshooting step on google a few days ago, it didn’t help. I have unlinked it now and installed binutils, which has installed /usr/local/bin/ld.

I have now tried setting the xymon user path to that suggested, but unfortunately that hasn’t helped either.

 
So far I have:

1.     Installed the following packages –

SMClgcc346

SMCzlib

SMClintl

SMCliconv

SMCbinut

SMCcheck

SMCgmp

SMCcoreu

SMCcvs

SMCdb47

SMCevtlog

SMCexpat

SMCftype

SMCfontc

SMCfping

SMCgcc

SMCxpm

SMClibpng

SMCjpeg

SMCgd

SMCncurs

SMCgdb

SMCgdbm

SMCgettxt

SMClibart

SMClibnet

SMClibt

SMCpcre

SMCslang

SMCglib

SMCmake

SMCossl

SMCsasl

SMColdap

SMCperl

SMCreadl

SMCrrdt

 
2.     Added $(NETLIBS) before $(LIBRTDEF ) in all the Makefiles where it was missing

3.     Edited /var/xymon/xymon-4.3.5/xymonnet/ldaptest.c to move the #endif to line 97

4.     Edited /var/xymon/xymon-4.3.5/build/test-rrd.c to add NULL, &ymin, &ymax to line 30

5.     Edit /var/xymon/xymon-4.3.5/web/showgraph.c to add NULL, &ymin, &ymax to line 1156

 
Thanks

Keelie


Sent from my iPhone


On 28 Nov 2011, at 04:12, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:

Hi, 

 
The path for the xymon user should be in this order to avoid the compilation problem.

 
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib

 
Regards,

Sailesh

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ryan Novosielski
Sent: Saturday, November 26, 2011 4:52 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Solaris X86 xymon configure problems

 
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre

 
On Nov 25, 2011 15:04, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote: 

Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make

Some packets has  /use/ccs/bin/make hard coded 

 
Roland

Sent from my iPhone


On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid> wrote:

 
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.

 
This is the output of my ./configure:

 
Configuration script for Xymon

 
This script asks a few questions and builds a Makefile to compile Xymon

 
Checking your make-utility

Checking pre-requisites for building Xymon

 
Checking for fping ...

Xymon has a built-in ping utility (xymonping)

However, it is not yet fully stable and therefore it

may be best to use the external fping utility instead.

I found fping in /usr/local/sbin/fping

Do you want to use it [Y/n] ?

Y

Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...

127.0.0.1 is alive

OK, will use '/usr/local/sbin/fping' for ping tests

NOTE: If you are using an suid-root wrapper, make sure the 'xymond'

      user is also allowed to run fping without having to enter passwords.

      For 'sudo', add something like this to your 'sudoers' file:

      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping

 
Checking for RRDtool ...

Found RRDtool include files in /usr/local/rrdtool-1.2.19/include

Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib

Linking RRD with PNG library: -L/usr/lib -lpng

 
Checking for PCRE ...

Found PCRE include files in /usr/local/include

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

Found PCRE libraries in /usr/local/lib

 
Checking for OpenSSL ...

Found OpenSSL include files in /usr/local/ssl/include

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

make: *** [test-link] Error 1

WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.

Continuing with SSL support disabled.

 
Checking for LDAP ...

test-ldap.c: In function `main':

test-ldap.c:25: warning: implicit declaration of function `ldap_init'

test-ldap.c:25: warning: assignment makes pointer from integer without a cast

Found LDAP include files in /usr/include

Found LDAP libraries in /usr/lib

 
When I run make I get the following:

 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all

make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

make[1]: *** [showgraph.cgi] Error 1

make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'

make: *** [web-build] Error 2

 
*************************************************************************************************
list Keelie · Mon, 28 Nov 2011 12:21:20 +0000 ·
Hi Sailesh,

Thanks for your quick response.
I have ensured I have all the same packages as you have listed installed and I copy/pasted the path as you have suggested, I still get exactly the same error.

I think my problem is more to do with the OpenSSL core dump during the configure stage rather than my env setup.

Regards
quoted from Sailesh
Keelie

Sent from my iPhone

On 28 Nov 2011, at 10:44, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:
Hi Keelie,
 
Please find the packages I have installed on Solaris 10 Sparc.
 
bash-3.00# ls
apache-2.2.21-sol10-sparc-local       libtool-2.4-sol10-sparc-local
db-4.7.25.NC-sol10-sparc-local        make-3.82-sol10-sparc-local
expat-2.0.1-sol10-sparc-local         openldap-2.4.24-sol10-sparc-local
fontconfig-2.8.0-sol10-sparc-local    openldap-2.4.26-sol10-sparc-local
fping-2.4b2-sol10-sparc-local         openssl-1.0.0e-sol10-sparc-local
freetype-2.4.2-sol10-sparc-local      pango-1.18.2-sol10-sparc-local
ganglia-3.0.7-sol10-sparc-local       pcre-8.20-sol10-sparc-local
gcc-3.4.6-sol10-sparc-local           prngd-0.9.25-sol10-sparc-local
glib-2.25.13-sol10-sparc-local        render-0.8-sol10-sparc-local
jpeg-8a-sol10-sparc-local             renderproto-0.9.3-sol10-sparc-local
jpeg2ps-1.9-sol10-sparc-local         rrdtool-1.2.19-sol10-sparc-local
jpeginfo-1.6.1-sol10-sparc-local      sasl-2.1.25-sol10-sparc-local
libart_lgpl-2.3.19-sol10-sparc-local  tar-1.26-sol10-sparc-local
libgcc-3.4.6-sol10-sparc-local        unrar-3.68-sol10-sparc-local
libiconv-1.14-sol10-sparc-local       xrender-0.8.3-sol10-sparc-local
libintl-3.4.0-sol10-sparc-local       xymon-4.2.2.tar
libpng-1.2.44-sol10-sparc-local       zlib-1.2.5-sol10-sparc-local
 
You do not have to link all these libraries. Go on http://sunfreeware.com/indexsparc10.html to download all the packages you required.
 
The most important thing is to put the path in the correct order.
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib
 
 
Regards,
Sailesh
 
From: Keelie [mailto:user-a6cb21ab99e1@xymon.invalid] 
Sent: Monday, November 28, 2011 2:23 PM
To: Sailesh
Cc: Ryan Novosielski; xymon at xymon.com; user-0cec9512a49f@xymon.invalid
Subject: Re: [Xymon] Solaris X86 xymon configure problems
 
Hi All,
 
Thanks for all your replies. I have already tried linking /usr/ccs/bin/ld to /usr/local/bin/ld, I found this troubleshooting step on google a few days ago, it didn’t help. I have unlinked it now and installed binutils, which has installed /usr/local/bin/ld.
I have now tried setting the xymon user path to that suggested, but unfortunately that hasn’t helped either.
 
So far I have:
1.     Installed the following packages –
SMClgcc346
SMCzlib
SMClintl
SMCliconv
SMCbinut
SMCcheck
SMCgmp
SMCcoreu
SMCcvs
SMCdb47
SMCevtlog
SMCexpat
SMCftype
SMCfontc
SMCfping
SMCgcc
SMCxpm
SMClibpng
SMCjpeg
SMCgd
SMCncurs
SMCgdb
SMCgdbm
SMCgettxt
SMClibart
SMClibnet
SMClibt
SMCpcre
SMCslang
SMCglib
SMCmake
SMCossl
SMCsasl
SMColdap
SMCperl
SMCreadl
SMCrrdt
 
2.     Added $(NETLIBS) before $(LIBRTDEF ) in all the Makefiles where it was missing
3.     Edited /var/xymon/xymon-4.3.5/xymonnet/ldaptest.c to move the #endif to line 97
4.     Edited /var/xymon/xymon-4.3.5/build/test-rrd.c to add NULL, &ymin, &ymax to line 30
5.     Edit /var/xymon/xymon-4.3.5/web/showgraph.c to add NULL, &ymin, &ymax to line 1156
 
Thanks
Keelie

Sent from my iPhone

On 28 Nov 2011, at 04:12, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:

Hi,
 
The path for the xymon user should be in this order to avoid the compilation problem.
 
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib
 
 
Regards,
Sailesh
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ryan Novosielski
Sent: Saturday, November 26, 2011 4:52 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Solaris X86 xymon configure problems
 
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre
 
On Nov 25, 2011 15:04, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote:

Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make
Some packets has  /use/ccs/bin/make hard coded 
 
Roland

Sent from my iPhone

On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid> wrote:

 
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.
 
This is the output of my ./configure:
 
Configuration script for Xymon
 
This script asks a few questions and builds a Makefile to compile Xymon
 
Checking your make-utility
Checking pre-requisites for building Xymon
 
Checking for fping ...
Xymon has a built-in ping utility (xymonping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I found fping in /usr/local/sbin/fping
Do you want to use it [Y/n] ?
Y
Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/local/sbin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymond'
      user is also allowed to run fping without having to enter passwords.
      For 'sudo', add something like this to your 'sudoers' file:
      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping
 
 
Checking for RRDtool ...
Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib
Linking RRD with PNG library: -L/usr/lib -lpng
 
 
Checking for PCRE ...
Found PCRE include files in /usr/local/include
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
Found PCRE libraries in /usr/local/lib
 
 
Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.
Continuing with SSL support disabled.
 
 
Checking for LDAP ...
test-ldap.c: In function `main':
test-ldap.c:25: warning: implicit declaration of function `ldap_init'
test-ldap.c:25: warning: assignment makes pointer from integer without a cast
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib
 
 
When I run make I get the following:
 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all
make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
make[1]: *** [showgraph.cgi] Error 1
make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'
make: *** [web-build] Error 2
 
*************************************************************************************************

list Sailesh · Mon, 28 Nov 2011 16:23:32 +0400 ·
Hi Keelie,

 
Please do not select the OpenSSL while configuring the Xymon. Just select no and see if you can the same error.
quoted from Keelie

 
Regards,

Sailesh

 
From: Keelie [mailto:user-a6cb21ab99e1@xymon.invalid] 
Sent: Monday, November 28, 2011 4:21 PM
To: Sailesh
Cc: <xymon at xymon.com>
Subject: Re: [Xymon] Solaris X86 xymon configure problems

 
Hi Sailesh,

 
Thanks for your quick response.

I have ensured I have all the same packages as you have listed installed and I copy/pasted the path as you have suggested, I still get exactly the same error.

 
I think my problem is more to do with the OpenSSL core dump during the configure stage rather than my env setup.

 
Regards

Keelie

Sent from my iPhone


On 28 Nov 2011, at 10:44, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:

Hi Keelie,

 
Please find the packages I have installed on Solaris 10 Sparc.

 
bash-3.00# ls

apache-2.2.21-sol10-sparc-local       libtool-2.4-sol10-sparc-local

db-4.7.25.NC-sol10-sparc-local        make-3.82-sol10-sparc-local

expat-2.0.1-sol10-sparc-local         openldap-2.4.24-sol10-sparc-local

fontconfig-2.8.0-sol10-sparc-local    openldap-2.4.26-sol10-sparc-local

fping-2.4b2-sol10-sparc-local         openssl-1.0.0e-sol10-sparc-local

freetype-2.4.2-sol10-sparc-local      pango-1.18.2-sol10-sparc-local

ganglia-3.0.7-sol10-sparc-local       pcre-8.20-sol10-sparc-local

gcc-3.4.6-sol10-sparc-local           prngd-0.9.25-sol10-sparc-local

glib-2.25.13-sol10-sparc-local        render-0.8-sol10-sparc-local

jpeg-8a-sol10-sparc-local             renderproto-0.9.3-sol10-sparc-local

jpeg2ps-1.9-sol10-sparc-local         rrdtool-1.2.19-sol10-sparc-local

jpeginfo-1.6.1-sol10-sparc-local      sasl-2.1.25-sol10-sparc-local

libart_lgpl-2.3.19-sol10-sparc-local  tar-1.26-sol10-sparc-local

libgcc-3.4.6-sol10-sparc-local        unrar-3.68-sol10-sparc-local

libiconv-1.14-sol10-sparc-local       xrender-0.8.3-sol10-sparc-local

libintl-3.4.0-sol10-sparc-local       xymon-4.2.2.tar

libpng-1.2.44-sol10-sparc-local       zlib-1.2.5-sol10-sparc-local

 
You do not have to link all these libraries. Go on http://sunfreeware.com/indexsparc10.html to download all the packages you required.

 
The most important thing is to put the path in the correct order.

PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib

 
Regards,

Sailesh

 
From: Keelie [mailto:user-a6cb21ab99e1@xymon.invalid] 
Sent: Monday, November 28, 2011 2:23 PM
To: Sailesh
Cc: Ryan Novosielski; xymon at xymon.com; user-0cec9512a49f@xymon.invalid
Subject: Re: [Xymon] Solaris X86 xymon configure problems

 
Hi All,

 
Thanks for all your replies. I have already tried linking /usr/ccs/bin/ld to /usr/local/bin/ld, I found this troubleshooting step on google a few days ago, it didn’t help. I have unlinked it now and installed binutils, which has installed /usr/local/bin/ld.

I have now tried setting the xymon user path to that suggested, but unfortunately that hasn’t helped either.

 
So far I have:

1.     Installed the following packages –

SMClgcc346

SMCzlib

SMClintl

SMCliconv

SMCbinut

SMCcheck

SMCgmp

SMCcoreu

SMCcvs

SMCdb47

SMCevtlog

SMCexpat

SMCftype

SMCfontc

SMCfping

SMCgcc

SMCxpm

SMClibpng

SMCjpeg

SMCgd

SMCncurs

SMCgdb

SMCgdbm

SMCgettxt

SMClibart

SMClibnet

SMClibt

SMCpcre

SMCslang

SMCglib

SMCmake

SMCossl

SMCsasl

SMColdap

SMCperl

SMCreadl

SMCrrdt

 
2.     Added $(NETLIBS) before $(LIBRTDEF ) in all the Makefiles where it was missing

3.     Edited /var/xymon/xymon-4.3.5/xymonnet/ldaptest.c to move the #endif to line 97

4.     Edited /var/xymon/xymon-4.3.5/build/test-rrd.c to add NULL, &ymin, &ymax to line 30

5.     Edit /var/xymon/xymon-4.3.5/web/showgraph.c to add NULL, &ymin, &ymax to line 1156

 
Thanks

Keelie


Sent from my iPhone


On 28 Nov 2011, at 04:12, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:

Hi, 

 
The path for the xymon user should be in this order to avoid the compilation problem.

 
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib

 
Regards,

Sailesh

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ryan Novosielski
Sent: Saturday, November 26, 2011 4:52 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Solaris X86 xymon configure problems

 
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre

 
On Nov 25, 2011 15:04, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote: 

Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make

Some packets has  /use/ccs/bin/make hard coded 

 
Roland

Sent from my iPhone


On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid> wrote:

 
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.

 
This is the output of my ./configure:

 
Configuration script for Xymon

 
This script asks a few questions and builds a Makefile to compile Xymon

 
Checking your make-utility

Checking pre-requisites for building Xymon

 
Checking for fping ...

Xymon has a built-in ping utility (xymonping)

However, it is not yet fully stable and therefore it

may be best to use the external fping utility instead.

I found fping in /usr/local/sbin/fping

Do you want to use it [Y/n] ?

Y

Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...

127.0.0.1 is alive

OK, will use '/usr/local/sbin/fping' for ping tests

NOTE: If you are using an suid-root wrapper, make sure the 'xymond'

      user is also allowed to run fping without having to enter passwords.

      For 'sudo', add something like this to your 'sudoers' file:

      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping

 
Checking for RRDtool ...

Found RRDtool include files in /usr/local/rrdtool-1.2.19/include

Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib

Linking RRD with PNG library: -L/usr/lib -lpng

 
Checking for PCRE ...

Found PCRE include files in /usr/local/include

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

Found PCRE libraries in /usr/local/lib

 
Checking for OpenSSL ...

Found OpenSSL include files in /usr/local/ssl/include

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/ssl/lib/libssl.so value=LOCL);

make: *** [test-link] Error 1

WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.

Continuing with SSL support disabled.

 
Checking for LDAP ...

test-ldap.c: In function `main':

test-ldap.c:25: warning: implicit declaration of function `ldap_init'

test-ldap.c:25: warning: assignment makes pointer from integer without a cast

Found LDAP include files in /usr/include

Found LDAP libraries in /usr/lib

 
When I run make I get the following:

 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all

make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'

gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt

collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped

ld: warning: global symbol '_END_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

ld: warning: global symbol '_START_' has non-global binding:

        (file /usr/local/lib/libpcre.so value=LOCL);

make[1]: *** [showgraph.cgi] Error 1

make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'

make: *** [web-build] Error 2

 
*************************************************************************************************
list Keelie · Mon, 28 Nov 2011 12:42:21 +0000 ·
Hi Sailesh,

I have run the configure & selected no to the OpenSSL I still get the same error.

Thanks
Keeloe
quoted from Sailesh

Sent from my iPhone

On 28 Nov 2011, at 12:23, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:
Hi Keelie,
 
Please do not select the OpenSSL while configuring the Xymon. Just select no and see if you can the same error.
 
Regards,
Sailesh
 
From: Keelie [mailto:user-a6cb21ab99e1@xymon.invalid] 
Sent: Monday, November 28, 2011 4:21 PM
To: Sailesh
Cc: <xymon at xymon.com>
Subject: Re: [Xymon] Solaris X86 xymon configure problems
 
Hi Sailesh,
 
Thanks for your quick response.
I have ensured I have all the same packages as you have listed installed and I copy/pasted the path as you have suggested, I still get exactly the same error.
 
I think my problem is more to do with the OpenSSL core dump during the configure stage rather than my env setup.
 
Regards
Keelie

Sent from my iPhone

On 28 Nov 2011, at 10:44, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:

Hi Keelie,
 
Please find the packages I have installed on Solaris 10 Sparc.
 
bash-3.00# ls
apache-2.2.21-sol10-sparc-local       libtool-2.4-sol10-sparc-local
db-4.7.25.NC-sol10-sparc-local        make-3.82-sol10-sparc-local
expat-2.0.1-sol10-sparc-local         openldap-2.4.24-sol10-sparc-local
fontconfig-2.8.0-sol10-sparc-local    openldap-2.4.26-sol10-sparc-local
fping-2.4b2-sol10-sparc-local         openssl-1.0.0e-sol10-sparc-local
freetype-2.4.2-sol10-sparc-local      pango-1.18.2-sol10-sparc-local
ganglia-3.0.7-sol10-sparc-local       pcre-8.20-sol10-sparc-local
gcc-3.4.6-sol10-sparc-local           prngd-0.9.25-sol10-sparc-local
glib-2.25.13-sol10-sparc-local        render-0.8-sol10-sparc-local
jpeg-8a-sol10-sparc-local             renderproto-0.9.3-sol10-sparc-local
jpeg2ps-1.9-sol10-sparc-local         rrdtool-1.2.19-sol10-sparc-local
jpeginfo-1.6.1-sol10-sparc-local      sasl-2.1.25-sol10-sparc-local
libart_lgpl-2.3.19-sol10-sparc-local  tar-1.26-sol10-sparc-local
libgcc-3.4.6-sol10-sparc-local        unrar-3.68-sol10-sparc-local
libiconv-1.14-sol10-sparc-local       xrender-0.8.3-sol10-sparc-local
libintl-3.4.0-sol10-sparc-local       xymon-4.2.2.tar
libpng-1.2.44-sol10-sparc-local       zlib-1.2.5-sol10-sparc-local
 
You do not have to link all these libraries. Go on http://sunfreeware.com/indexsparc10.html to download all the packages you required.
 
The most important thing is to put the path in the correct order.
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib
 
 
Regards,
Sailesh
 
From: Keelie [mailto:user-a6cb21ab99e1@xymon.invalid] 
Sent: Monday, November 28, 2011 2:23 PM
To: Sailesh
Cc: Ryan Novosielski; xymon at xymon.com; user-0cec9512a49f@xymon.invalid
Subject: Re: [Xymon] Solaris X86 xymon configure problems
 
Hi All,
 
Thanks for all your replies. I have already tried linking /usr/ccs/bin/ld to /usr/local/bin/ld, I found this troubleshooting step on google a few days ago, it didn’t help. I have unlinked it now and installed binutils, which has installed /usr/local/bin/ld.
I have now tried setting the xymon user path to that suggested, but unfortunately that hasn’t helped either.
 
So far I have:
1.     Installed the following packages –
SMClgcc346
SMCzlib
SMClintl
SMCliconv
SMCbinut
SMCcheck
SMCgmp
SMCcoreu
SMCcvs
SMCdb47
SMCevtlog
SMCexpat
SMCftype
SMCfontc
SMCfping
SMCgcc
SMCxpm
SMClibpng
SMCjpeg
SMCgd
SMCncurs
SMCgdb
SMCgdbm
SMCgettxt
SMClibart
SMClibnet
SMClibt
SMCpcre
SMCslang
SMCglib
SMCmake
SMCossl
SMCsasl
SMColdap
SMCperl
SMCreadl
SMCrrdt
 
2.     Added $(NETLIBS) before $(LIBRTDEF ) in all the Makefiles where it was missing
3.     Edited /var/xymon/xymon-4.3.5/xymonnet/ldaptest.c to move the #endif to line 97
4.     Edited /var/xymon/xymon-4.3.5/build/test-rrd.c to add NULL, &ymin, &ymax to line 30
5.     Edit /var/xymon/xymon-4.3.5/web/showgraph.c to add NULL, &ymin, &ymax to line 1156
 
Thanks
Keelie

Sent from my iPhone

On 28 Nov 2011, at 04:12, "Sailesh" <user-603c06b12dd1@xymon.invalid> wrote:

Hi,
 
The path for the xymon user should be in this order to avoid the compilation problem.
 
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/lib
 
 
Regards,
Sailesh
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Ryan Novosielski
Sent: Saturday, November 26, 2011 4:52 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Solaris X86 xymon configure problems
 
This is absolutely not necessary and will drive your co-workers up the wall. I do not recall having any specific difficulties compiling though I do not remember which compiler. I can get back to you, but I wanted to chime in strongly against screwing around with system binaries.

-- Sent from my Palm Pre
 
On Nov 25, 2011 15:04, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote:

Try using gnu make only, you need to mv /use/ccs/bin/make first and make a link to gnu make
Some packets has  /use/ccs/bin/make hard coded 
 
Roland

Sent from my iPhone

On 25/11/2011, at 9:32 PM, "Keelie" <user-a6cb21ab99e1@xymon.invalid> wrote:

 
Can anyone please shed any light on the issue I’m having. I’ve been troubleshooting xymon installation for over a week now, each time I fix one issue I hit another.
 
This is the output of my ./configure:
 
Configuration script for Xymon
 
This script asks a few questions and builds a Makefile to compile Xymon
 
Checking your make-utility
Checking pre-requisites for building Xymon
 
Checking for fping ...
Xymon has a built-in ping utility (xymonping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I found fping in /usr/local/sbin/fping
Do you want to use it [Y/n] ?
Y
Checking to see if '/usr/local/sbin/fping 127.0.0.1' works ...
127.0.0.1 is alive
OK, will use '/usr/local/sbin/fping' for ping tests
NOTE: If you are using an suid-root wrapper, make sure the 'xymond'
      user is also allowed to run fping without having to enter passwords.
      For 'sudo', add something like this to your 'sudoers' file:
      xymon ALL=(ALL) NOPASSWD: /usr/local/sbin/fping
 
 
Checking for RRDtool ...
Found RRDtool include files in /usr/local/rrdtool-1.2.19/include
Found RRDtool libraries in /usr/local/rrdtool-1.2.19/lib
Linking RRD with PNG library: -L/usr/lib -lpng
 
 
Checking for PCRE ...
Found PCRE include files in /usr/local/include
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
Found PCRE libraries in /usr/local/lib
 
 
Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/ssl/lib/libssl.so value=LOCL);
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link fails.
Continuing with SSL support disabled.
 
 
Checking for LDAP ...
test-ldap.c: In function `main':
test-ldap.c:25: warning: implicit declaration of function `ldap_init'
test-ldap.c:25: warning: assignment makes pointer from integer without a cast
Found LDAP include files in /usr/include
Found LDAP libraries in /usr/lib
 
 
When I run make I get the following:
 
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -I/usr/local/include" LDFLAGS="" RPATHOPT="" RRDDEF="" RRDINCDIR="-I/usr/local/rrdtool-1.2.19/include" PCREINCDIR="-I/usr/local/include" NETLIBS="-lresolv -lsocket -lnsl" RRDLIBS="-L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng" PCRELIBS="-L/usr/local/lib -lpcre" LIBRTDEF="-lrt" XYMONTOPDIR="/opt/xymon" XYMONHOME="/opt/xymon/server" XYMONVAR="/opt/xymon/data" XYMONLOGDIR="/var/log/xymon" XYMONHOSTNAME="swpits2" XYMONHOSTIP="127.0.0.1" XYMONHOSTOS="sunos" XYMONUSER="xymon" CGIDIR="/opt/xymon/cgi-bin" SECURECGIDIR="/opt/xymon/cgi-secure" XYMONHOSTURL="/xymon" XYMONCGIURL="/xymon-cgi" SECUREXYMONCGIURL="/xymon-seccgi" MAILPROGRAM=""mailx"" RUNTIMEDEFS="" INSTALLWWWDIR="/opt/xymon/server/www" INSTALLETCDIR="/opt/xymon/server/etc" make -C web all
make[1]: Entering directory `/var/xymon/xymon-4.3.5/web'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/var/xymon/xymon-4.3.5/include -I/usr/local/include -o showgraph.cgi  showgraph.o ../lib/libxymon.a -L/usr/local/lib -lpcre -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/usr/lib -lpng -lresolv -lsocket -lnsl -lrt
collect2: ld terminated with signal 8 [Arithmetic Exception], core dumped
ld: warning: global symbol '_END_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
ld: warning: global symbol '_START_' has non-global binding:
        (file /usr/local/lib/libpcre.so value=LOCL);
make[1]: *** [showgraph.cgi] Error 1
make[1]: Leaving directory `/var/xymon/xymon-4.3.5/web'
make: *** [web-build] Error 2
 
*************************************************************************************************

list Roland Soderstrom · Wed, 30 Nov 2011 07:41:58 +1100 ·
Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.

I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.
Client though. using configure.client
Try that first.

- Roland
list Martin Flemming · Tue, 29 Nov 2011 21:52:42 +0100 (CET) ·
quoted from Roland Soderstrom
On Wed, 30 Nov 2011, Roland Soderstrom wrote:
Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.

I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.
Client though. using configure.client
Try that first.

- Roland

Hi !

.. by the way, also with LFS-Support ?

cheers,

        Martin
list Roland Soderstrom · Wed, 30 Nov 2011 07:59:43 +1100 ·
Hi Martin,

Guess not...
Checking for Large File Support ...
ERROR: LFS support check failed for standard file support

How do you turn that on?

- Roland

root@sunws1:/home/rolands/download/xymon-4.3.5# ./configure.client

Configuration script for Xymon client

quoted from KeelieThis script asks a few questions and builds a Makefile to compile Xymon

Checking your make-utility

Xymon normally keeps all of the client configuration files
on the Xymon server. If you prefer, it is possible to use
a local client configuration file instead - if so, answer
'client' to the next question.
NB: Local configuration requires the PCRE libs on each host.

Server side client configuration, or client side [server] ?

Checking for Large File Support ...
ERROR: LFS support check failed for standard file support

Checking for clock_gettime() requiring librt ...
clock_gettime() requires librt

What userid will be running Xymon [xymon] ?

Found passwd entry for user xymon:x:62003:121:Xymon Owner:/usr/local/xymon:/usr/bin/bash

Where do you want the Xymon installation [/usr/local/xymon] ?

OK, will configure to use /usr/local/xymon as the Xymon toplevel directory

What is the IP-address of your Xymon server [127.0.0.1] ?

Using SunOS Makefile settings

Created Makefile with the necessary information to build Xymon
Some defaults are used, so do look at the Makefile before continuing.

Configuration complete - now run make -s (GNU make) to build the tools
root@sunws1:/home/rolands/download/xymon-4.3.5# /usr/local/bin/make
MAKE="/usr/local/bin/make" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" `pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS" RPATHOPT="" PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" XYMONTOPDIR="/usr/local/xymon" XYMONLOGDIR="" XYMONHOSTNAME="" XYMONHOSTIP="192.168.34.72" XYMONHOSTOS="" LOCALCLIENT="no" /usr/local/bin/make -C lib client
make[1]: Entering directory `/home/rolands/download/xymon-4.3.5/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -o test-endianness test-endianness.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o osdefs.o osdefs.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o cgiurls.o cgiurls.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -DCLIENTONLY -c -o color-client.o color.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o crondate.o crondate.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o digest.o digest.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o encoding.o encoding.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -DXYMONTOPDIR=\"/usr/local/xymon\" -DXYMONLOGDIR=\"\" -DXYMONHOSTNAME=\"\" -DXYMONHOSTIP=\"192.168.34.72\" -DXYMONHOSTOS=\"\" -DBUILD_HOME=\"/usr/local/xymon/client\" -c -o environ-client.o environ.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o errormsg.o errormsg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o holidays.o holidays.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o ipaccess.o ipaccess.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o loadhosts.o loadhosts.c
loadhosts_file.c: In function `load_hostnames':
loadhosts_file.c:131: warning: 'insavchar' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o md5.o md5.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o memory.o memory.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o misc.o misc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o msort.o msort.c
msort.c: In function `msort':
msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include `./test-endianness` -c -o rmd160c.o rmd160c.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o sendmsg.o sendmsg.c
sendmsg.c: In function `sendtoxymond':
sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include `./test-endianness` -c -o sha1.o sha1.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o sha2.o sha2.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o sig.o sig.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o stackio.o stackio.c
stackio.c: In function `stackfgets':
stackio.c:424: warning: 'eolchar' might be used uninitialized in this function
stackio.c:440: warning: 'eolchar' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o strfunc.o strfunc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o suid.o suid.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -DCLIENTONLY -c -o timefunc-client.o timefunc.c
timefunc.c: In function `timespec_text':
timefunc.c:126: warning: 'days' might be used uninitialized in this function
timefunc.c:126: warning: 'starttime' might be used uninitialized in this function
timefunc.c:126: warning: 'endtime' might be used uninitialized in this function
timefunc.c:126: warning: 'columns' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include -c -o tree.o tree.c
ar cr xymonclient.a osdefs.o cgiurls.o color-client.o crondate.o digest.o encoding.o environ-client.o errormsg.o holidays.o ipaccess.o loadhosts.o md5.o memory.o misc.o msort.o rmd160c.o sendmsg.o sha1.o sha2.o sig.o stackio.o strfunc.o suid.o timefunc-client.o tree.o
ranlib xymonclient.a || echo ""
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/lib'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" XYMONHOME="/usr/local/xymon/client" /usr/local/bin/make -C common client
make[1]: Entering directory `/home/rolands/download/xymon-4.3.5/common'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymon.o xymon.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymon xymon.o ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymonlaunch.o xymonlaunch.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymonlaunch xymonlaunch.o ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymoncmd.o xymoncmd.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymoncmd xymoncmd.o ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymongrep.o xymongrep.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymongrep xymongrep.o ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymoncfg.o xymoncfg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymoncfg xymoncfg.o ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymondigest.o xymondigest.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymondigest xymondigest.o ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/common'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" XYMONHOME="/usr/local/xymon/client" /usr/local/bin/make -C build all
make[1]: Entering directory `/home/rolands/download/xymon-4.3.5/build'
gcc -o merge-lines -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 merge-lines.c
gcc -o merge-sects -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 merge-sects.c
gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 setup-newfiles.c ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -o renamevars -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 renamevars.c
gcc -o renametasks -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 renametasks.c
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/build'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" XYMONHOME="/usr/local/xymon/client" XYMONHOSTIP="192.168.34.72" LOCALCLIENT="no" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" /usr/local/bin/make -C client allmake[1]: Entering directory `/home/rolands/download/xymon-4.3.5/client'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o logfetch logfetch.c ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o clientupdate clientupdate.c ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o orcaxymon orcaxymon.c ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o msgcache msgcache.c ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
cat xymonclient.cfg.DIST | sed -e 's!@XYMONHOSTIP@!192.168.34.72!g' >xymonclient.cfg
../build/bb-commands.sh >>xymonclient.cfg
cat clientlaunch.cfg.DIST | sed -e 's!@CLIENTFLAGS@!!g' >clientlaunch.cfg
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/client'

Build complete.

#####################################################################
IMPORTANT: If upgrading from 4.2.x, see the docs/upgrade-to-430.txt
file for instructions. You must run build/upgrade430.sh
before installing the new version.
#####################################################################

Now run '/usr/local/bin/make install' as root

root@sunws1:/home/rolands/download/xymon-4.3.5#

quoted from Martin Flemming
On 30/11/11 07:52 AM, Martin Flemming wrote:

On Wed, 30 Nov 2011, Roland Soderstrom wrote:

Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.

I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.
Client though. using configure.client
Try that first.

- Roland


Hi !

.. by the way, also with LFS-Support ?

cheers,

Martin

Xymon@xymon.com
list Martin Flemming · Tue, 29 Nov 2011 22:09:54 +0100 (CET) ·
quoted from Roland Soderstrom
On Wed, 30 Nov 2011, Roland Soderstrom wrote:
Hi Martin,

Guess not...
Checking for Large File Support ...
ERROR: LFS support check failed for standard file support

How do you turn that on?
Unfortunately I couldn't, too  :-(

see

http://lists.xymon.com/archive/2011-November/033200.html

martin
root at sunws1:/home/rolands/download/xymon-4.3.5# ./configure.client
quoted from Roland Soderstrom

Configuration script for Xymon client

This script asks a few questions and builds a Makefile to compile Xymon

Checking your make-utility

Xymon normally keeps all of the client configuration files
on the Xymon server. If you prefer, it is possible to use
a local client configuration file instead - if so, answer
'client' to the next question.
NB: Local configuration requires the PCRE libs on each host.

Server side client configuration, or client side [server] ?


Checking for Large File Support ...
ERROR: LFS support check failed for standard file support


Checking for clock_gettime() requiring librt ...
clock_gettime() requires librt


What userid will be running Xymon [xymon] ?

Found passwd entry for user xymon:x:62003:121:Xymon Owner:/usr/local/xymon:/usr/bin/bash


Where do you want the Xymon installation [/usr/local/xymon] ?

OK, will configure to use /usr/local/xymon as the Xymon toplevel directory


What is the IP-address of your Xymon server [127.0.0.1] ?


Using SunOS Makefile settings


Created Makefile with the necessary information to build Xymon
Some defaults are used, so do look at the Makefile before continuing.

Configuration complete - now run make -s (GNU make) to build the tools

root at sunws1:/home/rolands/download/xymon-4.3.5# /usr/local/bin/make
quoted from Roland Soderstrom
MAKE="/usr/local/bin/make" CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS=""
`pwd`/build/genconfig.sh
Checking for socklen_t
Checking for snprintf
Checking for vsnprintf
Checking for rpc/rpcent.h
Checking for sys/select.h
Checking for u_int32_t typedef
Checking for PATH_MAX definition
Checking for SHUT_RD/WR/RDWR definitions
Checking for strtoll()
config.h created
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DSunOS" RPATHOPT=""
PCREINCDIR="" SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" XYMONTOPDIR="/usr/local/xymon"
XYMONLOGDIR="" XYMONHOSTNAME="" XYMONHOSTIP="192.168.34.72" XYMONHOSTOS="" LOCALCLIENT="no" /usr/local/bin/make -C lib client
make[1]: Entering directory `/home/rolands/download/xymon-4.3.5/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include  -o
test-endianness test-endianness.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
osdefs.o osdefs.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
cgiurls.o cgiurls.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include 
-DCLIENTONLY -c -o color-client.o color.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
crondate.o crondate.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
digest.o digest.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
encoding.o encoding.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include 
-DXYMONTOPDIR=\"/usr/local/xymon\" -DXYMONLOGDIR=\"\" -DXYMONHOSTNAME=\"\" -DXYMONHOSTIP=\"192.168.34.72\" -DXYMONHOSTOS=\"\"
-DBUILD_HOME=\"/usr/local/xymon/client\" -c -o environ-client.o environ.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
errormsg.o errormsg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
holidays.o holidays.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
ipaccess.o ipaccess.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include  -c -o
loadhosts.o loadhosts.c
loadhosts_file.c: In function `load_hostnames':
loadhosts_file.c:131: warning: 'insavchar' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
md5.o md5.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
memory.o memory.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
misc.o misc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
msort.o msort.c
msort.c: In function `msort':
msort.c:119: warning: passing arg 4 of `qsort' from incompatible pointer type
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include 
`./test-endianness` -c -o rmd160c.o rmd160c.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
sendmsg.o sendmsg.c
sendmsg.c: In function `sendtoxymond':
sendmsg.c:138: warning: 'sockfd' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include 
`./test-endianness` -c -o sha1.o sha1.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
sha2.o sha2.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
sig.o sig.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
stackio.o stackio.c
stackio.c: In function `stackfgets':
stackio.c:424: warning: 'eolchar' might be used uninitialized in this function
stackio.c:440: warning: 'eolchar' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
strfunc.o strfunc.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
suid.o suid.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include 
-DCLIENTONLY -c -o timefunc-client.o timefunc.c
timefunc.c: In function `timespec_text':
timefunc.c:126: warning: 'days' might be used uninitialized in this function
timefunc.c:126: warning: 'starttime' might be used uninitialized in this function
timefunc.c:126: warning: 'endtime' might be used uninitialized in this function
timefunc.c:126: warning: 'columns' might be used uninitialized in this function
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -I. -I../include    -c -o
tree.o tree.c
ar cr xymonclient.a osdefs.o cgiurls.o color-client.o crondate.o digest.o encoding.o environ-client.o errormsg.o holidays.o ipaccess.o
loadhosts.o md5.o memory.o misc.o msort.o rmd160c.o sendmsg.o sha1.o sha2.o sig.o stackio.o strfunc.o suid.o timefunc-client.o tree.o
ranlib xymonclient.a || echo ""
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/lib'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLFLAGS=""
SSLINCDIR="" SSLLIBS="" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" XYMONHOME="/usr/local/xymon/client" /usr/local/bin/make -C common
client
make[1]: Entering directory `/home/rolands/download/xymon-4.3.5/common'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymon.o xymon.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymon xymon.o
../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymonlaunch.o
xymonlaunch.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymonlaunch
xymonlaunch.o ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymoncmd.o xymoncmd.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymoncmd
xymoncmd.o ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymongrep.o
xymongrep.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymongrep
xymongrep.o ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymoncfg.o xymoncfg.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymoncfg
xymoncfg.o ../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -c -o xymondigest.o
xymondigest.c
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o ../client/xymondigest
xymondigest.o ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/common'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" RPATHOPT="" SSLLIBS=""
NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" XYMONHOME="/usr/local/xymon/client" /usr/local/bin/make -C build all
make[1]: Entering directory `/home/rolands/download/xymon-4.3.5/build'
gcc -o merge-lines -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 merge-lines.c
gcc -o merge-sects -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 merge-sects.c
gcc -o setup-newfiles -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 
setup-newfiles.c ../lib/xymonclient.a  -lresolv -lsocket -lnsl -lrt
gcc -o renamevars -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 renamevars.c
gcc -o renametasks -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 renametasks.c
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/build'
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I`pwd`/include -DCLIENTONLY=1" XYMONHOME="/usr/local/xymon/client"
XYMONHOSTIP="192.168.34.72" LOCALCLIENT="no" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="-lrt" /usr/local/bin/make -C client allmake[1]:
Entering directory `/home/rolands/download/xymon-4.3.5/client'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o logfetch logfetch.c
../lib/xymonclient.a -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o clientupdate
clientupdate.c ../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o orcaxymon orcaxymon.c
../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. -I/home/rolands/download/xymon-4.3.5/include -DCLIENTONLY=1 -o msgcache msgcache.c
../lib/xymonclient.a -lresolv -lsocket -lnsl -lrt
cat xymonclient.cfg.DIST | sed -e 's!@XYMONHOSTIP@!192.168.34.72!g' >xymonclient.cfg
../build/bb-commands.sh >>xymonclient.cfg
cat clientlaunch.cfg.DIST | sed -e 's!@CLIENTFLAGS@!!g' >clientlaunch.cfg
make[1]: Leaving directory `/home/rolands/download/xymon-4.3.5/client'

Build complete.

#####################################################################
IMPORTANT: If upgrading from 4.2.x, see the docs/upgrade-to-430.txt
           file for instructions. You must run build/upgrade430.sh
           before installing the new version.
#####################################################################

Now run '/usr/local/bin/make install' as root

root at sunws1:/home/rolands/download/xymon-4.3.5#
quoted from Martin Flemming


On 30/11/11 07:52 AM, Martin Flemming wrote:

      On Wed, 30 Nov 2011, Roland Soderstrom wrote:

            Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.

            I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.
            Client though. using configure.client
            Try that first.

            - Roland


      Hi !

      .. by the way, also with LFS-Support ?

      cheers,

             Martin
      
list Keelie · Wed, 30 Nov 2011 11:00:58 +0000 ·
Hi

Thanks for all your help. I have now resolved my issues. I did a find & replace to replace all hard coded /usr/ccs with /usr/local & I moved /usr/ccs/bin & /usr/ccs/lib out the way.
quoted from Martin Flemming

Regards
Keelie

Sent from my iPhone

On 29 Nov 2011, at 20:41, Roland Soderstrom <user-0cec9512a49f@xymon.invalid> wrote:
Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.

I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.
Client though. using configure.client
Try that first.

- Roland

list Ryan Novosielski · Wed, 30 Nov 2011 08:22:15 -0500 ·
My recollection from compiling is that neither was necessary. I'd at least put back the system directories before you get a surprise down the road.

-- Sent from my Palm Pre
On Nov 30, 2011 6:13, Keelie &lt;user-a6cb21ab99e1@xymon.invalid&gt; wrote: 
Hi


Thanks for all your help. I have now resolved my issues. I did a find &amp; replace to replace all hard coded /usr/ccs with /usr/local &amp; I moved /usr/ccs/bin &amp; /usr/ccs/lib out the way.
quoted from Keelie


Regards

Keelie


Sent from my iPhone


On 29 Nov 2011, at 20:41, Roland Soderstrom &lt;user-0cec9512a49f@xymon.invalid&gt; wrote:


&gt; Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.

&gt; 
&gt; I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.

&gt; Client though. using configure.client

&gt; Try that first.

&gt; 
&gt; - Roland

&gt; 
&gt; 
&gt; 
&gt;  
&gt; 
&gt; Xymon at xymon.com
list Roland Soderstrom · Thu, 1 Dec 2011 07:31:35 +1100 ·
Yea, that is what I've done.
Hack, compile, change back to original

- Roland

quoted from Ryan NovosielskiOn  1/12/11 12:22 AM, Ryan Novosielski wrote:
My recollection from compiling is that neither was necessary. I'd at least put back the system directories before you get a surprise down the road.

-- Sent from my Palm Pre


On Nov 30, 2011 6:13, Keelie wrote:

Hi

Thanks for all your help. I have now resolved my issues. I did a find & replace to replace all hard coded /usr/ccs with /usr/local & I moved /usr/ccs/bin & /usr/ccs/lib out the way.

Regards
Keelie

Sent from my iPhone

On 29 Nov 2011, at 20:41, Roland Soderstrom wrote:

> Ryan is of course right, I didn't mean make I meant ld, but as you pointed out you changed the ld thing already.
>
> I compiled 4.3.5 on Solaris 10 x86 nicely yesterday.
> Client though. using configure.client
> Try that first.
>
> - Roland
>
>
>
>
>
> Xymon@xymon.com

Xymon@xymon.com