<div dir="ltr">Thought about this one on the way home.<div>And of course, realised it's looking for the Solaris standard headers, which are in SUNWhea</div><div>Why people don't do full installs these days, is beyond me.</div><div>Unless you are building a firewall, full install is the only way to go.</div><div><br></div><div>I will install these tomorrow and see how we go.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 November 2014 at 16:08, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>I think I am making progress.<br></div>Your comment of something missing got me searching to find out exactly what is missing.<br></div>Found this in the list archive.<br><span style="font-family:monospace">ldd hobbitd_alert
<br>    libpcre.so.0 =>  /usr/local/lib/libpcre.so.0
        <br>    libc.so.1 =>     /usr/lib/libc.so.1
        <br>    libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1 
        <br>    libdl.so.1 =>    /usr/lib/libdl.so.1
        <br>    /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1</span><br></div><div>As a good a place ans any to start.<br><br></div>So I started grepping for library files in /var/sadm/install/contents and found we had 2 of libgcc_s.so.1<br><span style="font-family:monospace">/opt/csw/lib/libgcc_s.so.1 <br>/usr/local/lib/libgcc_s.so.1</span><br></div>Damn! An old compiler, and it was first in the PATH.<br></div>Rearranged the PATH, and things improved.<br></div>Still didn't work, but improved. Far less error messages.<br><br></div>More contructive grepping, and I discovered<span style="font-family:monospace"> libdl.so.1</span> wasn't there.<br></div>A quick file search on OpenCSW, and I find it hiding in <span style="font-family:monospace">CSWgcc4g++-4.9.0,REV=2014.04.27</span><br><span style="font-family:monospace">pkgutil -i CSWgcc4g++</span><br></div>And we test again.<br>Much better, but still no victory.<br><br><span style="font-family:monospace">+ uname -s<br>OS=SunOS<br>In file included from test-pcre.c:1:0:<br>/opt/csw/include/pcre.h:90:20: fatal error: stdlib.h: No such file or directory<br> #include <stdlib.h><br>                    ^<br>compilation terminated.<span class=""><br>Makefile.test-pcre:4: recipe for target 'test-compile' failed<br>gmake: *** [test-compile] Error 1<br>+ test 2 -eq 0<br>+ echo ERROR: Cannot compile using PCRE library.<br>ERROR: Cannot compile using PCRE library.<br>PCREOK=NO<br>+ gmake -f Makefile.test-pcre test-link<br>PCRELIB=-L/opt/csw/lib + sed -es@/@_@g<br>+ uname -s<br>OS=SunOS<br></span>gcc: error: test-pcre.o: No such file or directory<span class=""><br>Makefile.test-pcre:7: recipe for target 'test-link' failed<br>gmake: *** [test-link] Error 1</span></span><br><br><div><div><div><br></div><div>Any ideas?<br></div><div><br></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 27 November 2014 at 15:04, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><span style="font-family:monospace"># pkgutil -l | grep gcc<br>CSWgcc4core<br>CSWlibgcc-s1<br></span><br></div>Would have expected those two to cover it.<br></div>Here's the OpenCSW list.<br></div>Anything look like it's needed?<br><br><span style="font-family:monospace"># pkgutil -a | grep gcc<br>boost_gcc_dev        CSWboost-gcc-dev     1.49.0,REV=2012.03.05        7.3 MB<br>gcc4ada              CSWgcc4ada           4.9.0,REV=2014.04.27        68.9 MB<br>gcc4core             CSWgcc4core          4.9.0,REV=2014.04.27       125.5 MB<br>gcc4corert_stub      CSWgcc4corert        4.6.3,REV=2012.03.06        13.1 KB<br>gcc4g++              CSWgcc4g++           4.9.0,REV=2014.04.27        41.8 MB<br>gcc4gfortran         CSWgcc4gfortran      4.9.0,REV=2014.04.27        37.3 MB<br>gcc4java             CSWgcc4java          4.9.0,REV=2014.04.27        43.3 MB<br>gcc4objc             CSWgcc4objc          4.9.0,REV=2014.04.27        33.3 MB<br>libgcc_s1            CSWlibgcc-s1         4.9.0,REV=2014.04.27       313.6 KB<br>libgccpp1            CSWlibgccpp1         7.2d,REV=2013.08.01          7.3 KB<br>perlgcc              CSWperlgcc           5.20.1,REV=2014.10.26       19.6 MB<br>ruby18_gcc4          CSWruby18-gcc4       1.8.7p357,REV=2014.03.06     4.5 KB</span><br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 27 November 2014 at 15:00, Galen Johnson <span dir="ltr"><<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Based on this:<br>
</p><span>
<p><br>
</p>
<p><span style="color:rgb(33,33,33);font-family:monospace;font-size:15px;background-color:rgb(255,255,255)">/opt/csw/include/pcre.h:90:20: stdlib.h: No such file or directory</span>​<br>
</p>
<p><br>
</p>
</span><p>I'd say that you're missing some additional dev libraries.  It's been a while since I worked on Solaris, but it might be expecting the gcc headers.<br>
</p>
<p><br>
</p>
<p>=G=<br>
</p>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>> on behalf of Vernon Everett <<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>><br>
<b>Sent:</b> Thursday, November 27, 2014 1:46 AM<br>
<b>To:</b> Xymon mailinglist<br>
<b>Subject:</b> [Xymon] Building a new Server</font>
<div> </div>
</div><div><div>
<div>
<div dir="ltr">
<div>
<div>
<div>Hi all<br>
<br>
</div>
Trying to build a new server.<br>
</div>
And not having much luck.<br>
<span style="font-family:monospace">MAKE=gmake ./configure.server<br>
MAKE=gmake ./configure.server --pcreinclude /opt/csw/include/ --pcrelib /opt/csw/lib/pkgconfig/</span><br>
</div>
<div>and<br>
<span style="font-family:monospace">MAKE=gmake ./configure.server --pcreinclude /opt/csw/include/ --pcrelib /opt/csw/lib/</span><br>
</div>
<div>all give the exact same result below.<br>
</div>
<br>
<div>
<div><span style="font-family:monospace">+ uname -s<br>
OS=SunOS<br>
In file included from test-pcre.c:1:<br>
/opt/csw/include/pcre.h:90:20: stdlib.h: No such file or directory<br>
In file included from test-pcre.c:1:<br>
/opt/csw/include/pcre.h:489: warning: parameter names (without types) in function declaration<br>
/opt/csw/include/pcre.h:491: warning: parameter names (without types) in function declaration<br>
/opt/csw/include/pcre.h:496: warning: parameter names (without types) in function declaration<br>
/opt/csw/include/pcre.h:498: warning: parameter names (without types) in function declaration<br>
/opt/csw/include/pcre.h:503: warning: parameter names (without types) in function declaration<br>
/opt/csw/include/pcre.h:505: warning: parameter names (without types) in function declaration<br>
test-pcre.c: In function `main':<br>
test-pcre.c:8: error: `NULL' undeclared (first use in this function)<br>
test-pcre.c:8: error: (Each undeclared identifier is reported only once<br>
test-pcre.c:8: error: for each function it appears in.)<br>
Makefile.test-pcre:4: recipe for target 'test-compile' failed<br>
gmake: *** [test-compile] Error 1<br>
+ test 2 -eq 0<br>
+ echo ERROR: Cannot compile using PCRE library.<br>
ERROR: Cannot compile using PCRE library.<br>
PCREOK=NO<br>
+ gmake -f Makefile.test-pcre test-link<br>
PCRELIB=-L/opt/csw/lib + sed -es@/@_@g<br>
+ uname -s<br>
OS=SunOS<br>
gcc: test-pcre.o: No such file or directory<br>
Makefile.test-pcre:7: recipe for target 'test-link' failed<br>
gmake: *** [test-link] Error 1<br>
+ test 2 -eq 0<br>
+ echo ERROR: Cannot link with PCRE library.<br>
ERROR: Cannot link with PCRE library.<br>
PCREOK=NO<br>
+ gmake -f Makefile.test-pcre clean<br>
+ sed -es@/@_@g<br>
+ uname -s<br>
OS=SunOS<br>
+ cd ..<br>
+ test NO = NO<br>
+ echo Missing PCRE include- or library-files. These are REQUIRED for xymond<br>
Missing PCRE include- or library-files. These are REQUIRED for xymond<br>
+ echo PCRE can be found at <a href="http://www.pcre.org/" target="_blank">http://www.pcre.org/</a><br>
PCRE can be found at <a href="http://www.pcre.org/" target="_blank">http://www.pcre.org/</a><br>
+ echo If you have PCRE installed, use the "--pcreinclude DIR" and "--pcrelib DIR"<br>
If you have PCRE installed, use the "--pcreinclude DIR" and "--pcrelib DIR"<br>
+ echo options to configure to specify where they are.<br>
options to configure to specify where they are.<br>
+ exit 1</span><br>
<br clear="all">
<div>
<div>Have the following pcre related packages installed.<br>
<span style="font-family:monospace">bash-3.00# pkgutil -l  | grep -i pcre<br>
CSWlibpcre-dev<br>
CSWlibpcre0<br>
CSWlibpcre1<br>
CSWlibpcre16-0<br>
CSWlibpcre32-0<br>
CSWlibpcrecpp0<br>
CSWlibpcreposix0<br>
CSWpcre<br>
CSWpcrert</span><br>
</div>
<div>What's missing here?<br>
</div>
<div>-- <br>
<div><span>"Accept the challenges so that you can feel the exhilaration of victory"</span>
<div><span>- General George Patton</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div></div>
</div>