[Nagiosplug-devel] [ nagiosplug-Bugs-1524282 ] "Missing type specifier or type qualifier"
SourceForge.net
noreply at sourceforge.net
Thu Jul 20 08:33:27 CEST 2006
Bugs item #1524282, was opened at 2006-07-18 02:01
Message generated for change (Comment added) made by cyruspy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1524282&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: snapshot tarball
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Ciro Iriarte (cyruspy)
Assigned to: Ton Voon (tonvoon)
Summary: "Missing type specifier or type qualifier"
Initial Comment:
I'm getting "Missing type specifier or type qualifier"
here, there and everywhere.
Snapshot: nagios-plugins-HEAD-200607172352.
SO: Tru64 v5.1B
Making all in plugins
source='check_apt.c' object='check_apt.o' libtool=no
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include -g -c check_apt.c
source='utils.c' object='utils.o' libtool=no
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include -g -c utils.c
source='runcmd.c' object='runcmd.o' libtool=no
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include -g -c runcmd.c
/bin/ksh ../libtool --mode=link --tag=CC cc -g -L.
-o check_apt check_apt.o utils.o
../lib/libnagiosplug.a ../lib/libcoreutils.a runcmd.o
-lssl -lcrypto
mkdir .libs
cc -g -o check_apt check_apt.o utils.o runcmd.o
-L/usr/users/iriartec/src/nagios-plugins-HEAD-200607172352/plugins
../lib/libnagiosplug.a ../lib/libcoreutils.a -lssl -lcrypto
source='check_disk.c' object='check_disk.o' libtool=no
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include -g -c check_disk.c
cc: Error: ../lib/fsusage.h, line 29: Missing type
specifier or type qualifier. (missingtype)
uintmax_t fsu_blocksize; /* Size of a block. */
--^
cc: Error: ../lib/fsusage.h, line 30: Missing type
specifier or type qualifier. (missingtype)
uintmax_t fsu_blocks; /* Total blocks. */
--^
cc: Error: ../lib/fsusage.h, line 31: Missing type
specifier or type qualifier. (missingtype)
uintmax_t fsu_bfree; /* Free blocks available to
superuser. */
--^
cc: Error: ../lib/fsusage.h, line 32: Missing type
specifier or type qualifier. (missingtype)
uintmax_t fsu_bavail; /* Free blocks available to
non-superuser. */
--^
cc: Error: ../lib/fsusage.h, line 34: Missing type
specifier or type qualifier. (missingtype)
uintmax_t fsu_files; /* Total file nodes. */
--^
cc: Error: ../lib/fsusage.h, line 35: Missing type
specifier or type qualifier. (missingtype)
uintmax_t fsu_ffree; /* Free file nodes. */
--^
cc: Error: check_disk.c, line 121: Missing identifier.
(parnoident)
int validate_arguments (uintmax_t, uintmax_t, double,
double, double, double, char *);
----------------------------------------------^
cc: Error: check_disk.c, line 131: In this declaration,
"uintmax_t" appears to be used as if it named a type,
but there is no declared type of that name visible.
(typedefnotdef)
uintmax_t mult = 1024 * 1024;
^
cc: Error: check_disk.c, line 157: In this declaration,
"uintmax_t" must specify a type. (badparsedecl)
uintmax_t total, available, available_to_root, used;
--^
cc: Error: check_disk.c, line 333: In this parameter
list, "uintmax_t" must either be a type or must be
followed by a ",". (badparseparam)
double calculate_percent(uintmax_t value, uintmax_t
total) {
-------------------------^
cc: Error: check_disk.c, line 337: The compiler was
expecting a ")", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
if (value <= TYPE_MAXIMUM(uintmax_t) / 100
---------------^
cc: Error: check_disk.c, line 339: In this declaration,
"uintmax_t" must specify a type. (badparsedecl)
uintmax_t u100 = value * 100;
----^
cc: Error: check_disk.c, line 341: Invalid statement.
(badstmt)
} else {
----^
cc: Error: check_disk.c, line 467: The compiler was
expecting a ";", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
mult = (uintmax_t)1;
--------------------------^
cc: Error: check_disk.c, line 470: The compiler was
expecting a ";", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
mult = (uintmax_t)1024;
--------------------------^
cc: Error: check_disk.c, line 473: The compiler was
expecting a ";", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
mult = (uintmax_t)1024 * 1024;
--------------------------^
cc: Error: check_disk.c, line 476: The compiler was
expecting a ";", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
mult = (uintmax_t)1024 * 1024 * 1024;
--------------------------^
cc: Error: check_disk.c, line 479: The compiler was
expecting a ";", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
mult = (uintmax_t)1024 * 1024 * 1024 * 1024;
--------------------------^
cc: Error: check_disk.c, line 579: The compiler was
expecting a ";", but one was not found. This condition
could have occured because "uintmax_t" is used in what
might be a type cast, but there is no declared type of
that name visible. (undefinedtype)
mult = (uintmax_t)1024 * 1024;
----------------------^
cc: Warning: check_disk.c, line 124: In the declaration
of "calculate_percent", the identifier "uintmax_t" is
not the name of a type. All parameter information in
this declaration will be ignored. (funcidlis)
double calculate_percent(uintmax_t, uintmax_t);
-------------------------^
cc: Error: check_disk.c, line 238: In this statement,
"total" is not declared. (undeclared)
total = fsp.fsu_blocks;
------^
cc: Error: check_disk.c, line 239: In this statement,
"available" is not declared. (undeclared)
available = fsp.fsu_bavail;
------^
cc: Error: check_disk.c, line 240: In this statement,
"available_to_root" is not declared. (undeclared)
available_to_root = fsp.fsu_bfree;
------^
cc: Error: check_disk.c, line 241: In this statement,
"used" is not declared. (undeclared)
used = total - available_to_root;
------^
cc: Error: check_disk.c, line 246: In this statement,
"mult" is not declared. (undeclared)
dused_units = used*fsp.fsu_blocksize/mult;
-------------------------------------------^
cc: Error: check_disk.c, line 488: In this statement,
"mult" is not declared. (undeclared)
mult = 1024;
------^
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
Full log at
http://tinderbox.altinity.org/nagiosplug/status.html,
thanks in advanced
Cyrus
----------------------------------------------------------------------
>Comment By: Ciro Iriarte (cyruspy)
Date: 2006-07-20 02:33
Message:
Logged In: YES
user_id=1548408
Just a warning to note:
source='check_icmp.c' object='check_icmp.o' libtool=no
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp cc
-DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I../pl
ugins -I/usr/include -g -c
check_icmp.c
cc: Warning: check_icmp.c, line 838: In this statement, the
referenced type of the pointer value "&slen" is
"unsigned int", which is not compatible
with "int" because they differ by signed/unsigned attribute.
(ptrm ismatch1)
return recvfrom(sock, buf, len, 0, saddr, &slen);
--------------------------------------------------^
----------------------------------------------------------------------
Comment By: Ciro Iriarte (cyruspy)
Date: 2006-07-20 02:31
Message:
Logged In: YES
user_id=1548408
Thanks a lot, it works now.
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2006-07-19 18:57
Message:
Logged In: YES
user_id=664364
Cyrus,
Just committed a fix to CVS. Please try the next snapshot and let us know if it
fixes it.
Ton
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1524282&group_id=29880
More information about the Devel
mailing list