[collectd] collection4 Build Error

Andrew Burdyug buran83 at gmail.com
Tue Jan 31 23:45:15 CET 2012


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
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
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
There  are all headers and libs:
# pkg_info -xL yajl rrdtool fcgi-devkit | egrep "lib|\.h$"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120201/e995f774/attachment.html>

More information about the collectd mailing list