[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:
--8<--
675: if(Run.mailservers) {
676: MailServer_T mta= Run.mailservers;
677: printf(" %-18s = ", "Mail server(s)");
--8<--
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)
printf("%s:%d%s%s",
mta->host,
On Oct 8, 2009, at 7:01 PM, Len Conrad wrote:
uname -a
FreeBSD mx4.virtualconnect.net 4.10-RELEASE
gmake -v
GNU Make 3.80
monit-5.0.3
./configure seemed to go well, but:
gmake
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
Len
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general