Ad Widget

Collapse

Error during Zabbix Agent2 compilation from sources

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • david.assigbi
    Junior Member
    • Nov 2022
    • 2

    #1

    Error during Zabbix Agent2 compilation from sources

    Hello here,
    I am trying to build a plugin that is destined to work specifically on Windows systems.
    So as a starting point I wanted to rebuild the agent from sources before extending it with my code but while following the guide at https://www.zabbix.com/documentation...zabbix-agent-2, I am having an error.

    The error that is popping up is:
    Code:
    c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw> mingw32-make PCRE=c:\dev\pcre OPENSSL=c:\dev\openssl
    windres.exe c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\build\win32\project\resource.rc  --input-format=rc -O coff --target=pe-x86-64 -D _WINDOWS -D ZABBIX_AGENT2 -o c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\src\go\cmd\zabbix_agent2\resource.syso
    windres.exe: c:\\Users\\<my-username>\\Documents\\zabbix-6.2.2\\build\\mingw\\..\\..\\build\\win32\\project\\resource.rc:75: syntax error
    mingw32-make: *** [Makefile:188: c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\src\go\cmd\zabbix_agent2\resource.syso] Error 1
    This appears to be a syntax error in the resource.rc file but after googling a bit a have no idea on how to fix the file.

    If anyone can provide advice or help of any kind that would be much appreciated cause I am kind of stuck right now and can not move forward in my work cause of this compilation issue.

    Thanks upfront to everyone !

    Link of the resources I used:
    I did a
    Code:
    git clone https://git.zabbix.com/scm/zbx/zabbix.git --branch 6.2.2 --depth 1 --single-branch zabbix-6.2.2
    from this guide (https://www.zabbix.com/documentation...ilt_in_plugins)
    Go: https://dl.google.com/go/go1.19.3.windows-amd64.msi
    MniGW compiler: https://jztkft.dl.sourceforge.net/pr...-rt_v6-rev0.7z
    CMAKE: https://github.com/Kitware/CMake/rel...ows-x86_64.msi
    OpenSSL: https://netix.dl.sourceforge.net/pro...64-v10.0.0.zip
    PCRE: https://altushost-swe.dl.sourceforge.../pcre-8.45.zip

    Last edited by david.assigbi; 10-11-2022, 16:30.
Working...