Antw: RE: compiling nsca on Solaris 2.8

Daniel Siegers Daniel.Siegers at bauerverlag.de
Wed Dec 18 14:47:41 CET 2002


Thx, it worked !
 
 
Mit freundlichen Grüßen / Kind regards
 
Daniel Siegers
Systemadministrator
 
Heinrich Bauer Dienstleistungs KG
Brieffach 4620
Burchardstraße 11
D-20077 Hamburg
 
Telefon  +49 (40)-3019-1991
Fax         +49 (40)-3019-140-1991
 
E-Mail Daniel.Siegers at Bauerverlag.de

>>> "Jackson Sie" 17.12.2002 20:12 >>> 
If you simply do a global search and replace on the source files for: 

Search for: u_int32_t 
Replace with: uint32_t 

This will remove the compilation problem you are experiencing. 

Jackson Sie 
Quadrix Solutions, Inc. 


-----Original Message----- 
From: nagios-users-admin at lists.sourceforge.net 
[ mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Carroll, 
Jim P [Contractor] 
Sent: Tuesday, December 17, 2002 12:01 PM 
To: 'Daniel Siegers'; nagios-users at lists.sourceforge.net 
Subject: RE: [Nagios-users] compiling nsca on Solaris 2.8 


Have you tried GNU make? 

If not, get it from www.sunfreeware.com . Be sure that you have 
/usr/local/bin first on your $PATH before running 'make'. 

jc 

> -----Original Message----- 
> From: Daniel Siegers [ mailto:Daniel.Siegers at bauerverlag.de] 
> Sent: Tuesday, December 17, 2002 9:02 AM 
> To: nagios-users at lists.sourceforge.net 
> Subject: [Nagios-users] compiling nsca on Solaris 2.8 
> 
> 
> Hi there, 
> 
> i ve got a problem compiling nsca on Solaris 2.8 with gcc 
> 2.95.3 20010315 (release) 
> 
> ./configure works fine, but here s the ouput of make all: 
> 
> bash-2.03# make all 
> cd ./src/; make all ; cd .. 
> make[1]: Entering directory `/usr/share/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) 
> 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 `}' 
> ../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 `}' 
> ../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 `/usr/share/src/nsca-2.1/src' 
> bash-2.03# gcc -v 
> Reading specs from 
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs 
> gcc version 2.95.3 20010315 (release) 
> 
> 
> Has anyone an idea ? 
> 
> 
> Mit freundlichen Grüßen / Kind regards 
> 
> Daniel Siegers 
> Systemadministrator 
> 
> Heinrich Bauer Dienstleistungs KG 
> Brieffach 4620 
> Burchardstraße 11 
> D-20077 Hamburg 
> 
> Telefon +49 (40)-3019-1991 
> Fax +49 (40)-3019-140-1991 
> 
> E-Mail Daniel.Siegers at Bauerverlag.de 
> 
> 


------------------------------------------------------- 
This sf.net email is sponsored by: 
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel 
http://hpc.devchannel.org/ 
_______________________________________________ 
Nagios-users mailing list 
Nagios-users at lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/nagios-users 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021218/50382641/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Daniel Siegers.vcf
Type: text/x-vcard
Size: 227 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021218/50382641/attachment.vcf>


More information about the Users mailing list