[Nagiosplug-devel] [ nagiosplug-Bugs-1096091 ] Problems compiling nagios-plugins-1.4-beta1

SourceForge.net noreply at sourceforge.net
Thu Jan 20 16:25:46 UTC 2005


Bugs item #1096091, was opened at 2005-01-04 22:48
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1096091&group_id=29880

Category: None
Group: Release (specify)
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Winks (winkles)
Assigned to: Ton Voon (tonvoon)
Summary: Problems compiling nagios-plugins-1.4-beta1

Initial Comment:
Hi,

 

I’m having problems compiling nagios-plugins-1.4-beta1 
on my Solaris 9 box.  I am not getting any errors when I 
run configure, but when I run make, it is always bombing 
out with openssl.  Is there a specific version of openssl I 
should be using?  Currently I am using openssl-0.9.7e.  I 
have Nagios version 2.0b1 installed.

 

I have tried using configure by itself and I have also 
tried ./configure –with-openssl=/usr/local/ssl.  I also 
tried specifying –with-openssl=<openssl source tree>

 

Each time, configure ends with:

                     --with-cgiurl: /nagios/cgi-bin

                --with-nagios-user: nagios

               --with-nagios-group: nagios

               --with-trusted-
path: /bin:/sbin:/usr/bin:/usr/sbin

               --with-ping-command: /usr/sbin/ping -n -s %
s 56 %d

              --with-ping6-command:

                      --with-lwres: no

                       --with-ipv6: yes

                    --with-openssl: yes

      --enable-emulate-getaddrinfo: no

 

Output of make each time fails with:

 

gcc  -g -O2  -L. -L../openssl-0.9.7e/lib -o 
check_dummy  check_dummy.o utils.o .

./lib/libnagiosplug.a ../lib/libcoreutils.a ../intl/libintl.a -
liconv -lgen -lso

cket  -I../openssl-0.9.7e/include

if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -
DHAVE_CONFIG_H -I. -I. -I

.. -I.. -I../lib -I../intl     -g -O2 -MT check_http.o -MD -
MP -MF ".deps/check_

http.Tpo" -c -o check_http.o check_http.c; 
then mv -
f ".deps/check_http.Tpo" ".deps/check_http.Po"; else 
rm -f ".deps/check

_http.Tpo"; exit 1; fi

check_http.c:50:26: openssl/rsa.h: No such file or 
directory

check_http.c:51:29: openssl/crypto.h: No such file or 
directory

check_http.c:52:27: openssl/x509.h: No such file or 
directory

check_http.c:53:26: openssl/pem.h: No such file or 
directory

check_http.c:54:26: openssl/ssl.h: No such file or 
directory

check_http.c:55:26: openssl/err.h: No such file or 
directory

check_http.c:56:27: openssl/rand.h: No such file or 
directory

check_http.c:64: error: parse error before '*' token

check_http.c:64: warning: data definition has no type 
or storage class

check_http.c:65: error: parse error before '*' token

check_http.c:65: warning: data definition has no type 
or storage class

check_http.c:66: error: parse error before '*' token

check_http.c:66: warning: data definition has no type 
or storage class

check_http.c:68: error: parse error before '*' token

check_http.c: In function `main':

check_http.c:172: warning: assignment makes pointer 
from integer without a cast

check_http.c: In function `check_http':

check_http.c:735: warning: assignment makes pointer 
from integer without a cast

check_http.c:819: error: `SSL_ERROR_SSL' undeclared 
(first use in this function)

check_http.c:819: error: (Each undeclared identifier is 
reported only once

check_http.c:819: error: for each function it appears in.)

check_http.c: In function `connect_SSL':

check_http.c:1178: error: `SSL_METHOD' undeclared 
(first use in this function)

check_http.c:1178: error: `meth' undeclared (first use 
in this function)

check_http.c:1189: warning: assignment makes pointer 
from integer without a cast

check_http.c:1206: warning: assignment makes pointer 
from integer without a cast

check_http.c: At top level:

check_http.c:1230: error: parse error before '*' token

check_http.c: In function `check_certificate':

check_http.c:1232: error: `ASN1_STRING' undeclared 
(first use in this function)

check_http.c:1232: error: `tm' undeclared (first use in 
this function)

check_http.c:1239: error: `certificate' undeclared (first 
use in this function)

check_http.c:1242: error: `V_ASN1_UTCTIME' 
undeclared (first use in this functio

n)

make[2]: *** [check_http.o] Error 1

make[2]: Leaving directory `/home/billy/nagios-plugins-
1.4-beta1/plugins'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/billy/nagios-plugins-
1.4-beta1'

make: *** [all] Error 2

bash-2.05#

 

Any help in getting this compiled is appreciated.

 

Thanks.

 

Bill


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2005-01-21 00:24

Message:
Logged In: YES 
user_id=664364

Thanks for your replies. Closing this call.

----------------------------------------------------------------------

Comment By: Winks (winkles)
Date: 2005-01-17 16:17

Message:
Logged In: YES 
user_id=1121135

John, Ton:

I have successfully compiled the nagios-plugins-1.4-beta1 on 
Solaris 9.  The first time I used John's tip and set CPPFLAGS=-
I/usr/local/ssl/include, LDFLAGS=-
R/usr/local/ssl/lib, ./configure --with-openssl=/usr/local/ssl

Afer that was successful, I started clean and grabbed the 
new configure.in (v1.136) It was also successful.

Thank you both for the help.


----------------------------------------------------------------------

Comment By: John Warburton (johnwarburton)
Date: 2005-01-16 23:25

Message:
Logged In: YES 
user_id=1192023

Hi Ton

Thanks for the update. I grabbed the latest CVS snapshot
nagios-plugins-HEAD-200501161747 and it all compiles and
runs well!

Thanks very much for the fix.

Regards

John

----------------------------------------------------------------------

Comment By: Ton Voon (tonvoon)
Date: 2005-01-14 11:01

Message:
Logged In: YES 
user_id=664364

Winks, John,

Thanks for the report and the suggestions. I've made a 
change to configure.in (v1.136) so it should work now - I've 
been testing on Sol2.6 which had the same problems. Please 
test and let us know.

Ton

----------------------------------------------------------------------

Comment By: John Warburton (johnwarburton)
Date: 2005-01-13 05:11

Message:
Logged In: YES 
user_id=1192023

Hi Bill, I can concur that I have the same problem running
on Solaris 8, SSL version 0.9.7d.

It is not the version of SSL, but that the dependency
checking is not putting in the correct includes and library
checks for check_http (and others possibly).

Whilst this needs to be fixed, I am only in evaluation mode,
so when I run configure, I do the following:

CPPFLAGS=-I/usr/local/ssl/include
LDFLAGS=-R/usr/local/ssl/lib ./configure
--with-openssl=/usr/local/ssl

Which gets me moving to see if I want to actually run nagios
(which I think I do).

As I have no idea how autoconf works, I hope that one of the
developers knows what has to hapopen to get the dependencies
working correctly.

Regards

John

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1096091&group_id=29880




More information about the Nagiosplugin-devel mailing list