[Xymon] Compiling xymon-4.3.19 on Solaris 10

Rebman,Scott (HHSC Contractor) Scott.Rebman at hhsc.state.tx.us
Mon Aug 17 18:14:18 CEST 2015


Jeremy,

Thanks for the info provided.

This is the output of crle with no options:

Default configuration file (/var/ld/ld.config) not found
  Platform:     32-bit MSB SPARC
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

I will try the other methods a and let you know what worked out.

Scott Allen Rebman
Solaris System Administrator
HHS/HHSC/Contractor
TIERS Operations
(512)873-6864 (CrossPark)
(512) 549-0278 (Work Cell)
Scott.Rebman at hhsc.state.tx.us



From: Jeremy Laidman [mailto:jlaidman at rebel-it.com.au]
Sent: Saturday, August 15, 2015 8:46 AM
To: Rebman,Scott (HHSC Contractor)
Cc: xymon at xymon.com
Subject: Re: [Xymon] Compiling xymon-4.3.19 on Solaris 10

Scott

What's the output of "crle"?

I'd have thought setting RPATHVAL would do the trick.  But you might want to use crle to update the library search path globally.  Alternatively, set LD_RUN_PATH when you're compiling, maybe like so:

  LD_RUN_PATH=/usr/local/lib:/usr/local/rrdtool-1.2.19/lib make

or maybe this will work for you:

  LDFLAGS="-R /usr/local/lib:/usr/local/rrdtool-1.2.19/lib" ./configure --bla --yada

Cheers
Jeremy


On 15 August 2015 at 05:26, Rebman,Scott (HHSC Contractor) <Scott.Rebman at hhsc.state.tx.us<mailto:Scott.Rebman at hhsc.state.tx.us>> wrote:
Any help will be greatly appreciated.

Having issues when compiling xymon 4.3.19 on Solaris 10.

I have even used the following command line options:

./configure --server --pcreinclude /usr/local/include --pcrelib /usr/local/lib --rrdinclude /usr/local/rrdtool/include --rrdlib /usr/local/rrdtool/lib

It shows during the configuration phase that libpcre is located:

Checking for PCRE ...
Compiling with PCRE library works OK
Linking with PCRE library works OK

PCRE contents of Makefile:

# PCRE settings
PCREINCDIR = -I/usr/local/include
PCRELIBS = -L/usr/local/lib -lpcre
RPATHVAL += /usr/local/lib

PCRE libraries are located under /usr/local/lib. but there are no references to /usr/local/lib/libpcre* during the make just /usr/local/include

running ldd against built files which require PCRE shows libpcre.so.0 as “file not found”:

cgiwrap.cgi:
        libresolv.so.2 =>        /lib/libresolv.so.2
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        librt.so.1 =>    /lib/librt.so.1
        libpcre.so.0 =>  (file not found)
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,SPARC-Enterprise-T5120/lib/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/libmd_psr.so.1

RDD Contents of Makefile:

# RRDtool settings
RRDDEF = -DRRDTOOL12
RRDINCDIR = -I/usr/local/rrdtool-1.2.19/include
RRDLIBS = -L/usr/local/rrdtool-1.2.19/lib -lrrd -L/opt/csw/lib -lpng
RPATHVAL += /usr/local/rrdtool-1.2.19/lib
DORRD = yes

also librrd.so.2 appears as missing

perfdata.cgi:
        libresolv.so.2 =>        /lib/libresolv.so.2
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        librt.so.1 =>    /lib/librt.so.1
        libpcre.so.0 =>  (file not found)
        librrd.so.2 =>   (file not found)
        libpng12.so.0 =>         /usr/lib/libpng12.so.0
        libm.so.2 =>     /lib/libm.so.2
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libz.so.1 =>     /usr/lib/libz.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5120/lib/libmd_psr.so.1


Scott Allen Rebman
Solaris System Administrator
HHS/HHSC/Contractor
TIERS Operations
(512)873-6864 (CrossPark)
(512) 549-0278 (Work Cell)
Scott.Rebman at hhsc.state.tx.us<mailto:Scott.Rebman at hhsc.state.tx.us>






_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto: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/20150817/3b0116ae/attachment.html>


More information about the Xymon mailing list