I think I am making progress.
Your comment of something missing got me searching to find out exactly what
is missing.
Found this in the list archive.
ldd hobbitd_alert
libpcre.so.0 => /usr/local/lib/libpcre.so.0
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libdl.so.1 => /usr/lib/libdl.so.1
/usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
As a good a place ans any to start.
So I started grepping for library files in /var/sadm/install/contents and
found we had 2 of libgcc_s.so.1
/opt/csw/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1
Damn! An old compiler, and it was first in the PATH.
Rearranged the PATH, and things improved.
Still didn't work, but improved. Far less error messages.
More contructive grepping, and I discovered libdl.so.1 wasn't there.
A quick file search on OpenCSW, and I find it hiding in
CSWgcc4g++-4.9.0,REV=2014.04.27
pkgutil -i CSWgcc4g++
And we test again.
Much better, but still no victory.
+ uname -s
OS=SunOS
In file included from test-pcre.c:1:0:
/opt/csw/include/pcre.h:90:20: fatal error: stdlib.h: No such file or
directory
#include <stdlib.h>
^
compilation terminated.
Makefile.test-pcre:4: recipe for target 'test-compile' failed
gmake: *** [test-compile] Error 1
+ test 2 -eq 0
+ echo ERROR: Cannot compile using PCRE library.
ERROR: Cannot compile using PCRE library.
PCREOK=NO
+ gmake -f Makefile.test-pcre test-link
PCRELIB=-L/opt/csw/lib + sed -es@/@_ at g
+ uname -s
OS=SunOS
gcc: error: test-pcre.o: No such file or directory
Makefile.test-pcre:7: recipe for target 'test-link' failed
gmake: *** [test-link] Error 1
Any ideas?
On 27 November 2014 at 15:04, Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
wrote:
# pkgutil -l | grep gcc
CSWgcc4core
CSWlibgcc-s1
Would have expected those two to cover it.
Here's the OpenCSW list.
Anything look like it's needed?
# pkgutil -a | grep gcc
boost_gcc_dev CSWboost-gcc-dev 1.49.0,REV=2012.03.05 7.3
MB
gcc4ada CSWgcc4ada 4.9.0,REV=2014.04.27 68.9
MB
gcc4core CSWgcc4core 4.9.0,REV=2014.04.27 125.5
MB
gcc4corert_stub CSWgcc4corert 4.6.3,REV=2012.03.06 13.1
KB
gcc4g++ CSWgcc4g++ 4.9.0,REV=2014.04.27 41.8
MB
gcc4gfortran CSWgcc4gfortran 4.9.0,REV=2014.04.27 37.3
MB
gcc4java CSWgcc4java 4.9.0,REV=2014.04.27 43.3
MB
gcc4objc CSWgcc4objc 4.9.0,REV=2014.04.27 33.3
MB
libgcc_s1 CSWlibgcc-s1 4.9.0,REV=2014.04.27 313.6
KB
libgccpp1 CSWlibgccpp1 7.2d,REV=2013.08.01 7.3
KB
perlgcc CSWperlgcc 5.20.1,REV=2014.10.26 19.6
MB
ruby18_gcc4 CSWruby18-gcc4 1.8.7p357,REV=2014.03.06 4.5
KB
On 27 November 2014 at 15:00, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
Based on this:
/opt/csw/include/pcre.h:90:20: stdlib.h: No such file or directory
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.
=G=
*From:* Xymon <xymon-bounces at xymon.com> on behalf of Vernon Everett <
user-b3f8dacb72c8@xymon.invalid>
*Sent:* Thursday, November 27, 2014 1:46 AM
*To:* Xymon mailinglist
*Subject:* [Xymon] Building a new Server
Hi all
Trying to build a new server.
And not having much luck.
MAKE=gmake ./configure.server
MAKE=gmake ./configure.server --pcreinclude /opt/csw/include/ --pcrelib
/opt/csw/lib/pkgconfig/
and
MAKE=gmake ./configure.server --pcreinclude /opt/csw/include/ --pcrelib
/opt/csw/lib/
all give the exact same result below.
+ uname -s
OS=SunOS
In file included from test-pcre.c:1:
/opt/csw/include/pcre.h:90:20: stdlib.h: No such file or directory
In file included from test-pcre.c:1:
/opt/csw/include/pcre.h:489: warning: parameter names (without types) in
function declaration
/opt/csw/include/pcre.h:491: warning: parameter names (without types) in
function declaration
/opt/csw/include/pcre.h:496: warning: parameter names (without types) in
function declaration
/opt/csw/include/pcre.h:498: warning: parameter names (without types) in
function declaration
/opt/csw/include/pcre.h:503: warning: parameter names (without types) in
function declaration
/opt/csw/include/pcre.h:505: warning: parameter names (without types) in
function declaration
test-pcre.c: In function `main':
test-pcre.c:8: error: `NULL' undeclared (first use in this function)
test-pcre.c:8: error: (Each undeclared identifier is reported only once
test-pcre.c:8: error: for each function it appears in.)
Makefile.test-pcre:4: recipe for target 'test-compile' failed
gmake: *** [test-compile] Error 1
+ test 2 -eq 0
+ echo ERROR: Cannot compile using PCRE library.
ERROR: Cannot compile using PCRE library.
PCREOK=NO
+ gmake -f Makefile.test-pcre test-link
PCRELIB=-L/opt/csw/lib + sed -es@/@_ at g
+ uname -s
OS=SunOS
gcc: test-pcre.o: No such file or directory
Makefile.test-pcre:7: recipe for target 'test-link' failed
gmake: *** [test-link] Error 1
+ test 2 -eq 0
+ echo ERROR: Cannot link with PCRE library.
ERROR: Cannot link with PCRE library.
PCREOK=NO
+ gmake -f Makefile.test-pcre clean
+ sed -es@/@_ at g
+ uname -s
OS=SunOS
+ cd ..
+ test NO = NO
+ echo Missing PCRE include- or library-files. These are REQUIRED for
xymond
Missing PCRE include- or library-files. These are REQUIRED for xymond
+ echo PCRE can be found at http://www.pcre.org/
PCRE can be found at http://www.pcre.org/
+ echo If you have PCRE installed, use the "--pcreinclude DIR" and
"--pcrelib DIR"
If you have PCRE installed, use the "--pcreinclude DIR" and "--pcrelib
DIR"
+ echo options to configure to specify where they are.
options to configure to specify where they are.
+ exit 1
Have the following pcre related packages installed.
bash-3.00# pkgutil -l | grep -i pcre
CSWlibpcre-dev
CSWlibpcre0
CSWlibpcre1
CSWlibpcre16-0
CSWlibpcre32-0
CSWlibpcrecpp0
CSWlibpcreposix0
CSWpcre
CSWpcrert
What's missing here?
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton