LMacPhail / zabbix-history-influxdb

A loadable module for zabbix which will export history data to an InfluxDB repository.
GNU General Public License v2.0
44 stars 15 forks source link

FreeBSD build error. #19

Open devosalain opened 2 years ago

devosalain commented 2 years ago

gmake

gcc -fPIC -shared -o dist/history_influxdb.so ./src/*.c -I../../../include
./src/history_influxdb.c:31:10: fatal error: common.h: No such file or directory
   31 | #include "common.h"
      |          ^~~~~~~~~~
compilation terminated.
In file included from ./src/load_config.c:6:
./src/load_config.h:5:10: fatal error: sysinc.h: No such file or directory
    5 | #include "sysinc.h"
      |          ^~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:2: history_influxdb] Error 1
i-ky commented 2 years ago

@devosalain, are you trying to compile the module on its own? Instructions say that you have to put module sources inside Zabbix source tree:

Get a copy of this module's sources - run git clone inside of the zabbix sources under src/modules

I would also note that you may suffer from ZBX-21303 if you are compiling against Zabbix 6.2.