Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-275

getloadavg not available in uclibc - build fails

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.4.3
    • None
    • Agent (G)
    • None
    • Linux with uclibc

    Description

      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.

      Attachments

        Activity

          People

            alexei Alexei Vladishev
            nermal0 Christoph Dwertmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: