Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix 6.0.0 vpoller make error #281

Open
chises opened this issue Feb 22, 2022 · 2 comments
Open

Zabbix 6.0.0 vpoller make error #281

chises opened this issue Feb 22, 2022 · 2 comments

Comments

@chises
Copy link

chises commented Feb 22, 2022

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?

@cliobrando
Copy link
Contributor

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

@dnaeon
Copy link
Owner

dnaeon commented Mar 30, 2022

@cliobrando , do you mind submitting a PR with the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants