<br><font size=2 face="sans-serif">Thanks Ewan,</font>
<br><font size=2 face="sans-serif"> I'm installing Nagios on a multi-user node and the administrator would like to avoid installing a new complier. I'm not a C programmer so if you sent me a compiled version can I simply delete reference to check_nt.c from TARGET? ( How?)</font>
<br><font size=2 face="sans-serif"><br>
regards,<br>
<br>
Alwyn Cherrington<br>
Generic Operator<br>
Technology Services Unit<br>
Corporate Services Department<br>
Manchester City Council<br>
<br>
Tel: 0161 277 5912<br>
Fax: 0161 277 5955<br>
Email: a.cherrington@notes.manchester.gov.uk</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Ewan Leith <ejl@man.fwltech.com></b></font>
<p><font size=1 face="sans-serif">08/04/2003 10:03</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: Alwyn Cherrington/Technology.Services/MCC@Manchester.City.Council, nagiosplug-help@lists.sourceforge.net</font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: RE: [Nagiosplug-help] Re: nagios-plugins-1.3.0 error during make all</font></table>
<br>
<br>
<br><font size=2><tt>I've not looked much through your past postings, but it seems you're using<br>
xLC, the wonderous IBM C compiler. I gave up using that, and went with gcc<br>
from either www.bullfreeware.com <http://www.bullfreeware.com> or<br>
http://www-1.ibm.com/servers/aix/products/aixos/linux/index.html<br>
<http://www-1.ibm.com/servers/aix/products/aixos/linux/index.html> - the<br>
IBM site is an rpm not a bff file but instructions are on that site on how<br>
to do it.<br>
</tt></font>
<br><font size=2><tt>After that, I've not had any major problems getting Nagios or any of the<br>
plugins except check_procs to work under AIX.<br>
</tt></font>
<br><font size=2><tt>I can send you the aix plugins compiled on 4.3.3 if you want, I don't have<br>
the net-snmp tools installed so check_snmp won't be in there though.<br>
</tt></font>
<br><font size=2><tt>Ewan<br>
</tt></font>
<br><font size=2><tt>-----Original Message-----<br>
From: Alwyn Cherrington [mailto:a.cherrington@notes.manchester.gov.uk]<br>
Sent: 08 April 2003 09:34<br>
To: Voon, Ton; nagiosplug-help@lists.sourceforge.net<br>
Subject: [Nagiosplug-help] Re: nagios-plugins-1.3.0 error during make all<br>
</tt></font>
<br>
<br>
<br>
<br><font size=2><tt>Thank you Ton,<br>
We got a little bit further ...</tt></font>
<br>
<br><font size=2><tt>cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib<br>
-g -c check_snmp.c</tt></font>
<br><font size=2><tt>cc -g -L. -o check_snmp check_snmp.o utils.o<br>
../lib/libnagiosplug.a po<br>
pen.o -lsnprintf -lsnprintf</tt></font>
<br><font size=2><tt>cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib<br>
-g -c check_nt.c<br>
"check_nt.c", line 31.3: 1506-191 (E) The character £ is not a valid C<br>
source ch<br>
aracter.<br>
"check_nt.c", line 31.1: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 31.4: 1506-166 (S) Definition of function include<br>
requires pa<br>
rentheses.<br>
"/usr/include/stdio.h", line 153.3: 1506-273 (E) Missing type in declaration<br>
of<br>
FILE.<br>
"/usr/include/stdio.h", line 158.8: 1506-166 (S) Definition of function FILE<br>
req<br>
uires parentheses.<br>
"/usr/include/stdio.h", line 158.17: 1506-276 (S) Syntax error: possible<br>
missing</tt></font>
<br><font size=2><tt>'{'?<br>
"/usr/include/sys/types.h", line 236.3: 1506-273 (E) Missing type in<br>
declaration</tt></font>
<br><font size=2><tt>of sigset_t.<br>
"/usr/include/sys/vm_types.h", line 45.9: 1506-166 (S) Definition of<br>
function ul<br>
ong_t requires parentheses.<br>
"/usr/include/sys/vm_types.h", line 45.25: 1506-276 (S) Syntax error:<br>
possible m<br>
issing '{'?<br>
"/usr/include/sys/vm_types.h", line 94.9: 1506-045 (S) Undeclared identifier<br>
vmh<br>
andle_t.<br>
"/usr/include/sys/vm_types.h", line 95.9: 1506-045 (S) Undeclared identifier<br>
cad<br>
dr_t.<br>
"/usr/include/sys/vm_types.h", line 100.3: 1506-273 (E) Missing type in<br>
declarat<br>
ion of vmaddr_t.<br>
"/usr/include/sys/vm_types.h", line 108.9: 1506-046 (S) Syntax error.<br>
"/usr/include/sys/vm_types.h", line 114.1: 1506-278 (S) The structure<br>
definition</tt></font>
<br><font size=2><tt>must specify a member list.<br>
"/usr/include/sys/m_types.h", line 55.9: 1506-046 (S) Syntax error.<br>
"/usr/include/sys/m_types.h", line 72.9: 1506-166 (S) Definition of function<br>
int<br>
32long64_t requires parentheses.<br>
"/usr/include/sys/types.h", line 460.30: 1506-273 (E) Missing type in<br>
declaratio<br>
n of physadr_t.<br>
"/usr/include/sys/types.h", line 461.9: 1506-166 (S) Definition of function<br>
phys<br>
adr_t requires parentheses.<br>
"/usr/include/sys/types.h", line 461.25: 1506-276 (S) Syntax error: possible<br>
mis<br>
sing '{'?<br>
"/usr/include/sys/types.h", line 496.9: 1506-046 (S) Syntax error.<br>
"/usr/include/sys/types.h", line 499.41: 1506-045 (S) Undeclared identifier<br>
ino3<br>
2_t.<br>
"/usr/include/sys/types.h", line 499.64: 1506-045 (S) Undeclared identifier<br>
uint<br>
_t.<br>
"/usr/include/sys/types.h", line 517.9: 1506-046 (S) Syntax error.<br>
"/usr/include/sys/types.h", line 541.8: 1506-046 (S) Syntax error.<br>
"/usr/include/sys/types.h", line 545.1: 1506-278 (S) The structure<br>
definition mu<br>
st specify a member list.<br>
"/usr/include/stdio.h", line 374.29: 1506-275 (S) Unexpected text '*'<br>
encountere<br>
d.<br>
"/usr/include/stdio.h", line 374.17: 1506-282 (S) The type of the parameters<br>
mus<br>
t be specified in a prototype.<br>
"/usr/include/stdio.h", line 375.8: 1506-166 (S) Definition of function FILE<br>
req<br>
uires parentheses.<br>
"/usr/include/stdio.h", line 375.17: 1506-276 (S) Syntax error: possible<br>
missing</tt></font>
<br><font size=2><tt>'{'?<br>
"/usr/include/stdlib.h", line 79.3: 1506-273 (E) Missing type in declaration<br>
of<br>
div_t.<br>
"/usr/include/stdlib.h", line 91.8: 1506-166 (S) Definition of function<br>
size_t r<br>
equires parentheses.<br>
"/usr/include/stdlib.h", line 91.15: 1506-276 (S) Syntax error: possible<br>
missing</tt></font>
<br><font size=2><tt>'{'?<br>
"/usr/include/sys/time.h", line 91.9: 1506-045 (S) Undeclared identifier<br>
time_t.<br>
"/usr/include/sys/time.h", line 93.9: 1506-045 (S) Undeclared identifier<br>
susecon<br>
ds_t.<br>
"/usr/include/sys/time.h", line 103.5: 1506-046 (S) Syntax error.<br>
"/usr/include/sys/time.h", line 105.1: 1506-278 (S) The structure definition<br>
mus<br>
t specify a member list.<br>
"/usr/include/sys/time.h", line 115.1: 1506-278 (S) The structure definition<br>
mus<br>
t specify a member list.<br>
"/usr/include/sys/time.h", line 123.25: 1506-007 (S) "struct timeval" is<br>
undefin<br>
ed.<br>
"/usr/include/sys/time.h", line 124.25: 1506-007 (S) "struct timeval" is<br>
undefin<br>
ed.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
</tt></font>
<br>
<br><font size=2><tt>I then removed // from file 31.3 of check_nt.c. Executed the make all again<br>
and got ....<br>
</tt></font>
<br><font size=2><tt>cc -g -L. -o check_snmp check_snmp.o utils.o<br>
../lib/libnagiosplug.a po<br>
pen.o -lsnprintf -lsnprintf</tt></font>
<br><font size=2><tt>cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib<br>
-g -c check_nt.c<br>
"check_nt.c", line 124.33: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 124.37: 1506-045 (S) Undeclared identifier l.<br>
"check_nt.c", line 130.41: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 130.44: 1506-045 (S) Undeclared identifier loop.<br>
"check_nt.c", line 133.108: 1506-275 (S) Unexpected text ')' encountered.<br>
"check_nt.c", line 145.41: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 153.57: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 156.41: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 156.44: 1506-045 (S) Undeclared identifier we.<br>
"check_nt.c", line 239.65: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 239.68: 1506-045 (S) Undeclared identifier replace.<br>
"check_nt.c", line 241.81: 1506-275 (S) Unexpected text ')' encountered.<br>
"check_nt.c", line 289.65: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 289.78: 1506-045 (S) Undeclared identifier between.<br>
"check_nt.c", line 290.81: 1506-275 (S) Unexpected text ')' encountered.<br>
"check_nt.c", line 300.65: 1506-046 (S) Syntax error.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
regards,<br>
</tt></font>
<br><font size=2><tt>Removed comment line 124 // -l parameters is present with only integers.<br>
Executed the make all again and got ....<br>
</tt></font>
<br><font size=2><tt>cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib<br>
-g -c check_nt.c<br>
"check_nt.c", line 129.41: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 129.44: 1506-045 (S) Undeclared identifier loop.<br>
"check_nt.c", line 132.108: 1506-275 (S) Unexpected text ')' encountered.<br>
"check_nt.c", line 144.41: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 152.57: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 155.41: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 155.44: 1506-045 (S) Undeclared identifier we.<br>
"check_nt.c", line 238.65: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 238.68: 1506-045 (S) Undeclared identifier replace.<br>
"check_nt.c", line 240.81: 1506-275 (S) Unexpected text ')' encountered.<br>
"check_nt.c", line 288.65: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 288.78: 1506-045 (S) Undeclared identifier between.<br>
"check_nt.c", line 289.81: 1506-275 (S) Unexpected text ')' encountered.<br>
"check_nt.c", line 299.65: 1506-046 (S) Syntax error.<br>
"check_nt.c", line 299.68: 1506-045 (S) Undeclared identifier burn.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Removed all comment lines throughout check_nt.c. Executed the make all<br>
again and got ....<br>
</tt></font>
<br><font size=2><tt>cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib<br>
-g -c check_nt.c<br>
"check_nt.c", line 296.25: 1506-277 (S) Syntax error: possible missing ';'<br>
or ',<br>
'?<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
make: 1254-004 The error code from the last command is 1.<br>
</tt></font>
<br>
<br><font size=2><tt>Stop.<br>
</tt></font>
<br>
<br><font size=2><tt>Looked at previous occurrences of "printf("NSClient - %s\n",recv_buffer);".<br>
( line 296.25). Any ideas ....<br>
</tt></font>
<br><font size=2><tt>Regards,<br>
</tt></font>
<br><font size=2><tt>Alwyn Cherrington<br>
Generic Operator<br>
Technology Services Unit<br>
Corporate Services Department<br>
Manchester City Council<br>
</tt></font>
<br><font size=2><tt>Tel: 0161 277 5912<br>
Fax: 0161 277 5955<br>
Email: a.cherrington@notes.manchester.gov.uk<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>"Voon, Ton" <Ton.Voon@egg.com><br>
</tt></font>
<br>
<br><font size=2><tt>07/04/2003 18:16<br>
</tt></font>
<br>
<br>
<br><font size=2><tt>To: Alwyn<br>
Cherrington/Technology.Services/MCC@Manchester.City.Council,<br>
nagios-users@lists.sourceforge.net, nagiosplug-help@lists.sourceforge.net</tt></font>
<br><font size=2><tt>cc:<br>
Subject: Re: nagios-plugins-1.3.0 error during make all</tt></font>
<br>
<br>
<br>
<br><font size=2><tt>Please remove nagios-users from mailing list when replying.<br>
</tt></font>
<br><font size=2><tt>Alwyn,<br>
</tt></font>
<br><font size=2><tt>Looks like line 170 is redundant as I can't see any bit of the code that<br>
uses it. The errors are probably due to AIX using a variable called regex as<br>
well. Please delete the line and do another make all.<br>
</tt></font>
<br><font size=2><tt>I'll remove the line from CVS later tonight.<br>
</tt></font>
<br><font size=2><tt>Ton<br>
</tt></font>
<br><font size=2><tt>> -----Original Message-----<br>
> From: Alwyn Cherrington<br>
[SMTP:a.cherrington@notes.manchester.gov.uk]<br>
> Sent: Monday, April 07, 2003 2:49 PM<br>
> To: nagios-users@lists.sourceforge.net;<br>
> nagiosplug-help@lists.sourceforge.net<br>
> Subject: [Nagiosplug-help] nagios-plugins-1.3.0 error during make<br>
all<br>
><br>
><br>
> Installed Nagios, trying to install plugins ... on AIX dm05 3 4<br>
> 0041C9BA4C00, I have perviously been administering NetSaint 7 on another<br>
> node but did not install it.<br>
><br>
> following ... /usr/local/nagios/libexec/nagios-plugins-1.3.0>make all<br>
><br>
><br>
> cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib<br>
> -g -c check_snmp.c<br>
> "check_snmp.c", line 170.6: 1506-343 (S) Redeclaration of regex differs<br>
> from pre<br>
> vious declaration on line 188 of "/usr/include/regex.h".<br>
> "check_snmp.c", line 170.6: 1506-382 (I) The type "unsigned char[1024]" of<br>
> ident<br>
> ifier regex differs from previous type "unsigned char*(unsigned<br>
> char*,unsigned c<br>
> har*,unsigned char*)".<br>
> make: 1254-004 The error code from the last command is 1.<br>
><br>
><br>
> Stop.<br>
> make: 1254-004 The error code from the last command is 1.<br>
><br>
><br>
> Stop.<br>
> dm05:/usr/local/nagios/libexec/nagios-plugins-1.3.0><br>
><br>
> Any help would be appreciated.<br>
><br>
> regards,<br>
><br>
> Alwyn Cherrington<br>
><br>
</tt></font>
<br>
<br><font size=2><tt>This private and confidential e-mail has been sent to you by Egg.<br>
The Egg group of companies includes Egg Banking plc<br>
(registered no. 2999842), Egg Financial Products Ltd (registered<br>
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which<br>
carries out investment business on behalf of Egg and is regulated<br>
by the Financial Services Authority.<br>
Registered in England and Wales. Registered offices: 1 Waterhouse Square,<br>
138-142 Holborn, London EC1N 2NA.<br>
If you are not the intended recipient of this e-mail and have<br>
received it in error, please notify the sender by replying with<br>
'received in error' as the subject and then delete it from your<br>
mailbox.<br>
</tt></font>
<br>
<br>
<br>
<br><font size=2><tt>**********************************************************************<br>
This email and any files transmitted with it are confidential and<br>
intended solely for the use of the individual or entity to whom they<br>
are addressed. If you have received this email in error please notify<br>
the system manager.<br>
</tt></font>
<br><font size=2><tt>This footnote also confirms that this email message has been swept<br>
for the presence of computer viruses.<br>
</tt></font>
<br><font size=2><tt>Please contact internet.administrators@notes.manchester.gov.uk<br>
with any queries.<br>
</tt></font>
<br>
<br>
<br>
<br>