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

Johan Bergström bugs at bergstroem.nu
Mon Jul 4 11:22:58 CEST 2011


Hi

On Jul 4, 2011, at 10:58 , Grzegorz Nosek wrote:

> W dniu 04.07.2011 10:54, Johan Bergström pisze:
>> Hello!
>> 
>> There's some api changes in YAJL 2.0.x that breaks collectd 5.0.0 and latest master from git:
> 
> Arch Linux carries a patch (attached) that looks relevant.

Thanks for the patch, looks like we're still not there though (FWIW, this is GCC 4.5.2):

/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Werror  -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 -Werror -O2 -pipe -c curl_json.c  -fPIC -DPIC -o .libs/curl_json_la-curl_json.o
cc1: warnings being treated as errors
curl_json.c:257:3: error: initialization from incompatible pointer type
curl_json.c:258:3: error: initialization from incompatible pointer type
curl_json.c:260:3: error: initialization from incompatible pointer type
curl_json.c: In function 'cj_curl_perform':
curl_json.c:699:3: error: too few arguments to function 'yajl_alloc'
/usr/include/yajl/yajl_parse.h:130:26: note: declared here
curl_json.c:732:3: error: implicit declaration of function 'yajl_complete_parse'
make[3]: *** [curl_json_la-curl_json.lo] Error 1

Not sure how arch got this through?

> 
> Best regards,
> Grzegorz Nosek
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd

Cheers,
Johan




More information about the collectd mailing list