Fixed the compilation for MacOS 10.5.x, you can test the development snapshot if you want:
wget https://bitbucket.org/tildeslash/monit/get/master.tar.gz tar -xzf master.tar.gz cd tildeslash* ./bootstrap ./configure make > On 20 Apr 2017, at 15:04, Martin Pala <[email protected]> wrote: > > Thanks for data. > > We compile it on MacOSX Server 10.6.8, the MNT_CPROTECT is defined in the > /usr/include/sys/mount.h file: > > $ grep -r MNT_CPROTECT /usr/include/ 2>/dev/null > /usr/include/sys/mount.h:#define MNT_CPROTECT 0x00000080 /* file > system supports content protection */ > > If you build for 10.6 SDK, it should work fine. > > If you try to build for older MacOSX SDK version (such as 10.5.x) using > CFLAGS -isysroot and LDFLAGS -syslibroot, then it may fail - it seems the > MNT_CPROTECT is not defined in MacOSX10.5.sdk > > > >> On 20 Apr 2017, at 14:35, Lutz Mader <[email protected]> wrote: >> >> Sorry, >> I try to build it myself, after reading >> >>> Fixed: Issue #584: monit 5.21.0 fails to compile on OS X 10.9.5 >> >> but I can't. With Mac OS X 10.6 I got >> >> src/device/sysdep_DARWIN.c:102: warning: implicit declaration of >> function ‘DADiskCreateFromVolumePath’ >> src/device/sysdep_DARWIN.c:102: warning: initialization makes pointer >> from integer without a cast >> src/device/sysdep_DARWIN.c: In function ‘_filesystemFlagsToString’: >> src/device/sysdep_DARWIN.c:187: error: ‘MNT_CPROTECT’ undeclared (first >> use in this function) >> src/device/sysdep_DARWIN.c:187: error: (Each undeclared identifier is >> reported only once >> src/device/sysdep_DARWIN.c:187: error: for each function it appears in.) >> make[2]: *** [src/device/sysdep_DARWIN.o] Error 1 >> make[1]: *** [all-recursive] Error 1 >> make: *** [all] Error 2 >> >> I take a look to the code, but the code in "./device/sysdep_DARWIN.c" >> and "./process/sysdep_DARWIN.c" doesn't fit to Mac OS X 10.6. >> >> Perhaps you can build monit on 10.9, but I can't build monit on 10.6. >> >> I'm so sorry, >> Lutz >> >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
