Ad Widget

Collapse

netbsd 3.0 compilation errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • makini
    Member
    • Jul 2006
    • 59

    #1

    netbsd 3.0 compilation errors

    Hi,

    tried compiling the agent (v1.1) on netbsd 3.0 & got this:

    Code:
    inodes.c: In function `get_fs_inodes_stat':
    inodes.c:32: error: storage size of `s' isn't known
    gmake[5]: *** [inodes.o] Error 1
    gmake[5]: Leaving directory `/root/temp/zabbix-1.1/src/libs/zbxsysinfo/netbsd'
    gmake[4]: *** [all-recursive] Error 1
    gmake[4]: Leaving directory `/root/temp/zabbix-1.1/src/libs/zbxsysinfo/netbsd'
    gmake[3]: *** [all-recursive] Error 1
    gmake[3]: Leaving directory `/root/temp/zabbix-1.1/src/libs/zbxsysinfo'
    gmake[2]: *** [all-recursive] Error 1
    gmake[2]: Leaving directory `/root/temp/zabbix-1.1/src/libs'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/root/temp/zabbix-1.1/src'
    gmake: *** [all-recursive] Error 1
    found a similar problem on freebsd in that post...

    but adding these to src/libs/zbxsysinfo/netbsd/inodes.c didn't help:

    #include <sys/param.h>
    #include <sys/mount.h>

    suggestions?
    Last edited by makini; 07-08-2006, 16:04. Reason: correction...
  • makini
    Member
    • Jul 2006
    • 59

    #2
    tried the latest 1.1.1...

    same thing with the latest 1.1.1...

    P.S.
    shame there's no real effort to make at least the agent run on such a stable OSS platform.
    Last edited by makini; 07-08-2006, 16:03. Reason: correction...

    Comment

    • BocketyWheel
      Junior Member
      • Sep 2006
      • 1

      #3
      This has to do with NetBSD 3's move to the statvfs from statfs. I was able to compile by simply changing both references in inode.c from statfs to statvfs. though I don't know how this will effect how the agent thinks it is doing it's job.. I get some odd numbers in my free space (& total disk space) on this server.. But I also get odd disk information on a linux machine I have the agent running on as well. (I've just started with zabbix)

      Comment

      • makini
        Member
        • Jul 2006
        • 59

        #4
        It worked...

        Thanq BocketyWheel,
        it worked!

        Comment

        Working...