[collectd] Issues compiling 5.2.0 on centos 6.x with redis support

Javier Frias jfrias at gmail.com
Tue Dec 11 01:09:39 CET 2012


Using the same options i've used to compile 5.1 and 5.1.1 successfully, I
keep hitting the following compile time error:

libtool: link: ranlib .libs/protocols.a
libtool: link: ( cd ".libs" && rm -f "protocols.la" && ln -s "../
protocols.la" "protocols.la" )
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-DPREFIX='"/usr"' -DCONFIGFILE='"/etc/collectd.conf"'
-DLOCALSTATEDIR='"/usr/var"' -DPKGLOCALSTATEDIR='"/usr/var/lib/collectd"'
-DPIDFILE='"/usr/var/run/collectd.pid"' -DPLUGINDIR='"/usr/lib64/collectd"'
-DPKGDATADIR='"/usr/share/collectd"'  -Wall -Werror
-DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL' -MT redis_la-redis.lo -MD -MP -MF
.deps/redis_la-redis.Tpo -c -o redis_la-redis.lo `test -f 'redis.c' || echo
'./'`redis.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/usr\"
-DCONFIGFILE=\"/etc/collectd.conf\" -DLOCALSTATEDIR=\"/usr/var\"
-DPKGLOCALSTATEDIR=\"/usr/var/lib/collectd\"
-DPIDFILE=\"/usr/var/run/collectd.pid\" -DPLUGINDIR=\"/usr/lib64/collectd\"
-DPKGDATADIR=\"/usr/share/collectd\" -Wall -Werror
"-DLT_LAZY_OR_NOW=RTLD_LAZY|RTLD_GLOBAL" -MT redis_la-redis.lo -MD -MP -MF
.deps/redis_la-redis.Tpo -c redis.c  -fPIC -DPIC -o .libs/redis_la-redis.o
cc1: warnings being treated as errors
redis.c: In function 'redis_init':
redis.c:232: error: missing braces around initializer
redis.c:232: error: (near initialization for 'rn.passwd')
redis.c:232: error: overflow in implicit constant conversion
redis.c:233: error: overflow in implicit constant conversion
redis.c:233: error: initialization makes integer from pointer without a cast
make[3]: *** [redis_la-redis.lo] Error 1


using redis.c from 5.1.1 or 5.1.0 I'm able to compile 5.2.0 successfully,
so I'm assuming something has changed. Has anyone seen this issue or have
any suggestions?

Thanks,

-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20121210/a3539ce9/attachment.html>


More information about the collectd mailing list