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

Zabbix agent for Windows calls an undefined function in mutexs.c.

    XMLWordPrintable

Details

    • Incident report
    • Resolution: Fixed
    • Major
    • None
    • 1.8.3
    • Agent (G)
    • None
    • Windows

    Description

      When I was compiling Zabbix agent for Windows, I got a following message.
      /////////////////////////////////////////////////////////////////////////////////////////////
      ..\..\..\src\libs\zbxsys\mutexs.c(71) : warning C4013: 'strerror_from_system' undefined; assuming extern returning int
      The compiler encountered a call to an undefined function.
      /////////////////////////////////////////////////////////////////////////////////////////////

      Zabbix uses 'strerror_from_system()' function without including log.h in mutexs.c.
      If CreateMutex() failed, Zabbix agent will crash.
      Following line is needed in mutexs.c.
      /////////////////////////////////////////////////////////////////////////////////////////////
      #include "log.h"
      /////////////////////////////////////////////////////////////////////////////////////////////

      Attachments

        Activity

          People

            Unassigned Unassigned
            tsuzuki Takanori Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: