plugins parse error on compile

tmelendez at bascom.com tmelendez at bascom.com
Mon Feb 21 22:23:38 CET 2005


Hey Folks,

I'm a long time nagios user, and have really enjoyed the product.  I'm trying to
get it to run on Suse 7.2 (yes, old, I know) box.

I'm getting a parse error:
###########
make[2]: Entering directory `/tmp/nagios-2.0b2/nagios-plugins-1.4/plugins'
source='check_http.c' object='check_http.o' libtool=no \
depfile='.deps/check_http.Po' tmpdepfile='.deps/check_http.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..
-I.. -I../lib -I../intl -I/usr/include/ldap      -g -O2 -c check_http.c
check_http.c:64: parse error before `*'
check_http.c:64: warning: data definition has no type or storage class
check_http.c:65: parse error before `*'
check_http.c:65: warning: data definition has no type or storage class
check_http.c:66: parse error before `*'
check_http.c:66: warning: data definition has no type or storage class
check_http.c:68: parse error before `*'
check_http.c: In function `main':
check_http.c:173: warning: assignment makes pointer from integer without a cast
check_http.c: In function `check_http':
check_http.c:803: warning: assignment makes pointer from integer without a cast
check_http.c:888: `SSL_ERROR_SSL' undeclared (first use in this function)
check_http.c:888: (Each undeclared identifier is reported only once
check_http.c:888: for each function it appears in.)
check_http.c: In function `connect_SSL':
check_http.c:1252: `SSL_METHOD' undeclared (first use in this function)
check_http.c:1252: `meth' undeclared (first use in this function)
check_http.c:1263: warning: assignment makes pointer from integer without a cast
check_http.c:1280: warning: assignment makes pointer from integer without a cast
check_http.c: At top level:
check_http.c:1304: parse error before `*'
check_http.c: In function `check_certificate':
check_http.c:1306: `ASN1_STRING' undeclared (first use in this function)
check_http.c:1306: `tm' undeclared (first use in this function)
check_http.c:1307: parse error before `int'
check_http.c:1313: `certificate' undeclared (first use in this function)
check_http.c:1316: `V_ASN1_UTCTIME' undeclared (first use in this function)
check_http.c:1322: `stamp' undeclared (first use in this function)
check_http.c:1325: `offset' undeclared (first use in this function)
check_http.c:1352: `days_left' undeclared (first use in this function)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/tmp/nagios-2.0b2/nagios-plugins-1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagios-2.0b2/nagios-plugins-1.4'
make: *** [all] Error 2
##########

The actual line that it is failing on is:

SSL_CTX *ctx;

I'm assuming that I don't have that data type available to me.  Is this part of
the openssl package?  I'm running openssl-0.9.7e-1

My kernel is 2.4.27

gcc is 2.95.2

The main nagios package compiled and installed without issue.

Any help anyone can give would be greatly appreciated.

Thanks,

Tom



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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