[collectd] curl_json fails to build against YAJL-2.0.x

Johan Bergström bugs at bergstroem.nu
Mon Jul 4 10:54:10 CEST 2011


Hello!

There's some api changes in YAJL 2.0.x that breaks collectd 5.0.0 and latest master from git:

make[3]: Entering directory `collectd-5.0.0/src'
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/usr"' -DCONFIGFILE='"/etc/collectd.conf"' -DLOCALSTATEDIR='"/var"' -DPKGLOCALSTATEDIR='"/var/lib/collectd"' -DPIDFILE='"/var/run/collectd.pid"' -DPLUGINDIR='"/usr/lib64/collectd"' -DPKGDATADIR='"/usr/share/collectd"'  -Wall  -O2 -pipe -c -o cpu_la-cpu.lo `test -f 'cpu.c' || echo './'`cpu.c
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall  -O2 -pipe -c -o curl_json_la-curl_json.lo `test -f 'curl_json.c' || echo './'`curl_json.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Wall -O2 -pipe -c curl_json.c  -fPIC -DPIC -o .libs/curl_json_la-curl_json.o
curl_json.c: In function 'cj_curl_callback':
curl_json.c:102:21: error: 'yajl_status_insufficient_data' undeclared (first use in this function)
curl_json.c:102:21: note: each undeclared identifier is reported only once for each function it appears in
curl_json.c: At top level:
curl_json.c:258:3: warning: initialization from incompatible pointer type
curl_json.c:259:3: warning: initialization from incompatible pointer type
curl_json.c:261:3: warning: initialization from incompatible pointer type
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/usr\" -DCONFIGFILE=\"/etc/collectd.conf\" -DLOCALSTATEDIR=\"/var\" -DPKGLOCALSTATEDIR=\"/var/lib/collectd\" -DPIDFILE=\"/var/run/collectd.pid\" -DPLUGINDIR=\"/usr/lib64/collectd\" -DPKGDATADIR=\"/usr/share/collectd\" -Wall -O2 -pipe -c cpu.c  -fPIC -DPIC -o .libs/cpu_la-cpu.o
curl_json.c: In function 'cj_curl_perform':
curl_json.c:700:3: error: too many arguments to function 'yajl_alloc'
/usr/include/yajl/yajl_parse.h:107:26: note: declared here
curl_json.c:733:3: warning: implicit declaration of function 'yajl_parse_complete'
make[3]: *** [curl_json_la-curl_json.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `collectd-5.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `collectd-5.0.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `collectd-5.0.0/src'
make: *** [all-recursive] Error 1


More information about the collectd mailing list