Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 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;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.