[Xymon] Compiling xymon-4.3.19 on Solaris 10

Scott Pfister icepickjazz at gmail.com
Mon Aug 17 22:19:55 CEST 2015


scott,

Saw an old posting where someone had similar problem and make the following
changes:

Navigate to the Xymon build directory and open the Solaris/SunOS Makefile...

   1. vi Makefile.SunOS



2. Add a reference to pcre to the linker..

*REPLACE*
NETLIBS = -lresolv -lsocket -lnsl
*WITH*
NETLIBS = -lresolv -lsocket -lnsl -lpcre

On Fri, Aug 14, 2015 at 3:26 PM, Rebman,Scott (HHSC Contractor) <
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* <Scott.Rebman at hhsc.state.tx.us>
>
>
>
>
>
>
> _______________________________________________
> 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/20150817/b1b41c96/attachment.html>


More information about the Xymon mailing list