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

getloadavg not available in uclibc - build fails

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.3
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      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

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

              Dates

              Created:
              Updated:
              Resolved: