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:54:03 CEST 2005


Hi Rob,

I noticed that accidentally the separately mounted filesystem
/usr/local/src
got full during the build.
Luckilly it was on an SDS volume set up as softpartition so that
I could growfs it.

I reran make distclean and reconfigured, this time disabling the
openssl stuff altogether.
So there should be no need for the blooming compiler to search
for such header files.


# CC=/opt/SUNWspro/bin/cc ./configure --with-nagios-user=informix
--with-nagios-group=informix --disable-openssl
--with-ping-command=/usr/sbin/ping


This time my "make all" got a bit further, up to check_icmp
(ok, if I get check_ping this time working, opposed to my broken
check_ping build on HPUX,
I can ignore that, besides this is not a Nagios server, so there
should be little need for this node
to ping anything).


Here's the tail where cc aborted


/opt/SUNWspro/bin/cc  -g  -L. -o check_procs  check_procs.o
utils.o ../lib/libnagiosplug.a ../lib/li
bcoreutils.a popen.o ../intl/libintl.a  -lgen -lsocket
zecke --> Job output
/opt/SUNWspro/bin/cc  -g  -L. -o check_icmp  check_icmp.o
../intl/libintl.a  -lgen -lsocket
ild: (undefined symbol) gethostbyname -- referenced in the text
segment of check_icmp.o
ild: (undefined symbol) inet_addr -- referenced in the text
segment of check_icmp.o
ild: (undefined symbol) inet_ntoa -- referenced in the text
segment of check_icmp.o
*** Error code 5
dmake: Fatal error: Command failed for target `check_icmp'
Current working directory
/usr/local/src/nagios-plugins-1.4/plugins
Waiting for 1 job to finish
zecke --> Job output
/opt/SUNWspro/bin/cc  -g  -L. -o check_procs  check_procs.o
utils.o ../lib/libnagiosplug.a ../lib/li
bcoreutils.a popen.o ../intl/libintl.a  -lgen -lsocket
*** Error code 1
dmake: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/nagios-plugins-1.4
*** Error code 1
dmake: Fatal error: Command failed for target `all'
[root at zecke:/usr/local/src/nagios-plugins-1.4]
# df -k .
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d103      342255  254652   59514    82%
/usr/local/src


Ok, I got enough check_* binaries compiled (the important ones
for me being check_disk, check_procs, check_load)

# ls -F plugins|grep \*\$
check_dhcp*
check_disk*
check_dummy*
check_http*
check_load*
check_mrtg*
check_mrtgtraf*
check_nwstat*
check_overcr*
check_ping*
check_procs*
check_real*
check_smtp*
check_ssh*
check_tcp*
check_time*
check_udp*
check_ups*
check_users*
negate*
urlize*


Therefore I think I can get along with simply copying them
manually into place

# mkdir -m 0644 -p /usr/local/nagios/libexec

# (cd plugins && cp $(ls -F|grep \*\$|tr -d \*)
/usr/local/nagios/libexec/)


Let's hope they are not broken.

Now I need to build the nrpe daemon.

Since I'm almost dead sure that this will start yet another
debugging frenzy
I'll be back soon to ask for further help...

> -----Original Message-----
> From: Rob Moss [mailto:robmossrm at aol.com]
> Sent: Tuesday, July 19, 2005 2:22 PM
> To: Ralph.Grothe at itdz-berlin.de
> Cc: nagiosplug-help-admin at lists.sourceforge.net;
> nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Plugins build under SPARC
Solaris8
> with SUNWspro CC fails
> 
> 
> 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