[Nagiosplug-devel] [ nagiosplug-Bugs-1087087 ] compile error in check_http.c in 1.4alpha3
SourceForge.net
noreply at sourceforge.net
Tue Dec 21 15:21:02 CET 2004
Bugs item #1087087, was opened at 2004-12-17 14:53
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1087087&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 7
Submitted By: madhamster (madhamster)
Assigned to: Ton Voon (tonvoon)
Summary: compile error in check_http.c in 1.4alpha3
Initial Comment:
Using the exact same PATH as I compile 1.3.1 and
1.4alpha2, I cannot get 1.4alpha3 to compile (1.3.1 and
1.4alpha2 compiled just fine). The './configure' ran
normally, but I get errors after I run 'make' during
compile time when it gets to 1.4alpha3's check_http.c:
<--snip-->
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include/ldap -I/include -I/include
-I/usr/kerberos/include -g -O2 -MT check_dummy.o -MD
-MP -MF ".deps/check_dummy.Tpo" -c -o check_dummy.o
check_dummy.c; then mv -f ".deps/check_dummy.Tpo"
".deps/check_dummy.Po"; else rm -f
".deps/check_dummy.Tpo"; exit 1; fi
gcc -g -O2 -L. -o check_dummy check_dummy.o utils.o
../lib/libnagiosplug.a ../lib/libcoreutils.a -lssl -lcrypto
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include/ldap -I/include -I/include
-I/usr/kerberos/include -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:64: syntax error before '*' token
check_http.c:64: warning: data definition has no type
or storage class
check_http.c:65: syntax error before '*' token
check_http.c:65: warning: data definition has no type
or storage class
check_http.c:66: syntax error before '*' token
check_http.c:66: warning: data definition has no type
or storage class
check_http.c:68: syntax 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:737: warning: assignment makes pointer
from integer without a cast
check_http.c:821: `SSL_ERROR_SSL' undeclared (first use
in this function)
check_http.c:821: (Each undeclared identifier is
reported only once
check_http.c:821: for each function it appears in.)
check_http.c: In function `connect_SSL':
check_http.c:1180: `SSL_METHOD' undeclared (first use
in this function)
check_http.c:1180: `meth' undeclared (first use in this
function)
check_http.c:1191: warning: assignment makes pointer
from integer without a cast
check_http.c:1208: warning: assignment makes pointer
from integer without a cast
check_http.c: At top level:
check_http.c:1232: syntax error before '*' token
check_http.c: In function `check_certificate':
check_http.c:1234: `ASN1_STRING' undeclared (first use
in this function)
check_http.c:1234: `tm' undeclared (first use in this
function)
check_http.c:1241: `certificate' undeclared (first use
in this function)
check_http.c:1244: `V_ASN1_UTCTIME' undeclared (first
use in this function)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory
`/usr/local/src/nagios-plugins-1.4.0-alpha3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/nagios-plugins-1.4.0-alpha3'
make: *** [all] Error 2
<--snip-->
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2004-12-21 23:20
Message:
Logged In: YES
user_id=664364
I've taken the hint and reverted the ssl checking routine back to the way
1.4-alpha2 worked. It seems that curl's checking routines didn't make a
whole lot of sense to me now.
Can you try the next snapshot please and let me know if it works okay.
----------------------------------------------------------------------
Comment By: madhamster (madhamster)
Date: 2004-12-21 17:08
Message:
Logged In: YES
user_id=1179843
Ton,
I tried the nagios-plugins-HEAD-200412210547 and still had a
compile error with check_http:
gcc -g -O2 -L. -o check_dummy check_dummy.o utils.o
../lib/libnagiosplug.a ../lib/libcoreutils.a -lssl -lcrypto
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include/ldap -I/include -I/include
-I/usr/kerberos/include -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:64: syntax error before '*' token
check_http.c:64: warning: data definition has no type or
storage class
check_http.c:65: syntax error before '*' token
check_http.c:65: warning: data definition has no type or
storage class
check_http.c:66: syntax error before '*' token
check_http.c:66: warning: data definition has no type or
storage class
check_http.c:68: syntax 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:737: warning: assignment makes pointer from
integer without a cast
check_http.c:821: `SSL_ERROR_SSL' undeclared (first use in
this function)
check_http.c:821: (Each undeclared identifier is reported
only once
check_http.c:821: for each function it appears in.)
check_http.c: In function `connect_SSL':
check_http.c:1180: `SSL_METHOD' undeclared (first use in
this function)
check_http.c:1180: `meth' undeclared (first use in this
function)
check_http.c:1191: warning: assignment makes pointer from
integer without a cast
check_http.c:1208: warning: assignment makes pointer from
integer without a cast
check_http.c: At top level:
check_http.c:1232: syntax error before '*' token
check_http.c: In function `check_certificate':
check_http.c:1234: `ASN1_STRING' undeclared (first use in
this function)
check_http.c:1234: `tm' undeclared (first use in this function)
check_http.c:1241: `certificate' undeclared (first use in
this function)
check_http.c:1244: `V_ASN1_UTCTIME' undeclared (first use in
this function)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory
`/usr/local/src/nagios-plugins-HEAD-200412210547/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/nagios-plugins-HEAD-200412210547'
make: *** [all] Error 2
I uploaded the config.log.
Just to make sure, I recompiled alpha2 with no issues...
--Paul
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2004-12-21 15:40
Message:
Logged In: YES
user_id=664364
Paul,
I think you might have been a bit quick! Your config log still
shows the same error. Please try the plugins-HEAD-
200412210547 (at least) which definitely has the fix in it.
(You can tell because line 296 in configure.in has the
comment: "dnl The /usr checks need to be done so that the
right area is include'd")
Ton
----------------------------------------------------------------------
Comment By: madhamster (madhamster)
Date: 2004-12-21 01:52
Message:
Logged In: YES
user_id=1179843
Oh, I forgot to mention, the error was compiling the nagios-
plugins-HEAD-200412201747.tar.gz snapshot. Was that the
correct one?
----------------------------------------------------------------------
Comment By: madhamster (madhamster)
Date: 2004-12-21 01:51
Message:
Logged In: YES
user_id=1179843
Ton,
Still had a problem compiling:
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -
DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -
I/usr/include/ldap -I/include -I/include -
I/usr/kerberos/include -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:64: syntax error before '*' token
check_http.c:64: warning: data definition has no type or
storage class
check_http.c:65: syntax error before '*' token
check_http.c:65: warning: data definition has no type or
storage class
check_http.c:66: syntax error before '*' token
check_http.c:66: warning: data definition has no type or
storage class
check_http.c:68: syntax 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:737: warning: assignment makes pointer from
integer without a cast
check_http.c:821: `SSL_ERROR_SSL' undeclared (first use in
this function)
check_http.c:821: (Each undeclared identifier is reported
only once
check_http.c:821: for each function it appears in.)
check_http.c: In function `connect_SSL':
check_http.c:1180: `SSL_METHOD' undeclared (first use in
this function)
check_http.c:1180: `meth' undeclared (first use in this
function)
check_http.c:1191: warning: assignment makes pointer from
integer without a cast
check_http.c:1208: warning: assignment makes pointer from
integer without a cast
check_http.c: At top level:
check_http.c:1232: syntax error before '*' token
check_http.c: In function `check_certificate':
check_http.c:1234: `ASN1_STRING' undeclared (first use in
this function)
check_http.c:1234: `tm' undeclared (first use in this function)
check_http.c:1241: `certificate' undeclared (first use in this
function)
check_http.c:1244: `V_ASN1_UTCTIME' undeclared (first use
in this function)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/usr/local/src/nagios-plugins-
HEAD-200412201747/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-plugins-
HEAD-200412201747'
make: *** [all] Error 2
The config.log should be attached...
My real name is below so you can add me to the list of
contributors.
--Paul Wiggins
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2004-12-20 21:43
Message:
Logged In: YES
user_id=664364
Madhamster,
Got the config.log thanks. I think I've found the problem where I
removed a check because I thought it was unnecessary. I've added it
back in again now - can you try the snapshot at http://nagiosplug.sf.net/
snapshot (in a few hours).
p.s. Do you have a real name to add to our list of contributors?
Ton
----------------------------------------------------------------------
Comment By: madhamster (madhamster)
Date: 2004-12-20 03:41
Message:
Logged In: YES
user_id=1179843
I browsed to teh file, and checked the "Check to Upload and
Attach a File" checkbox and clicked "submit changes"... Isn't
that all I need to do?
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2004-12-19 20:46
Message:
Logged In: YES
user_id=664364
Madhamster,
Sorry, the config.log is not attached. Can you try again?
Ton
----------------------------------------------------------------------
Comment By: madhamster (madhamster)
Date: 2004-12-18 07:42
Message:
Logged In: YES
user_id=1179843
This is my PATH:
/usr/local/bin:/usr/local/sbin:/usr/local/ssl:/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin
The config.log is attached.
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2004-12-18 04:50
Message:
Logged In: YES
user_id=664364
Madhamster,
I made a change to the way SSL libraries were picked up, so that may
have broken this. Can you send your config.log and configure output
please. What is your PATH setting?
Ton
----------------------------------------------------------------------
Comment By: madhamster (madhamster)
Date: 2004-12-17 20:48
Message:
Logged In: YES
user_id=1179843
Just to clarify, this is on a RedHat EL 3 machine. 1.3.1
and 1.4alpha2 plug-ins compile just fine, but 1.4alpha3 does
not.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1087087&group_id=29880
More information about the Devel
mailing list