monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Problem compiling Monit 5.0.3 on Solaris 9 SPARC


From: Martin Pala
Subject: Re: [monit] Problem compiling Monit 5.0.3 on Solaris 9 SPARC
Date: Thu, 09 Jul 2009 22:37:54 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Hi,

you can ignore these warnings ... uid_t and gid_t are both 32-bits (long for LP32 and int for LP64) and were changed in Solaris express to more explicit uint32_t.

Martin



Tony Gunia wrote:
Well, I bot a little further now. I updated GCC to 3.4.6, installed Bison 2.4.1, and updated m4 to 1.4.12. Compile appeared to finish, but still see this:

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)
util.c: In function `Util_monitId':
util.c:1290: warning: int format, pid_t arg (arg 5)
...
p.y: In function `describeAction':
p.y:3343: warning: int format, uid_t arg (arg 4)
p.y:3345: warning: int format, gid_t arg (arg 4)
...
-g -O2 -Wall -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS external/strftime.c -o external/strftime.o gcc alert.o collector.o control.o daemonize.o env.o event.o file.o gc.o getloadavg.o http.o log.o md5.o monitor.o net.o process.o sendmail.o sha.o signal.o socket.o spawn.o ssl.o state.o status.o util.o validate.o xmalloc.o xml.o device/device_common.o http/base64.o http/cervlet.o http/engine.o http/processor.o process/process_common.o protocols/apache_status.o protocols/clamav.o protocols/default.o protocols/dns.o protocols/dwp.o protocols/ftp.o protocols/generic.o protocols/http.o protocols/imap.o protocols/ldap2.o protocols/ldap3.o protocols/lmtp.o protocols/mysql.o protocols/nntp.o protocols/ntp3.o protocols/pgsql.o protocols/pop.o protocols/postfix_policy.o protocols/protocol.o protocols/rdate.o protocols/rsync.o protocols/sip.o protocols/smtp.o protocols/ssh.o protocols/tns.o device/sysdep_SOLARIS.o process/sysdep_SOLARIS.o y.tab.o lex.yy.o external/strftime.o -lfl -lpthread -lpam -lcrypt -lresolv -lnsl -lsocket -lkstat -o monit
#

Here's my configure:

./configure --prefix=/usr/local/monit-5.0.3 \
            --without-ssl \
            --without-largefiles
Configure runs fine:

monit has been configured with the following options:
                Architecture: SOLARIS
                 SSL support: disabled
         large files support: disabled
Compiler flags: -g -O2 -Wall -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS Linker flags: -lpthread -lpam -lcrypt -lresolv -lnsl -lsocket -lkstat
           pid file location: /var/run


Getting there, but no cigar yet.  Thanks for any help on this!

Tony
address@hidden


------------------------------------------------------------------------
*From:* Tony Gunia <address@hidden>
*To:* address@hidden
*Sent:* Thursday, July 9, 2009 8:33:27 AM
*Subject:* [monit] Problem compiling Monit 5.0.3 on Solaris 9 SPARC

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



------------------------------------------------------------------------

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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