monit 5.21.0 fails to compile on OS X 10.8.5

Issue #585 duplicate
Wade Maxfield created an issue

monit 5.21.0 fails to compile on OS X 10.8.5 with the following error:

user$ ./configure

[snip]

user$ make

[snip]

gcc -DHAVE_CONFIG_H -I. -I./src    -DDARWIN -DSYSCONFDIR="\"/usr/local/etc\"" -I./src -I./src/device -I./src/http -I./src/notification -I./src/process -I./src/protocols -I./src/ssl -I./src/terminal -I./libmonit/src   -Wno-address -Wno-pointer-sign -g -O2 -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE -std=c99 -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED -I/usr/include -c -o src/process/sysdep_DARWIN.o src/process/sysdep_DARWIN.c
src/process/sysdep_DARWIN.c: In function initprocesstree_sysdep’:
src/process/sysdep_DARWIN.c:206: error: rusage_info_current undeclared (first use in this function)
src/process/sysdep_DARWIN.c:206: error: (Each undeclared identifier is reported only once
src/process/sysdep_DARWIN.c:206: error: for each function it appears in.)
src/process/sysdep_DARWIN.c:206: error: expected ; before rusage
src/process/sysdep_DARWIN.c:207: warning: implicit declaration of function proc_pid_rusage
src/process/sysdep_DARWIN.c:207: error: RUSAGE_INFO_CURRENT undeclared (first use in this function)
src/process/sysdep_DARWIN.c:207: error: rusage_info_t undeclared (first use in this function)
src/process/sysdep_DARWIN.c:207: error: expected expression before ) token
src/process/sysdep_DARWIN.c:212: error: rusage undeclared (first use in this function)
make[2]: *** [src/process/sysdep_DARWIN.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Comments (1)

  1. Log in to comment