[Top][All Lists]

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

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

From: Rory Toma
Subject: Re: Monit 4.6 OS X build problems w/ vm.h
Date: Wed, 14 Dec 2005 16:36:30 -0800
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Yes it did. Hopefully after the new year I can take the darwin 8 top sources and modify it to work.

Martin Pala wrote:

... i have tested monit-4.6 just on Darwin 7.8 ... it works well. It seems that the Darwin 8.x introduced incompatible change ...


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 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:

To unsubscribe:

reply via email to

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