Problem compiling NSCA 2.3 on Solaris 8

Fabio Priolo fabio.priolo at sep.net
Mon Feb 24 10:43:30 CET 2003


Hi!
Trying to compile NSCA 2.3 on Solaris 8/9 i get the following errors.
(Gcc version is 3.2.2)

Anybody could help ?

Thanks,
Fabio Priolo.



root at clsconsole:/home/software/nagios/nsca-2.3-> make nsca
cd ./src/; make nsca ; cd ..
make[1]: Entering directory `/home/software/nagios/nsca-2.3/src'
gcc -g -O2 -DHAVE_CONFIG_H  -lnsl -lsocket nsca.c netutils.c utils.c -o nsca
In file included from nsca.c:18:
../common/common.h:105: parse error before "u_int32_t"
../common/common.h:105: warning: no semicolon at end of struct or union
../common/common.h:106: warning: data definition has no type or storage 
class
../common/common.h:111: parse error before '}' token
../common/common.h:111: warning: data definition has no type or storage 
class
../common/common.h:116: parse error before "u_int32_t"
../common/common.h:116: warning: no semicolon at end of struct or union
../common/common.h:117: warning: data definition has no type or storage 
class
nsca.c: In function `handle_connection':
nsca.c:789: parse error before "send_packet"
nsca.c:814: `send_packet' undeclared (first use in this function)
nsca.c:814: (Each undeclared identifier is reported only once
nsca.c:814: for each function it appears in.)
nsca.c:816: `u_int32_t' undeclared (first use in this function)
nsca.c: In function `handle_connection_read':
nsca.c:866: parse error before "receive_packet"
nsca.c:867: `u_int32_t' undeclared (first use in this function)
nsca.c:885: `receive_packet' undeclared (first use in this function)
nsca.c:931: `packet_crc32' undeclared (first use in this function)
nsca.c:933: `calculated_crc32' undeclared (first use in this function)
In file included from netutils.c:32:
../common/common.h:105: parse error before "u_int32_t"
../common/common.h:105: warning: no semicolon at end of struct or union
../common/common.h:106: warning: data definition has no type or storage 
class
../common/common.h:111: parse error before '}' token
../common/common.h:111: warning: data definition has no type or storage 
class
../common/common.h:116: parse error before "u_int32_t"
../common/common.h:116: warning: no semicolon at end of struct or union
../common/common.h:117: warning: data definition has no type or storage 
class
In file included from utils.c:32:
../common/common.h:105: parse error before "u_int32_t"
../common/common.h:105: warning: no semicolon at end of struct or union
../common/common.h:106: warning: data definition has no type or storage 
class
../common/common.h:111: parse error before '}' token
../common/common.h:111: warning: data definition has no type or storage 
class
../common/common.h:116: parse error before "u_int32_t"
../common/common.h:116: warning: no semicolon at end of struct or union
../common/common.h:117: warning: data definition has no type or storage 
class
make[1]: *** [nsca] Error 1
make[1]: Leaving directory `/home/software/nagios/nsca-2.3/src'




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list