monit-general
[Top][All Lists]
Advanced

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

Re: Monit 4.6 OS X build problems w/ vm.h


From: Jan-Henrik Haukeland
Subject: Re: Monit 4.6 OS X build problems w/ vm.h
Date: Thu, 15 Dec 2005 09:57:07 +0100

Use './configure --without-resource' to build monit on Tiger until the monit code is updated for Tiger. You will miss the ability to run the if-resource tests, but otherwise monit works well on Tiger.

On 14. des. 2005, at 01.07, John Clements wrote:

The out-of-the box 4.6 distribution fails to compile on my OS X machine, and I'm hoping that there's an easy fix.

Here's the tail of the make breakage:

pcp012640pcs:/tmp/monit-4.6 clements$ make
gcc -c -DDARWIN -I. -I./device -I./http -I./process -I./protocols - g -O2 -Wall -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED process/sysdep_DARWIN.c -o process/sysdep_DARWIN.o
process/sysdep_DARWIN.c: In function 'initprocesstree_sysdep':
process/sysdep_DARWIN.c:174: error: 'struct vmspace' has no member named 'vm_rssize'
process/sysdep_DARWIN.c: In function 'used_system_memory_sysdep':
process/sysdep_DARWIN.c:212: warning: implicit declaration of function 'mach_host_self'
make: *** [process/sysdep_DARWIN.o] Error 1
pcp012640pcs:/tmp/monit-4.6 clements$ uname -a
Darwin pcp012640pcs.calpoly.edu 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc


I took a look at the definition of the vmspace struct, and sure enough, it doesn't have a vm_rssize field. In fact, the whole structure looks deprecated:

#ifndef _SYS_VM_H
#define _SYS_VM_H

#include <sys/appleapiopts.h>
#include <sys/cdefs.h>

/* just to keep kinfo_proc happy */
/* NOTE: Pointer fields are size variant for LP64 */
struct vmspace {
        int32_t dummy;
        caddr_t dummy2;
        int32_t dummy3[5];
        caddr_t dummy4[3];
};



#endif /* _SYS_VM_H */



This looks like a configure-script kind of problem. Here's the tail of the configure output on my system:

monit has been configured with the following options:
                Architecture: DARWIN
                 SSL support: enabled
       SSL include directory: /usr/include
       SSL library directory: /usr/lib
         resource monitoring: enabled
               resource code: sysdep_DARWIN.c
Compiler flags: -g -O2 -Wall -DREENTRANT -no-cpp- precomp -DNEED_SOCKLEN_T_DEFINED Linker flags: -lpthread -lresolv -framework System -multiply_defined suppress -lkvm -lssl -lcrypto
           pid file location: /var/run



... Any ideas?  Anyone gotten Monit 4.6 to compile under recent OS X?

Thanks in advance,

John Clements




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

--
Jan-Henrik Haukeland
Mobil +47 97141255





reply via email to

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