[ZBX-2910] Zabbix agent for Windows calls an undefined function in mutexs.c. Created: 2010 Aug 20  Updated: 2017 May 30  Resolved: 2010 Aug 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.3
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Takanori Suzuki Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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"
/////////////////////////////////////////////////////////////////////////////////////////////



 Comments   
Comment by Aleksandrs Saveljevs [ 2010 Aug 20 ]

This has been fixed in the development branch for ZBX-2008. I will merge this and the other changes made in that branch into 1.8 on Monday.

Comment by Takanori Suzuki [ 2010 Aug 20 ]

Oh, I overlooked the change log.
Thank you.

Comment by Aleksandrs Saveljevs [ 2010 Aug 30 ]

Changes made in ZBX-2008 development branch (stripped of "Windows Eventing"-related stuff) have been merged into pre-1.8.4 in r14178.

Generated at Wed Apr 24 03:40:50 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.