monit 5.21.0 fails to compile on OS X 10.9.5

Issue #584 resolved
Wade Maxfield created an issue

monit 5.21.0 fails to compile on OS X 10.9.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:206:25: error: unknown type name 'rusage_info_current'; did you mean 'rusage_info_t'?
                        rusage_info_current rusage;
                        ^~~~~~~~~~~~~~~~~~~
                        rusage_info_t
/usr/include/sys/resource.h:190:15: note: 'rusage_info_t' declared here
typedef void *rusage_info_t;
              ^
src/process/sysdep_DARWIN.c:212:58: error: member reference base type 'rusage_info_t' (aka 'void *') is not a structure
      or union
                                pt[i].read.bytes = rusage.ri_diskio_bytesread;
                                                   ~~~~~~^~~~~~~~~~~~~~~~~~~~
src/process/sysdep_DARWIN.c:213:59: error: member reference base type 'rusage_info_t' (aka 'void *') is not a structure
      or union
                                pt[i].write.bytes = rusage.ri_diskio_byteswritten;
                                                    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
make[2]: *** [src/process/sysdep_DARWIN.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Comments (3)

  1. Log in to comment