getloadavg not available in uclibc - build fails

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 1.4.3
    • Component/s: Agent (G)
    • None
    • Environment:
      Linux with uclibc

      I'm building zabbix for openwrt which uses uclibc. The architecture is correctly identified by Zabbix as Linux. In the file src/libs/zbxsysinfo/linux/cpu.c it is assumed that the getloadavg() function is always available in Linux, checks (#ifdef HAVE_GETLOADAVG) have been removed.

      getloadavg() is not available in uclibc, so I'd suggest you put those checks back in otherwise it doesn't compile for uclibc. Using cpu.c from the unknown arch dir works for me.

            Assignee:
            Alexei Vladishev
            Reporter:
            Christoph Dwertmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: