Open chises opened 2 years ago
Edit vpoller.c
Goto line 117
Add: ZBX_CFG_NO_EXIT_FAILURE
Edit like this:
parse_cfg_file(MODULE_CONFIG_FILE, cfg, ZBX_CFG_FILE_OPTIONAL, ZBX_CFG_STRICT, ZBX_CFG_NO_EXIT_FAILURE);
Compile
@cliobrando , do you mind submitting a PR with the fix?
Hello,
with zabbix 6.0.0 source we are not able to create the *so.
/usr/share/zabbix-6.0.0/src/modules/vpoller-module# make cc -fPIC -shared -o vpoller.so vpoller.c -I../../../include -I/usr/local/include -L/usr/local/lib -lzmq vpoller.c: In function ‘zbx_module_load_config’: vpoller.c:117:3: error: too few arguments to function ‘parse_cfg_file’ parse_cfg_file(MODULE_CONFIG_FILE, cfg, ZBX_CFG_FILE_OPTIONAL, ZBX_CFG_STRICT); ^~~~~~~~~~~~~~ In file included from vpoller.c:33: ../../../include/cfg.h:78:5: note: declared here int parse_cfg_file(const char *cfg_file, struct cfg_line *cfg, int optional, int strict, int noexit); ^~~~~~~~~~~~~~ make: *** [Makefile:2: vpoller] Fehler 1
any ideas how to fix this?