Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Tue Jul 19 14:00:18 CEST 2005


Hello again,

No matter where I experiment with Nagios,
I am grandly dooming before I even get started.

Because of my frustration with Nagios on HPUX I gave it a try on
another OS.

This time on FSC PrimePower (i.e. sun4us) SPARC with Solaris 8.

Here on this test box I'm in the exceptionally lucky position to
make use of a SUNws Pro C compiler (aka Forte?).
So the starting conditions looked much more favourable.

# uname -a
SunOS zecke 5.8 Generic_117350-02 sun4us sparc FJSV,GPUS


This is how I ran configure

# CC=/opt/SUNWspro/bin/cc
CPPFLAGS=-I/usr/local/ssl/include/openssl ./configure
--with-nagios-user=informix --with-nagios-group=informix
--with-openssl=/usr/local/ssl --with-ping-command=/usr/sbin/ping

I also set these

# alias make
alias make='/opt/SUNWspro/bin/dmake'

# env|grep MAKE
MAKE=/opt/SUNWspro/bin/dmake

# make all 2>&1|tail -20
source='check_mrtgtraf.c' object='check_mrtgtraf.o' libtool=no \
depfile='.deps/check_mrtgtraf.Po'
tmpdepfile='.deps/check_mrtgtraf.TPo' \
depmode=none /bin/bash ../depcomp \
/opt/SUNWspro/bin/cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.
. -I../lib -I../intl   -I/usr/local/ssl/include/openssl  -g -c
check_mrtgtraf.c
zecke --> Job output
source='check_http.c' object='check_http.o' libtool=no \
depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \
depmode=none /bin/bash ../depcomp \
/opt/SUNWspro/bin/cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.
. -I../lib -I../intl   -I/usr/local/ssl/include/openssl  -g -c
check_http.c
"check_http.c", line 50: cannot find include file:
<openssl/rsa.h>
"check_http.c", line 51: cannot find include file:
<openssl/crypto.h>
"check_http.c", line 52: cannot find include file:
<openssl/x509.h>
"check_http.c", line 53: cannot find include file:
<openssl/pem.h>
"check_http.c", line 54: cannot find include file:
<openssl/ssl.h>
"check_http.c", line 55: cannot find include file:
<openssl/err.h>
"check_http.c", line 56: cannot find include file:
<openssl/rand.h>
cc: acomp failed for check_http.c
*** Error code 2
dmake: Fatal error: Command failed for target `check_http.o'
Waiting for 1 job to finish



Which is daft as I can find the complained about header files,
just in the path I separately supplied.


# find . -type f -name Makefile|xargs grep ^CPPFLAGS
./intl/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl 
./lib/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl 
./m4/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl 
./plugins/Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl 
./plugins-scripts/Makefile:CPPFLAGS =
-I/usr/local/ssl/include/openssl 
./Makefile:CPPFLAGS = -I/usr/local/ssl/include/openssl 


# ll
/usr/local/ssl/include/openssl/{rsa,crypto,x509,pem,ssl,err,rand}
.h
-rw-r--r--   1 bin      bin        15804 Jan 25 14:23
/usr/local/ssl/include/openssl/crypto.h
-rw-r--r--   1 bin      bin        10814 Jan 25 14:23
/usr/local/ssl/include/openssl/err.h
-rw-r--r--   1 bin      bin        24094 Jan 25 14:23
/usr/local/ssl/include/openssl/pem.h
-rw-r--r--   1 bin      bin         4937 Jan 25 14:23
/usr/local/ssl/include/openssl/rand.h
-rw-r--r--   1 bin      bin        14156 Jan 25 14:23
/usr/local/ssl/include/openssl/rsa.h
-rw-r--r--   1 bin      bin        64535 Jan 25 14:23
/usr/local/ssl/include/openssl/ssl.h
-rw-r--r--   1 bin      bin        46492 Jan 25 14:23
/usr/local/ssl/include/openssl/x509.h


Isn't Forte cc honouring CPPFLAGS in the end?

I'll have to see if the manpages of that thing got installed...



--
Ralph Grothe (GBII1Gr)
IT Dienstleistungszentrum Berlin 
Berliner Strasse 112-115
D-10713 Berlin
Phone:   +49 30 9012 6481
Fax:     +49 30 9012 3151


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list