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.

    Details

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

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

              Dates

              • Created:
                Updated:
                Resolved: