monit-general
[Top][All Lists]
Advanced

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

[monit] Problem compiling Monit 5.0.3 on Solaris 9 SPARC


From: Tony Gunia
Subject: [monit] Problem compiling Monit 5.0.3 on Solaris 9 SPARC
Date: Thu, 9 Jul 2009 06:33:27 -0700 (PDT)

Hello,

I'm compiling Monit 5.0.3 on Solaris 9 SPARC, and receiving the following errors when running make:

# make
yacc -dvt -o y.tab.c p.y
yacc: illegal option -- o
Usage: yacc [-vVdltY] [-Q(y/n)] [-b file_prefix] [-p sym_prefix] [-P parser] file
make: *** [y.tab.c] Error 1

I've compiled Monit 4.10.1 on the same system, and didn't have this problem.  I did notice a difference between the Makefile of 4.10.1 and 5.0.3 as follows:

4.10.1:  YACCFLAGS     = -dt
5.0.3:  YACCFLAGS      = -dvt -o y.tab.c

I made the above 5.0.3 Makefile line match that of the 4.10.1, and now get this after make runs a bit:

util.c: In function `Util_printRunList':
util.c:677: parse 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.)
util.c: In function `Util_printService':
util.c:788: warning: int format, uid_t arg (arg 2)
util.c:790: warning: int format, gid_t arg (arg 2)
util.c:804: warning: int format, uid_t arg (arg 2)
util.c:806: warning: int format, gid_t arg (arg 2)
make: *** [util.o] Error 1

I'm using gcc 2.95.2, and make 3.80.  Thanks for any recommendations on how to get past the above.

Tony
address@hidden



reply via email to

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