Building master on Ubuntu 14.04 fails with 'struct IOStatistics_T' has no member named 'time'

Issue #548 resolved
Former user created an issue

I cloned monit from master and tried to build it:

$ ./boostrap
$ ./configure
$ make

However, I got the following error:

src/device/sysdep_LINUX.c: In function '_getNfsDiskActivity':
src/device/sysdep_LINUX.c:187:86: error: 'struct IOStatistics_T' has no member named 'time'
                                         Statistics_update(&(inf->priv.filesystem.read.time), now, time / 1000.); // us -> ms
                                                                                      ^
src/device/sysdep_LINUX.c:191:87: error: 'struct IOStatistics_T' has no member named 'time'
                                         Statistics_update(&(inf->priv.filesystem.write.time), now, time / 1000.); // us -> ms
                                                                                       ^
src/device/sysdep_LINUX.c: In function '_getSysfsBlockDiskActivity':
src/device/sysdep_LINUX.c:218:62: error: 'struct IOStatistics_T' has no member named 'time'
                 Statistics_update(&(inf->priv.filesystem.read.time), now, readTime);
                                                              ^
src/device/sysdep_LINUX.c:221:63: error: 'struct IOStatistics_T' has no member named 'time'
                 Statistics_update(&(inf->priv.filesystem.write.time), now, writeTime);
                                                               ^
make[2]: *** [src/device/sysdep_LINUX.o] Error 1
make[2]: Leaving directory `/xxx/monit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/xxx/monit'
make: *** [all] Error 2

I use Ubuntu 14.04.

I tried several commits with git bisect to track down, when this broke, and it seems to be the last commit (175a319e02d7f828cd110114580b1d607ff55f65), however, I don't know C, so I can't judge, where the problem might be. If you need more information, feel free to ask and I'll provide if I can :)

Thanks for this great tool!

Comments (1)

  1. Log in to comment