[Xymon] Solaris X86 xymon configure problems

Sailesh sailesh.mohabeer at mns.intnet.mu
Mon Nov 28 11:44:34 CET 2011


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:keelie_ryan at yahoo.com] 
Sent: Monday, November 28, 2011 2:23 PM
To: Sailesh
Cc: Ryan Novosielski; xymon at xymon.com; Rolands at logicaltech.com.au
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" <sailesh.mohabeer at mns.intnet.mu> 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 <Rolands at logicaltech.com.au> 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" <keelie_ryan at yahoo.com> 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

 

*************************************************************************************************

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111128/1236d3f5/attachment.html>


More information about the Xymon mailing list