Hi, I have been trying to compile Collectd with libmodbus support. I am using version 4.10.2 of Collectd on a debian box.
Initially I tried against the latest unstable version of libmodbus, 4.9.2 but found that running configure of collectd did not find the modbus libraries unless I used 'force'. Switching to libmodbus 2.0.3 and the configure run found everything okay, but the compile is resulting in: /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DPREFIX='"/usr/local/collectd"' -DCONFIGFILE='"/usr/local/collectd/etc/collectd.conf"' -DLOCALSTATEDIR='"/usr/local/collectd/var"' -DPKGLOCALSTATEDIR='"/usr/local/collectd/var/lib/collectd"' -DPIDFILE='"/usr/local/collectd/var/run/collectd.pid"' -DPLUGINDIR='"/usr/local/collectd/lib/collectd"' -DPKGDATADIR='"/usr/local/collectd/share/collectd"' -Wall -Werror -I/usr/local/include -g -O2 -MT modbus_la-modbus.lo -MD -MP -MF .deps/modbus_la-modbus.Tpo -c -o modbus_la-modbus.lo `test -f 'modbus.c' || echo './'`modbus.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/usr/local/collectd\" -DCONFIGFILE=\"/usr/local/collectd/etc/collectd.conf\" -DLOCALSTATEDIR=\"/usr/local/collectd/var\" -DPKGLOCALSTATEDIR=\"/usr/local/collectd/var/lib/collectd\" -DPIDFILE=\"/usr/local/collectd/var/run/collectd.pid\" -DPLUGINDIR=\"/usr/local/collectd/lib/collectd\" -DPKGDATADIR=\"/usr/local/collectd/share/collectd\" -Wall -Werror -I/usr/local/include -g -O2 -MT modbus_la-modbus.lo -MD -MP -MF .deps/modbus_la-modbus.Tpo -c modbus.c -fPIC -DPIC -o .libs/modbus_la-modbus.o modbus.c: In function 'mb_init_connection': modbus.c:296: error: too few arguments to function 'modbus_init_tcp' cc1: warnings being treated as errors modbus.c: In function 'mb_read_data': modbus.c:371: error: passing argument 5 of 'read_holding_registers' from incompatible pointer type make[3]: *** [modbus_la-modbus.lo] Error 1 make[3]: Leaving directory `/d0/build/collectd-4.10.2/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/d0/build/collectd-4.10.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/d0/build/collectd-4.10.2/src' make: *** [all-recursive] Error 1 Is anyone running modbus support with Collect and able to let me know what version of libmodbus they are using? Thanks, Matt _______________________________________________ collectd mailing list collectd@verplant.org http://mailman.verplant.org/listinfo/collectd