-
Type:
Problem report
-
Resolution: Fixed
-
Priority:
Major
-
Affects Version/s: 6.2.2, 6.2.3, 6.2.4rc1
-
Component/s: Agent (G), Proxy (P), Server (S)
-
Environment:FreeBSD 12.3 amd64, clang 10.0.1
-
Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023)
-
0.125
Steps to reproduce:
Try to build a loadable module:
- run ./configure in the root of Zabbix source tree
- replace gcc to ${CC} in src/modules/dummy/Makefile
- run make inside src/modules/dummy/
Result:
zabbix 6.2.0-6.2.4rc1:
# make cc -fPIC -shared -o dummy.so dummy.c -I../../../include In file included from dummy.c:25: ../../../include/module.h:23:10: fatal error: 'zbxtypes.h' file not found #include "zbxtypes.h" ^~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop.
Expected:
zabbix 6.0.0-6.0.9, 6.4.0beta1:
# make
cc -fPIC -shared -o dummy.so dummy.c -I../../../include -I../../../include/common