- edited description
monit 5.21.0 fails to compile on OS X 10.9.5
Issue #584
resolved
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)
-
reporter -
repo owner Issue
#585was marked as a duplicate of this issue. -
repo owner - changed status to resolved
Fixed: Issue
#584: fix compilation for MacOSX 10.6.x - 10.9.x.→ <<cset ab1d6b845243>>
- Log in to comment