[Nagiosplug-help] Re: nagios-plugins-1.3.0 error during make all

Ewan Leith ejl at man.fwltech.com
Tue Apr 8 02:03:04 CEST 2003


I've not looked much through your past postings, but it seems you're using
xLC, the wonderous IBM C compiler. I gave up using that, and went with gcc
from either www.bullfreeware.com <http://www.bullfreeware.com>  or
http://www-1.ibm.com/servers/aix/products/aixos/linux/index.html
<http://www-1.ibm.com/servers/aix/products/aixos/linux/index.html>  - the
IBM site is an rpm not a bff file but instructions are on that site on how
to do it.
 
After that, I've not had any major problems getting Nagios or any of the
plugins except check_procs to work under AIX.
 
I can send you the aix plugins compiled on 4.3.3 if you want, I don't have
the net-snmp tools installed so check_snmp won't be in there though.
 
Ewan
 
 -----Original Message-----
From: Alwyn Cherrington [mailto:a.cherrington at notes.manchester.gov.uk]
Sent: 08 April 2003 09:34
To: Voon, Ton; nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] Re: nagios-plugins-1.3.0 error during make all




Thank you Ton, 
                We got a little bit further ... 

        cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib 
-g -c check_snmp.c 
        cc  -g -L. -o check_snmp  check_snmp.o utils.o
../lib/libnagiosplug.a po 
pen.o -lsnprintf -lsnprintf 
        cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib 
-g -c check_nt.c 
"check_nt.c", line 31.3: 1506-191 (E) The character £ is not a valid C
source ch 
aracter. 
"check_nt.c", line 31.1: 1506-046 (S) Syntax error. 
"check_nt.c", line 31.4: 1506-166 (S) Definition of function include
requires pa 
rentheses. 
"/usr/include/stdio.h", line 153.3: 1506-273 (E) Missing type in declaration
of 
FILE. 
"/usr/include/stdio.h", line 158.8: 1506-166 (S) Definition of function FILE
req 
uires parentheses. 
"/usr/include/stdio.h", line 158.17: 1506-276 (S) Syntax error: possible
missing 
 '{'? 
"/usr/include/sys/types.h", line 236.3: 1506-273 (E) Missing type in
declaration 
 of sigset_t. 
"/usr/include/sys/vm_types.h", line 45.9: 1506-166 (S) Definition of
function ul 
ong_t requires parentheses. 
"/usr/include/sys/vm_types.h", line 45.25: 1506-276 (S) Syntax error:
possible m 
issing '{'? 
"/usr/include/sys/vm_types.h", line 94.9: 1506-045 (S) Undeclared identifier
vmh 
andle_t. 
"/usr/include/sys/vm_types.h", line 95.9: 1506-045 (S) Undeclared identifier
cad 
dr_t. 
"/usr/include/sys/vm_types.h", line 100.3: 1506-273 (E) Missing type in
declarat 
ion of vmaddr_t. 
"/usr/include/sys/vm_types.h", line 108.9: 1506-046 (S) Syntax error. 
"/usr/include/sys/vm_types.h", line 114.1: 1506-278 (S) The structure
definition 
 must specify a member list. 
"/usr/include/sys/m_types.h", line 55.9: 1506-046 (S) Syntax error. 
"/usr/include/sys/m_types.h", line 72.9: 1506-166 (S) Definition of function
int 
32long64_t requires parentheses. 
"/usr/include/sys/types.h", line 460.30: 1506-273 (E) Missing type in
declaratio 
n of physadr_t. 
"/usr/include/sys/types.h", line 461.9: 1506-166 (S) Definition of function
phys 
adr_t requires parentheses. 
"/usr/include/sys/types.h", line 461.25: 1506-276 (S) Syntax error: possible
mis 
sing '{'? 
"/usr/include/sys/types.h", line 496.9: 1506-046 (S) Syntax error. 
"/usr/include/sys/types.h", line 499.41: 1506-045 (S) Undeclared identifier
ino3 
2_t. 
"/usr/include/sys/types.h", line 499.64: 1506-045 (S) Undeclared identifier
uint 
_t. 
"/usr/include/sys/types.h", line 517.9: 1506-046 (S) Syntax error. 
"/usr/include/sys/types.h", line 541.8: 1506-046 (S) Syntax error. 
"/usr/include/sys/types.h", line 545.1: 1506-278 (S) The structure
definition mu 
st specify a member list. 
"/usr/include/stdio.h", line 374.29: 1506-275 (S) Unexpected text '*'
encountere 
d. 
"/usr/include/stdio.h", line 374.17: 1506-282 (S) The type of the parameters
mus 
t be specified in a prototype. 
"/usr/include/stdio.h", line 375.8: 1506-166 (S) Definition of function FILE
req 
uires parentheses. 
"/usr/include/stdio.h", line 375.17: 1506-276 (S) Syntax error: possible
missing 
 '{'? 
"/usr/include/stdlib.h", line 79.3: 1506-273 (E) Missing type in declaration
of 
div_t. 
"/usr/include/stdlib.h", line 91.8: 1506-166 (S) Definition of function
size_t r 
equires parentheses. 
"/usr/include/stdlib.h", line 91.15: 1506-276 (S) Syntax error: possible
missing 
 '{'? 
"/usr/include/sys/time.h", line 91.9: 1506-045 (S) Undeclared identifier
time_t. 
"/usr/include/sys/time.h", line 93.9: 1506-045 (S) Undeclared identifier
susecon 
ds_t. 
"/usr/include/sys/time.h", line 103.5: 1506-046 (S) Syntax error. 
"/usr/include/sys/time.h", line 105.1: 1506-278 (S) The structure definition
mus 
t specify a member list. 
"/usr/include/sys/time.h", line 115.1: 1506-278 (S) The structure definition
mus 
t specify a member list. 
"/usr/include/sys/time.h", line 123.25: 1506-007 (S) "struct timeval" is
undefin 
ed. 
"/usr/include/sys/time.h", line 124.25: 1506-007 (S) "struct timeval" is
undefin 
ed. 
make: 1254-004 The error code from the last command is 1. 


Stop. 
make: 1254-004 The error code from the last command is 1. 


Stop. 


I then removed // from file 31.3 of check_nt.c. Executed the make all again
and got .... 

        cc  -g -L. -o check_snmp  check_snmp.o utils.o
../lib/libnagiosplug.a po 
pen.o -lsnprintf -lsnprintf 
        cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib 
-g -c check_nt.c 
"check_nt.c", line 124.33: 1506-046 (S) Syntax error. 
"check_nt.c", line 124.37: 1506-045 (S) Undeclared identifier l. 
"check_nt.c", line 130.41: 1506-046 (S) Syntax error. 
"check_nt.c", line 130.44: 1506-045 (S) Undeclared identifier loop. 
"check_nt.c", line 133.108: 1506-275 (S) Unexpected text ')' encountered. 
"check_nt.c", line 145.41: 1506-046 (S) Syntax error. 
"check_nt.c", line 153.57: 1506-046 (S) Syntax error. 
"check_nt.c", line 156.41: 1506-046 (S) Syntax error. 
"check_nt.c", line 156.44: 1506-045 (S) Undeclared identifier we. 
"check_nt.c", line 239.65: 1506-046 (S) Syntax error. 
"check_nt.c", line 239.68: 1506-045 (S) Undeclared identifier replace. 
"check_nt.c", line 241.81: 1506-275 (S) Unexpected text ')' encountered. 
"check_nt.c", line 289.65: 1506-046 (S) Syntax error. 
"check_nt.c", line 289.78: 1506-045 (S) Undeclared identifier between. 
"check_nt.c", line 290.81: 1506-275 (S) Unexpected text ')' encountered. 
"check_nt.c", line 300.65: 1506-046 (S) Syntax error. 
make: 1254-004 The error code from the last command is 1. 


Stop. 
make: 1254-004 The error code from the last command is 1. 


Stop.
regards,

Removed comment line 124 //  -l parameters is present with only integers.
Executed the make all again and got .... 

        cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib 
-g -c check_nt.c 
"check_nt.c", line 129.41: 1506-046 (S) Syntax error. 
"check_nt.c", line 129.44: 1506-045 (S) Undeclared identifier loop. 
"check_nt.c", line 132.108: 1506-275 (S) Unexpected text ')' encountered. 
"check_nt.c", line 144.41: 1506-046 (S) Syntax error. 
"check_nt.c", line 152.57: 1506-046 (S) Syntax error. 
"check_nt.c", line 155.41: 1506-046 (S) Syntax error. 
"check_nt.c", line 155.44: 1506-045 (S) Undeclared identifier we. 
"check_nt.c", line 238.65: 1506-046 (S) Syntax error. 
"check_nt.c", line 238.68: 1506-045 (S) Undeclared identifier replace. 
"check_nt.c", line 240.81: 1506-275 (S) Unexpected text ')' encountered. 
"check_nt.c", line 288.65: 1506-046 (S) Syntax error. 
"check_nt.c", line 288.78: 1506-045 (S) Undeclared identifier between. 
"check_nt.c", line 289.81: 1506-275 (S) Unexpected text ')' encountered. 
"check_nt.c", line 299.65: 1506-046 (S) Syntax error. 
"check_nt.c", line 299.68: 1506-045 (S) Undeclared identifier burn. 
make: 1254-004 The error code from the last command is 1. 


Stop. 
make: 1254-004 The error code from the last command is 1. 


Removed all comment lines throughout check_nt.c.  Executed the make all
again and got .... 

        cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib 
-g -c check_nt.c 
"check_nt.c", line 296.25: 1506-277 (S) Syntax error: possible missing ';'
or ', 
'? 
make: 1254-004 The error code from the last command is 1. 


Stop. 
make: 1254-004 The error code from the last command is 1. 


Stop. 


Looked at previous occurrences of "printf("NSClient - %s\n",recv_buffer);".
( line 296.25). Any ideas .... 

Regards, 

Alwyn Cherrington
Generic Operator
Technology Services Unit
Corporate Services Department
Manchester City Council

Tel: 0161 277 5912
Fax: 0161 277 5955
Email: a.cherrington at notes.manchester.gov.uk 



	"Voon, Ton" <Ton.Voon at egg.com> 


07/04/2003 18:16 


        
        To:        Alwyn
Cherrington/Technology.Services/MCC at Manchester.City.Council,
nagios-users at lists.sourceforge.net, nagiosplug-help at lists.sourceforge.net 
        cc:         
        Subject:        Re: nagios-plugins-1.3.0 error during make all



Please remove nagios-users from mailing list when replying.

Alwyn,

Looks like line 170 is redundant as I can't see any bit of the code that
uses it. The errors are probably due to AIX using a variable called regex as
well. Please delete the line and do another make all.

I'll remove the line from CVS later tonight.

Ton

> -----Original Message-----
> From:        Alwyn Cherrington
[SMTP:a.cherrington at notes.manchester.gov.uk]
> Sent:        Monday, April 07, 2003 2:49 PM
> To:        nagios-users at lists.sourceforge.net;
> nagiosplug-help at lists.sourceforge.net
> Subject:        [Nagiosplug-help] nagios-plugins-1.3.0 error during make
all
>
>
> Installed Nagios, trying to install plugins ... on AIX dm05 3 4
> 0041C9BA4C00, I have perviously been administering NetSaint 7 on another
> node but did not install it.
>
> following ... /usr/local/nagios/libexec/nagios-plugins-1.3.0>make all
>
>
>         cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib
> -g -c check_snmp.c
> "check_snmp.c", line 170.6: 1506-343 (S) Redeclaration of regex differs
> from pre
> vious declaration on line 188 of "/usr/include/regex.h".
> "check_snmp.c", line 170.6: 1506-382 (I) The type "unsigned char[1024]" of
> ident
> ifier regex differs from previous type "unsigned char*(unsigned
> char*,unsigned c
> har*,unsigned char*)".
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
> dm05:/usr/local/nagios/libexec/nagios-plugins-1.3.0>
>
> Any help would be appreciated.
>
> regards,
>
> Alwyn Cherrington
>


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox. 




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept 
for the presence of computer viruses.

Please contact internet.administrators at notes.manchester.gov.uk 
with any queries.






More information about the Help mailing list