[collectd] Collection4 Build Error

Andrew Burdyug buran83 at gmail.com
Thu Feb 2 22:20:09 CET 2012


Hi!

I got strange error about 'handler_config':

===========================================================
# git clone git://git.verplant.org/collection4.git
# cd collection4
# LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure
===========================================================
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking fcgiapp.h usability... yes
checking fcgiapp.h presence... yes
checking for fcgiapp.h... yes
checking fcgi_stdio.h usability... yes
checking fcgi_stdio.h presence... yes
checking for fcgi_stdio.h... yes
checking rrd.h usability... yes
checking rrd.h presence... yes
checking for rrd.h... yes
checking yajl/yajl_gen.h usability... yes
checking yajl/yajl_gen.h presence... yes
checking for yajl/yajl_gen.h... yes
checking for FCGI_Accept in -lfcgi... yes
checking for rrd_graph_v in -lrrd_th... yes
checking for yajl_gen_alloc in -lyajl... yes
checking for libcollectdclient... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating share/Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
===========================================================
# make
===========================================================
Making all in share
Making all in src
make  all-am
gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collection4"'
-DCONFIGFILE='"/opt/collection4/etc/collection.conf"' -I/usr/local/include
-Wall -Wextra -I/usr/local/include -g -O2 -c -o collection_fcgi-main.o
`test -f 'main.c' || echo './'`main.c
gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collection4"'
-DCONFIGFILE='"/opt/collection4/etc/collection.conf"' -I/usr/local/include
-Wall -Wextra -I/usr/local/include -g -O2 -c -o collection_fcgi-oconfig.o
`test -f 'oconfig.c' || echo './'`oconfig.c
gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collection4"'
-DCONFIGFILE='"/opt/collection4/etc/collection.conf"' -I/usr/local/include
-Wall -Wextra -I/usr/local/include -g -O2 -c -o collection_fcgi-scanner.o
`test -f 'scanner.c' || echo './'`scanner.c
scanner.l: In function 'yylex':
scanner.l:83: warning: implicit declaration of function 'strlen'
scanner.l:83: warning: incompatible implicit declaration of built-in
function 'strlen'
scanner.l:99: warning: incompatible implicit declaration of built-in
function 'strlen'
scanner.l: In function 'ml_append':
scanner.l:120: warning: incompatible implicit declaration of built-in
function 'strlen'
scanner.l: At top level:
scanner.c:1288: warning: 'yyunput' defined but not used
gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collection4"'
-DCONFIGFILE='"/opt/collection4/etc/collection.conf"' -I/usr/local/include
-Wall -Wextra -I/usr/local/include -g -O2 -c -o collection_fcgi-parser.o
`test -f 'parser.c' || echo './'`parser.c
parser.c: In function 'yyparse':
parser.c:1315: warning: implicit declaration of function 'yylex'
gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collection4"'
-DCONFIGFILE='"/opt/collection4/etc/collection.conf"' -I/usr/local/include
-Wall -Wextra -I/usr/local/include -g -O2 -c -o
collection_fcgi-action_graph.o `test -f 'action_graph.c' || echo
'./'`action_graph.c
gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collection4"'
-DCONFIGFILE='"/opt/collection4/etc/collection.conf"' -I/usr/local/include
-Wall -Wextra -I/usr/local/include -g -O2 -c -o
collection_fcgi-action_instance_data_json.o `test -f
'action_instance_data_json.c' || echo './'`action_instance_data_json.c
action_instance_data_json.c: In function 'action_instance_data_json':
action_instance_data_json.c:87: warning: statement with no effect
action_instance_data_json.c:87: error: expected ';' before 'handler_config'
action_instance_data_json.c:104: warning: passing argument 1 of
'get_time_args' from incompatible pointer type
action_instance_data_json.c:104: warning: passing argument 2 of
'get_time_args' from incompatible pointer type
action_instance_data_json.c:104: warning: passing argument 3 of
'get_time_args' from incompatible pointer type
action_instance_data_json.c:116: error: 'handler_config' undeclared (first
use in this function)
action_instance_data_json.c:116: error: (Each undeclared identifier is
reported only once
action_instance_data_json.c:116: error: for each function it appears in.)
action_instance_data_json.c:120: warning: implicit declaration of function
'yajl_gen_alloc2'
action_instance_data_json.c:123: warning: assignment makes pointer from
integer without a cast
*** Error code 1

Stop in /usr/local/src/collection4/src.
*** Error code 1

Stop in /usr/local/src/collection4/src.
*** Error code 1

Stop in /usr/local/src/collection4.

===========================================================
My system:
===========================================================
7.2-RELEASE-p6 FreeBSD
gcc (GCC) 4.2.1 20070719  [FreeBSD]

fcgi-devkit-2.4.0   FastCGI Development Kit
rrdtool-1.4.5       Round Robin Database Tools
yajl-2.0.1          A Portable JSON parsing and serialization library in
ANSI C
===========================================================
There  are all headers and libs:
# pkg_info -xL yajl rrdtool fcgi-devkit | egrep "lib|\.h$"
===========================================================
/usr/local/include/fastcgi.h
/usr/local/include/fcgi_config.h
/usr/local/include/fcgi_stdio.h
/usr/local/include/fcgiapp.h
/usr/local/include/fcgimisc.h
/usr/local/include/fcgio.h
/usr/local/include/fcgios.h
/usr/local/lib/libfcgi++.a
/usr/local/lib/libfcgi++.la
/usr/local/lib/libfcgi++.so
/usr/local/lib/libfcgi++.so.0
/usr/local/lib/libfcgi.a
/usr/local/lib/libfcgi.la
/usr/local/lib/libfcgi.so
/usr/local/lib/libfcgi.so.0
/usr/local/lib/perl5/5.12.4/man/man3/RRDp.3.gz
/usr/local/lib/perl5/5.12.4/man/man3/RRDs.3.gz
/usr/local/include/rrd.h
/usr/local/include/rrd_client.h
/usr/local/include/rrd_format.h
/usr/local/lib/librrd.a
/usr/local/lib/librrd.la
/usr/local/lib/librrd.so
/usr/local/lib/librrd.so.5
/usr/local/lib/librrd_th.a
/usr/local/lib/librrd_th.la
/usr/local/lib/librrd_th.so
/usr/local/lib/librrd_th.so.5
/usr/local/libdata/pkgconfig/librrd.pc
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/RRDp/.packlist
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/RRDs/RRDs.so
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/RRDs/RRDs.bs
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/RRDs/.packlist
/usr/local/lib/perl5/site_perl/5.12.4/mach/RRDs.pm
/usr/local/lib/perl5/site_perl/5.12.4/RRDp.pm
/usr/local/include/yajl/yajl_version.h
/usr/local/include/yajl/yajl_common.h
/usr/local/include/yajl/yajl_gen.h
/usr/local/include/yajl/yajl_parse.h
/usr/local/include/yajl/yajl_tree.h
/usr/local/lib/libyajl.so
/usr/local/lib/libyajl.so.2
/usr/local/lib/libyajl.so.2.0.1
/usr/local/lib/libyajl_s.a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120202/6a89539e/attachment.html>


More information about the collectd mailing list