compiling nsca-2.1 under Solaris8
Jackson Sie
jsie at quadrix.com
Fri Aug 16 03:04:57 CEST 2002
Just do search and replace in the nsca source tree for 'u_int32_t' and
replace with 'uint32_t'. That should do the trick. We had run into a
similar problem as well when we were still thinking of using nsca...
Jackson Sie
Senior Architect
Quadrix Solutions, Inc.
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
8lb4fmllhm001 at sneakemail.com
Sent: Thursday, August 15, 2002 6:46 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] compiling nsca-2.1 under Solaris8
Ran into this while compiling nsca-2.1:
$ make all
cd ./src/; make all ; cd ..
make[1]: Entering directory `/usr/local/src/nsca-2.1/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 `}'
../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:768: `init_packet' undeclared (first use in this function)
nsca.c:768: (Each undeclared identifier is reported only once
nsca.c:768: for each function it appears in.)
nsca.c:768: parse error before `send_packet'
nsca.c:791: `send_packet' undeclared (first use in this function)
nsca.c:793: `u_int32_t' undeclared (first use in this function)
nsca.c: In function `handle_connection_read':
nsca.c:837: `data_packet' undeclared (first use in this function)
nsca.c:837: parse error before `receive_packet'
nsca.c:838: `u_int32_t' undeclared (first use in this function)
nsca.c:856: `receive_packet' undeclared (first use in this function)
nsca.c:896: `packet_crc32' undeclared (first use in this function)
nsca.c:898: `calculated_crc32' undeclared (first use in this function)
[snip]
I should mention that the make went fine.
I looked through the FAQ, but no joy. Suggestions?
-----------------------------------------------------
Protect yourself from spam, use http://sneakemail.com
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell
phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
More information about the Users
mailing list