Ad Widget

Collapse

Zabbix agent + MinGW

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Padawan.AVT
    Junior Member
    • May 2009
    • 26

    #1

    Zabbix agent + MinGW

    Hi! I'm trying recompile zabbix agent for Windows environment using MinGW gcc 4.4.0 compiler, but compilation fails at this line:

    Code:
    Making all in zbxlog
    make[3]: Entering directory `/d/for_deployment/zabbix-1.6.4/src/libs/zbxlog'
    gcc -DHAVE_CONFIG_H -I. -I../../../include     -g -O2   -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
    log.c: In function 'zabbix_open_log':
    log.c:111: error: 'LOG_PID' undeclared (first use in this function)
    log.c:111: error: (Each undeclared identifier is reported only once
    log.c:111: error: for each function it appears in.)
    log.c:111: error: 'LOG_USER' undeclared (first use in this function)
    log.c:112: error: 'LOG_WARNING' undeclared (first use in this function)
    log.c: In function '__zbx_zabbix_log':
    log.c:360: error: 'LOG_DEBUG' undeclared (first use in this function)
    make[3]: *** [log.o] Error 1
    make[3]: Leaving directory `/d/for_deployment/zabbix-1.6.4/src/libs/zbxlog'
    Configuration is default:
    Code:
    sh ./configure --prefix=/d/zabbix_agent --enable-static --enable-agent
    Any clues ?
    Last edited by Padawan.AVT; 24-07-2009, 08:13.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    I'm going to take a stab at this, and may be wrong. It looks like the log.h include file may not be including correctly. Have you altered the directory structure at all?

    Go to the directory containing the log.c file, normally it's found src/libs/zbxlib. When you are in that directory what happens when you run the command "ls ../../../include" (minus the quotes)? You should see log.h in that directory.

    Another idea is that since MinGW is a GNU Compiler for Windows you might be running into / vs \ path delimiter problems.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    Working...