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

getloadavg not available in uclibc - build fails

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 1.4.3
    • Agent (G)
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: