LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2005, 02:12 PM   #1
Anarusis
LQ Newbie
 
Registered: Mar 2005
Distribution: CentOS 4
Posts: 2

Rep: Reputation: 0
Nagios Plugin Compile


I posted this to the Nagios Plugin mailing list, but it was rejected with no reason.

I'm trying to compile nagios-plugins-1.4 and I'm running into errors. I can
configure just fine, but make fails with the following errors:

check_http.c:64: error: syntax error before '*' token
check_http.c:64: warning: data definition has no type or storage class
check_http.c:65: error: syntax error before '*' token
check_http.c:65: warning: data definition has no type or storage class
check_http.c:66: error: syntax error before '*' token
check_http.c:66: warning: data definition has no type or storage class
check_http.c:68: error: syntax error before '*' token
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: error: `SSL_ERROR_SSL' undeclared (first use in this
function)
check_http.c:888: error: (Each undeclared identifier is reported only once
check_http.c:888: error: for each function it appears in.)
check_http.c: In function `connect_SSL':
check_http.c:1252: error: `SSL_METHOD' undeclared (first use in this
function)
check_http.c:1252: error: `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: error: syntax error before '*' token
check_http.c: In function `check_certificate':
check_http.c:1306: error: `ASN1_STRING' undeclared (first use in this
function)
check_http.c:1306: error: `tm' undeclared (first use in this function)
check_http.c:1313: error: `certificate' undeclared (first use in this
function)
check_http.c:1316: error: `V_ASN1_UTCTIME' undeclared (first use in this
function)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4'



I'm running CentOS 4 (RHEL4) with gcc version 3.4.3
Any help would be greatly appreciated... thanks.
 
Old 03-18-2005, 02:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
is that as far back as the errors go? normally errors like that stem from a missing header file or something, which would be printed above that, with those errors just being the fallout.
 
Old 03-18-2005, 03:05 PM   #3
Anarusis
LQ Newbie
 
Registered: Mar 2005
Distribution: CentOS 4
Posts: 2

Original Poster
Rep: Reputation: 0
Chris, thank you for your reply.

There's only a few lines before that:

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


I don't even know where to begin to start tracking anything down. I was able to compile nagios itself fine, I don't understand why the plugins would give me trouble.
 
Old 04-10-2005, 02:31 PM   #4
SCW
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by Anarusis
Chris, thank you for your reply.

There's only a few lines before that:

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


I don't even know where to begin to start tracking anything down. I was able to compile nagios itself fine, I don't understand why the plugins would give me trouble.
I am getting the same error and have isolated it to line 64 of the check_http.c file which is called during the make compile. I have not been able to isolate the exact cause and am also looking for some help. Line 64 is SSL_CTX *ctx;. I have copied lines 60 - 71 from the check_http.c file below.

#ifdef HAVE_SSL
int check_cert = FALSE;
int days_till_exp;
char *randbuff;
SSL_CTX *ctx;
SSL *ssl;
X509 *server_cert;
int connect_SSL (void);
int check_certificate (X509 **);
#endif
int no_body = FALSE;
int maximum_age = -1;
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Nagios plugin? dwarf007 Linux - Software 20 10-03-2011 06:11 AM
XMMS AAC plugin - can't compile MPEG4IP, missing lid3tag Dag Linux - Software 2 03-02-2007 08:27 PM
Nagios: Raid Plugin kegwell Linux - Software 2 05-01-2005 11:38 AM
Flash Plugin in Opera 7.11. Not showing up on plugin list even. binarynova Linux - Software 4 02-05-2004 07:21 AM
xmms plugin compile error archish Linux - Software 0 12-27-2003 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration