Some filesystem mount flags are not available

Issue #991 resolved
Lutz Mader created an issue

Hello Tildeslash,
nice to see some more/new filesystem mount flags are handled with monit 5.28.1 for MacOS, see src/device/sysdep_DARWIN.c.
Unfortunately some of the filesystem mount flags are very new, became available with MacOS 10.14.

You can not build monit for old MacOS versions therefore.

src/device/sysdep_DARWIN.c:182:18: error: use of undeclared identifier
      'MNT_REMOVABLE'
                {MNT_REMOVABLE, "removable"},
                 ^
src/device/sysdep_DARWIN.c:206:18: error: use of undeclared identifier
      'MNT_SNAPSHOT'
                {MNT_SNAPSHOT, "snapshot"},
                 ^
src/device/sysdep_DARWIN.c:207:18: error: use of undeclared identifier
      'MNT_STRICTATIME'
                {MNT_STRICTATIME, "strictatime"}
                 ^

With some additional checks you can build monit for old MacOS version again,
see my pull request for a patch to fix this.

With regards,
Lutz

Comments (1)

  1. Tildeslash repo owner

    Fixed: Issue #991: MacOS: Monit didn't compie on MacOS 10.13 or older, as mount flags that were added in Monit 5.28.1 were not defined. Thanks to Lutz Mader. And version++

    → <<cset 51bd61409ea6>>

  2. Log in to comment