Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails

Rob Moss robmossrm at aol.com
Tue Jul 19 14:21:45 CEST 2005


Hi,

HTH
Cheers

Ralph.Grothe at itdz-berlin.de wrote:


> 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

...

> 
> # 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
> 

The --with-openssl=/usr/local/ssl   is correct, but I think the 
-I/usr/local/ssl/include/openssl  in the CFLAGS is overriding the 
correct flag and causing an error.

Have you tried without specifying the -I/usr/local/ssl/include/openssl  ??

The compile process automatically searches for <inclpath>/include  so 
-I/usr/local will automatically use /usr/local/include etc.

Cheers
rob.


-------------------------------------------------------
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