[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] gmake error

From: Martin Pala
Subject: Re: [monit] gmake error
Date: Thu, 8 Oct 2009 22:02:29 +0200

Hello Len,

just swap lines 676 and 677 so it will look like this:

675:  if(Run.mailservers) {
676:    MailServer_T mta= Run.mailservers;
677:    printf(" %-18s = ", "Mail server(s)");

The old compiler in freebsd 4.10 has most probably problem with variable declaration vs. instruction order inside block.

diff patch:

Index: util.c
--- util.c      (revision 32)
+++ util.c      (working copy)
@@ -673,8 +673,8 @@

   if(Run.mailservers) {
+    MailServer_T mta= Run.mailservers;
     printf(" %-18s = ", "Mail server(s)");
-    MailServer_T mta= Run.mailservers;
     for(mta= Run.mailservers; mta; mta= mta->next)

On Oct 8, 2009, at 7:01 PM, Len Conrad wrote:

uname -a

gmake -v
GNU Make 3.80


./configure seemed to go well, but:


gcc -c -DFREEBSD -DSYSCONFDIR="\"/usr/local/etc\"" -I. -I./device - I./http -I./process -I./protocols -g -O2 -Wall -D _REENTRANT -I/usr/ include util.c -o util.o
util.c: In function `Util_printRunList':
util.c:677: syntax error before `mta'
util.c:678: `mta' undeclared (first use in this function)
util.c:678: (Each undeclared identifier is reported only once
util.c:678: for each function it appears in.)
gmake: *** [util.o] Error 1

We intend to upgrade to fbsd 7.2 but if this gmake error can be fixed easily in the meantime, thanks


To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]