[collectd] Collectd --with-libmongoc compilation fails
Jester
jester at atlansys.com
Thu Jul 12 15:30:52 CEST 2012
Hi all,
I'm trying to compile collectd with --with-libmongoc option. Configure
script runs fine and outputs "write_mongo... yes".
Linux is CentOS 6
LibmongoC is v0.6-14
make returns the following error :
libtool: link: ( cd ".libs" && rm -f "write_http.la" && ln -s
"../write_http.la" "write_http.la" )
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DPREFIX='"/opt/collectd"'
-DCONFIGFILE='"/opt/collectd/etc/collectd.conf"'
-DLOCALSTATEDIR='"/opt/collectd/var"'
-DPKGLOCALSTATEDIR='"/opt/collectd/var/lib/collectd"'
-DPIDFILE='"/opt/collectd/var/run/collectd.pid"'
-DPLUGINDIR='"/opt/collectd/lib/collectd"'
-DPKGDATADIR='"/opt/collectd/share/collectd"' -I/usr/local/include -Wall
-Werror -g -O2 -MT write_mongodb_la-write_mongodb.lo -MD -MP -MF
.deps/write_mongodb_la-write_mongodb.Tpo -c -o
write_mongodb_la-write_mongodb.lo `test -f 'write_mongodb.c' || echo
'./'`write_mongodb.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/opt/collectd\"
-DCONFIGFILE=\"/opt/collectd/etc/collectd.conf\"
-DLOCALSTATEDIR=\"/opt/collectd/var\"
-DPKGLOCALSTATEDIR=\"/opt/collectd/var/lib/collectd\"
-DPIDFILE=\"/opt/collectd/var/run/collectd.pid\"
-DPLUGINDIR=\"/opt/collectd/lib/collectd\"
-DPKGDATADIR=\"/opt/collectd/share/collectd\" -I/usr/local/include -Wall
-Werror -g -O2 -MT write_mongodb_la-write_mongodb.lo -MD -MP -MF
.deps/write_mongodb_la-write_mongodb.Tpo -c write_mongodb.c -fPIC -DPIC
-o .libs/write_mongodb_la-write_mongodb.o
write_mongodb.c: In function 'wm_write':
write_mongodb.c:201: erreur: too few arguments to function 'mongo_insert'
I've tried with several different versions of libmongoc with same result.
If anybody could help me, I would be deeply grateful !
Cheers
Franck
More information about the collectd
mailing list