From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Zoong PHAM Newsgroups: gmane.os.tru64.managers Subject: Problem compiling Nagios-1.2 on 5.1B PK3 Date: Fri, 26 Nov 2004 16:25:54 +1100 Organization: Zoong IT Consulting Message-ID: <20041126052554.GF26013@onion.dmz.zoong.com> Reply-To: zoong@zoong.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101446854 5401 80.91.229.6 (26 Nov 2004 05:27:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2004 05:27:34 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Nov 26 06:27:29 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CXYdl-00032M-00 for ; Fri, 26 Nov 2004 06:27:29 +0100 Original-Received: (qmail 6372 invoked by uid 5); 26 Nov 2004 05:26:42 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6179 invoked by uid 49501); 26 Nov 2004 05:26:41 -0000 Original-Received: from zoong@zoong.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-2.6/5.0):. Processed in 3.443658 secs); 26 Nov 2004 05:26:41 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 26 Nov 2004 05:26:37 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I7R00IBBTSC90@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 26 Nov 2004 00:26:37 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I7R00002TRL81@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 26 Nov 2004 00:26:13 -0500 (EST) Original-Received: from onion.dmz.zoong.com (203-213-96-120-nme-ts1-2600.tpgi.com.au [203.213.96.120]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTPS id <0I7R00M1PTREYT@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 26 Nov 2004 00:26:09 -0500 (EST) Original-Received: from onion.dmz.zoong.com (zoong@localhost.dmz.zoong.com [127.0.0.1]) by onion.dmz.zoong.com (8.12.11/8.12.11) with ESMTP id iAQ5PtOR020639 for ; Fri, 26 Nov 2004 16:25:55 +1100 (EST) Original-Received: (from zoong@localhost) by onion.dmz.zoong.com (8.12.11/8.12.11/Submit) id iAQ5PsCZ023860 for tru64-unix-managers@ornl.gov; Fri, 26 Nov 2004 16:25:54 +1100 (EST) Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline User-Agent: Mutt/1.4.2i Mobile: +61-408036911 WWW: http://www.zoong.com X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov X-SMTP-Vilter-Version: 1.1.5 X-SMTP-Vilter-Backend: vilter-spamd Xref: main.gmane.org gmane.os.tru64.managers:7819 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7819 When I tried to compile (with the default C compiler) Nagios-1.2 on my 5.1B box, I got the following error: nagios.c: cc: Error: nagios.c, line 303: In the initializer for long_options, an array's element type is incomplete, which precludes its initialization. (incompelinit) {"help",no_argument,0,'h'}, ----------------^ ../xdata/xrddefault.c: ../common/comments.c: ../xdata/xcddefault.c: ../common/objects.c: ../xdata/xodtemplate.c: cc: Warning: ../xdata/xodtemplate.c, line 5836: In this statement, this argument to snprintf is of "int" type and is not appropriate for the conversion specifier "%s". The value will be formatted in an unintended manner. (outstringtype) snprintf(temp_buffer,sizeof(temp_buffer)-1,"Error: Could not add contactgroup '%s' to hostgroup escalation (config file '%s', line %d)\n",xodtemplate_config_file_name(this_hostgroupescalation->_config_file),this_hostgroupescalation->_start_line); ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^ cc: Warning: ../xdata/xodtemplate.c, line 5836: In this statement, the number of conversion specifiers to snprintf exceeds the number of values to be converted. Conversion specifiers from "%d" onward will process meaningless and perhaps invalid data. (outtoofew) snprintf(temp_buffer,sizeof(temp_buffer)-1,"Error: Could not add contactgroup '%s' to hostgroup escalation (config file '%s', line %d)\n",xodtemplate_config_file_name(this_hostgroupescalation->_config_file),this_hostgroupescalation->_start_line); -------------------------------------------------------------------^ cc: Warning: ../xdata/xodtemplate.c, line 2798: The scalar variable "host_name" is fetched but not initialized. And there may be other such fetches of this variable that have not been reported in this compilation. (uninit1) free(host_name); -------------------------------------^ ../common/statusdata.c: ../xdata/xsddefault.c: ../xdata/xpddefault.c: ../common/downtime.c: cc: Warning: ../common/downtime.c, line 673: The scalar variable "result" is fetched but not initialized. And there may be other such fetches of this variable that have not been reported in this compilation. (uninit1) return result; ---------------^ ../xdata/xdddefault.c: *** Exit 1 Stop. *** Exit 1 Stop. $ Here is how I configured it: export PATH=$PATH:/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/ucb:/usr/bin/X11 ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-grp=nagios Does anyone know what's wrong here? Thanks, Zoong