[collectd] collect 4 compilation problem - yajl

Pavel Kasparek pavel at iptel.org
Mon Mar 4 14:56:56 CET 2013


Hello all,

I'm trying to compile collect 4 but got the following error:

action_instance_data_json.c:93: undefined reference to `yajl_gen_alloc2'

Full error is listed below.
The system is Linux CentOS 6, with the following installed:
yajl-1.0.7-3.el6.x86_64
yajl-devel-1.0.7-3.el6.x86_64

The version of collect 4 is 4.0.0.

Thanks in advance for any help.

With regards
Pavel Kasparek



gcc -Wall -Wextra -g -O2   -o collection.fcgi main.o oconfig.o scanner.o 
parser.o action_graph.o action_instance_data_json.o 
action_graph_def_json.o action_list_graphs.o action_list_hosts.o 
action_search.o action_search_json.o action_show_graph.o 
action_show_graph_json.o action_show_instance.o common.o data_provider.o 
dp_rrdtool.o filesystem.o graph.o graph_config.o graph_def.o 
graph_ident.o graph_instance.o graph_list.o rrd_args.o utils_array.o 
utils_cgi.o utils_search.o  -lyajl -lrrd_th -lfcgi
action_instance_data_json.o: In function `action_instance_data_json':
/home/pavel/rpmkovani/test-c4/collection-4.0.0/src/action_instance_data_json.c:93: 
undefined reference to `yajl_gen_alloc2'
action_graph_def_json.o: In function `action_graph_def_json':
/home/pavel/rpmkovani/test-c4/collection-4.0.0/src/action_graph_def_json.c:69: 
undefined reference to `yajl_gen_alloc2'
action_show_graph_json.o: In function `action_show_graph_json':
/home/pavel/rpmkovani/test-c4/collection-4.0.0/src/action_show_graph_json.c:68: 
undefined reference to `yajl_gen_alloc2'
action_show_instance.o: In function `show_instance_json':
/home/pavel/rpmkovani/test-c4/collection-4.0.0/src/action_show_instance.c:222: 
undefined reference to `yajl_gen_alloc2'
graph_list.o: In function `gl_update_cache':
/home/pavel/rpmkovani/test-c4/collection-4.0.0/src/graph_list.c:323: 
undefined reference to `yajl_gen_alloc2'
collect2: ld returned 1 exit status


-- 
Pavel Kasparek






More information about the collectd mailing list