[collectd] Compile git clone

Cyril Feraudet collectd at feraudet.com
Fri Feb 24 09:51:47 CET 2012


  

Hi all, 

I can't compile fresh git clone of collectd : (no problem
with collectd-5.0.3.tar.gz and older) 

$ git clone
https://github.com/collectd/collectd.git collectd 

$ cd collectd 

$
./build.sh 

+ autoheader
+ aclocal
+ libtoolize --ltdl --copy
--force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR,
`libltdl/config'.
libtoolize: copying file
`libltdl/config/compile'
libtoolize: copying file
`libltdl/config/config.guess'
libtoolize: copying file
`libltdl/config/config.sub'
libtoolize: copying file
`libltdl/config/depcomp'
libtoolize: copying file
`libltdl/config/install-sh'
libtoolize: copying file
`libltdl/config/missing'
libtoolize: copying file
`libltdl/config/ltmain.sh'
libtoolize: putting macros in
AC_CONFIG_MACRO_DIR, `libltdl/m4'.
libtoolize: copying file
`libltdl/m4/argz.m4'
libtoolize: copying file
`libltdl/m4/libtool.m4'
libtoolize: copying file
`libltdl/m4/ltdl.m4'
libtoolize: copying file
`libltdl/m4/ltoptions.m4'
libtoolize: copying file
`libltdl/m4/ltsugar.m4'
libtoolize: copying file
`libltdl/m4/ltversion.m4'
libtoolize: copying file
`libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in
LT_CONFIG_LTDL_DIR, `libltdl'.
libtoolize: copying file
`libltdl/COPYING.LIB'
libtoolize: copying file
`libltdl/README'
libtoolize: copying file
`libltdl/Makefile.am'
libtoolize: copying file
`libltdl/configure.ac'
libtoolize: copying file
`libltdl/aclocal.m4'
libtoolize: copying file
`libltdl/Makefile.in'
libtoolize: copying file
`libltdl/config-h.in'
libtoolize: copying file
`libltdl/configure'
libtoolize: copying file
`libltdl/argz_.h'
libtoolize: copying file `libltdl/argz.c'
libtoolize:
copying file `libltdl/loaders/dld_link.c'
libtoolize: copying file
`libltdl/loaders/dlopen.c'
libtoolize: copying file
`libltdl/loaders/dyld.c'
libtoolize: copying file
`libltdl/loaders/load_add_on.c'
libtoolize: copying file
`libltdl/loaders/loadlibrary.c'
libtoolize: copying file
`libltdl/loaders/shl_load.c'
libtoolize: copying file
`libltdl/lt__dirent.c'
libtoolize: copying file
`libltdl/lt__strl.c'
libtoolize: copying file
`libltdl/libltdl/lt__alloc.h'
libtoolize: copying file
`libltdl/libltdl/lt__dirent.h'
libtoolize: copying file
`libltdl/libltdl/lt__glibc.h'
libtoolize: copying file
`libltdl/libltdl/lt__private.h'
libtoolize: copying file
`libltdl/libltdl/lt__strl.h'
libtoolize: copying file
`libltdl/libltdl/lt_dlloader.h'
libtoolize: copying file
`libltdl/libltdl/lt_error.h'
libtoolize: copying file
`libltdl/libltdl/lt_system.h'
libtoolize: copying file
`libltdl/libltdl/slist.h'
libtoolize: copying file
`libltdl/loaders/preopen.c'
libtoolize: copying file
`libltdl/lt__alloc.c'
libtoolize: copying file
`libltdl/lt_dlloader.c'
libtoolize: copying file
`libltdl/lt_error.c'
libtoolize: copying file
`libltdl/ltdl.c'
libtoolize: copying file `libltdl/ltdl.h'
libtoolize:
copying file `libltdl/slist.c'
+ automake --add-missing --copy
+
autoconf

$ ./configure

checking build system type...
x86_64-unknown-linux-gnu
checking host system type...
x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler
default output file name... a.out
checking whether the C compiler
works... yes

... snip ...

... snip ...

 write_graphite . . . yes

write_http . . . . . yes
 write_redis . . . . . no
 write_mongodb . . .
. no
 xmms . . . . . . . . no
 zfs_arc . . . . . . . no

$ make

Making
all in libltdl
make[1]: Entering directory `/root/collectd/libltdl'
make
all-am
make[2]: Entering directory `/root/collectd/libltdl'
/bin/sh
./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl -I./libltdl -I./libltdl -g -O2
-MT dlopen.lo -MD -MP -MF .deps/dlopen.Tpo -c -o dlopen.lo `test -f
'loaders/dlopen.c' || echo './'`loaders/dlopen.c
libtool: compile: gcc
-DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT dlopen.lo -MD -MP -MF
.deps/dlopen.Tpo -c loaders/dlopen.c -fPIC -DPIC -o
.libs/dlopen.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
"-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl -I./libltdl -I./libltdl -g -O2
-MT dlopen.lo -MD -MP -MF .deps/dlopen.Tpo -c loaders/dlopen.c -o
dlopen.o >/dev/null 2>&1
mv -f .deps/dlopen.Tpo .deps/dlopen.Plo
/bin/sh
./libtool --tag=CC --mode=link gcc -g -O2 -module -avoid-version -o
dlopen.la dlopen.lo -ldl -ldl 
libtool: link: ar cru .libs/dlopen.a
.libs/dlopen.o 
libtool: link: ranlib .libs/dlopen.a
libtool: link: ( cd
".libs" && rm -f "dlopen.la" && ln -s "../dlopen.la" "dlopen.la"
)
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc -DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-preopen.lo -MD -MP -MF
.deps/libltdlc_la-preopen.Tpo -c -o libltdlc_la-preopen.lo `test -f
'loaders/preopen.c' || echo './'`loaders/preopen.c
libtool: compile: gcc
-DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I.
-Ilibltdl -I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-preopen.lo -MD
-MP -MF .deps/libltdlc_la-preopen.Tpo -c loaders/preopen.c -fPIC -DPIC
-o .libs/libltdlc_la-preopen.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-preopen.lo -MD -MP -MF
.deps/libltdlc_la-preopen.Tpo -c loaders/preopen.c -o
libltdlc_la-preopen.o >/dev/null 2>&1
mv -f
.deps/libltdlc_la-preopen.Tpo .deps/libltdlc_la-preopen.Plo
/bin/sh
./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc -DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-lt__alloc.lo -MD -MP -MF
.deps/libltdlc_la-lt__alloc.Tpo -c -o libltdlc_la-lt__alloc.lo `test -f
'lt__alloc.c' || echo './'`lt__alloc.c
libtool: compile: gcc
-DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I.
-Ilibltdl -I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-lt__alloc.lo
-MD -MP -MF .deps/libltdlc_la-lt__alloc.Tpo -c lt__alloc.c -fPIC -DPIC
-o .libs/libltdlc_la-lt__alloc.o
libtool: compile: gcc -DHAVE_CONFIG_H
-I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-lt__alloc.lo -MD -MP -MF
.deps/libltdlc_la-lt__alloc.Tpo -c lt__alloc.c -o
libltdlc_la-lt__alloc.o >/dev/null 2>&1
mv -f
.deps/libltdlc_la-lt__alloc.Tpo .deps/libltdlc_la-lt__alloc.Plo
/bin/sh
./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc -DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-lt_dlloader.lo -MD -MP
-MF .deps/libltdlc_la-lt_dlloader.Tpo -c -o libltdlc_la-lt_dlloader.lo
`test -f 'lt_dlloader.c' || echo './'`lt_dlloader.c
libtool: compile:
gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I.
-I. -Ilibltdl -I./libltdl -I./libltdl -g -O2 -MT
libltdlc_la-lt_dlloader.lo -MD -MP -MF .deps/libltdlc_la-lt_dlloader.Tpo
-c lt_dlloader.c -fPIC -DPIC -o .libs/libltdlc_la-lt_dlloader.o
libtool:
compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H="
-DLTDL -I. -I. -Ilibltdl -I./libltdl -I./libltdl -g -O2 -MT
libltdlc_la-lt_dlloader.lo -MD -MP -MF .deps/libltdlc_la-lt_dlloader.Tpo
-c lt_dlloader.c -o libltdlc_la-lt_dlloader.o >/dev/null 2>&1
mv -f
.deps/libltdlc_la-lt_dlloader.Tpo
.deps/libltdlc_la-lt_dlloader.Plo
/bin/sh ./libtool --tag=CC
--mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc
-DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl -I./libltdl -I./libltdl -g -O2
-MT libltdlc_la-lt_error.lo -MD -MP -MF .deps/libltdlc_la-lt_error.Tpo
-c -o libltdlc_la-lt_error.lo `test -f 'lt_error.c' || echo
'./'`lt_error.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-lt_error.lo -MD -MP -MF
.deps/libltdlc_la-lt_error.Tpo -c lt_error.c -fPIC -DPIC -o
.libs/libltdlc_la-lt_error.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-lt_error.lo -MD -MP -MF
.deps/libltdlc_la-lt_error.Tpo -c lt_error.c -o libltdlc_la-lt_error.o
>/dev/null 2>&1
mv -f .deps/libltdlc_la-lt_error.Tpo
.deps/libltdlc_la-lt_error.Plo
/bin/sh ./libtool --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='' -DLTDL -I.
-I. -Ilibltdl -I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-ltdl.lo -MD
-MP -MF .deps/libltdlc_la-ltdl.Tpo -c -o libltdlc_la-ltdl.lo `test -f
'ltdl.c' || echo './'`ltdl.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-ltdl.lo -MD -MP -MF
.deps/libltdlc_la-ltdl.Tpo -c ltdl.c -fPIC -DPIC -o
.libs/libltdlc_la-ltdl.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-ltdl.lo -MD -MP -MF
.deps/libltdlc_la-ltdl.Tpo -c ltdl.c -o libltdlc_la-ltdl.o >/dev/null
2>&1
mv -f .deps/libltdlc_la-ltdl.Tpo .deps/libltdlc_la-ltdl.Plo
/bin/sh
./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc -DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-slist.lo -MD -MP -MF
.deps/libltdlc_la-slist.Tpo -c -o libltdlc_la-slist.lo `test -f
'slist.c' || echo './'`slist.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-slist.lo -MD -MP -MF
.deps/libltdlc_la-slist.Tpo -c slist.c -fPIC -DPIC -o
.libs/libltdlc_la-slist.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT libltdlc_la-slist.lo -MD -MP -MF
.deps/libltdlc_la-slist.Tpo -c slist.c -o libltdlc_la-slist.o >/dev/null
2>&1
mv -f .deps/libltdlc_la-slist.Tpo
.deps/libltdlc_la-slist.Plo
/bin/sh ./libtool --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -DLT_CONFIG_H='' -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT lt__strl.lo -MD -MP -MF
.deps/lt__strl.Tpo -c -o lt__strl.lo lt__strl.c
libtool: compile: gcc
-DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -g -O2 -MT lt__strl.lo -MD -MP -MF
.deps/lt__strl.Tpo -c lt__strl.c -fPIC -DPIC -o
.libs/lt__strl.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
"-DLT_CONFIG_H=" -DLTDL -I. -I. -Ilibltdl -I./libltdl -I./libltdl -g -O2
-MT lt__strl.lo -MD -MP -MF .deps/lt__strl.Tpo -c lt__strl.c -o
lt__strl.o >/dev/null 2>&1
mv -f .deps/lt__strl.Tpo
.deps/lt__strl.Plo
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2
-no-undefined -dlpreopen dlopen.la -o libltdlc.la libltdlc_la-preopen.lo
libltdlc_la-lt__alloc.lo libltdlc_la-lt_dlloader.lo
libltdlc_la-lt_error.lo libltdlc_la-ltdl.lo libltdlc_la-slist.lo
lt__strl.lo -ldl 
libtool: link: rm -f .libs/libltdlc.nm
.libs/libltdlc.nmS .libs/libltdlc.nmT
libtool: link: (cd .libs && gcc -g
-O2 -c -fno-builtin -fPIC -DPIC "libltdlcS.c")
libtool: link: rm -f
".libs/libltdlcS.c" ".libs/libltdlc.nm" ".libs/libltdlc.nmS"
".libs/libltdlc.nmT"
libtool: link: (cd .libs/libltdlc.lax/dlopen.a &&
ar x "/root/collectd/libltdl/./.libs/dlopen.a")
libtool: link: ar cru
.libs/libltdlc.a .libs/libltdlc_la-preopen.o
.libs/libltdlc_la-lt__alloc.o .libs/libltdlc_la-lt_dlloader.o
.libs/libltdlc_la-lt_error.o .libs/libltdlc_la-ltdl.o
.libs/libltdlc_la-slist.o .libs/lt__strl.o .libs/libltdlcS.o
.libs/libltdlc.lax/dlopen.a/dlopen.o 
libtool: link: ranlib
.libs/libltdlc.a
libtool: link: rm -fr .libs/libltdlc.lax
libtool: link:
( cd ".libs" && rm -f "libltdlc.la" && ln -s "../libltdlc.la"
"libltdlc.la" )
make[2]: Leaving directory
`/root/collectd/libltdl'
make[1]: Leaving directory
`/root/collectd/libltdl'
Making all in src
make[1]: Entering directory
`/root/collectd/src'
(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh
/root/collectd/libltdl/config/missing --run autoheader)
rm -f
stamp-h1
touch config.h.in
cd .. && /bin/sh ./config.status
src/config.h
config.status: creating src/config.h
make
all-recursive
make[2]: Entering directory `/root/collectd/src'
Making
all in libcollectdclient
make[3]: Entering directory
`/root/collectd/src/libcollectdclient'
make all-am
make[4]: Entering
directory `/root/collectd/src/libcollectdclient'
/bin/sh ../../libtool
--tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -Wall
-Werror -g -O2 -c -o client.lo client.c
libtool: compile: gcc
-DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c client.c -fPIC
-DPIC -o .libs/client.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-I../../src -Wall -Werror -g -O2 -c client.c -o client.o >/dev/null
2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -Werror -g -O2
-version-info 0:0:0 -o libcollectdclient.la -rpath /opt/collectd/lib
client.lo -ldl 
libtool: link: gcc -shared .libs/client.o -ldl
-Wl,-soname -Wl,libcollectdclient.so.0 -o
.libs/libcollectdclient.so.0.0.0
libtool: link: (cd ".libs" && rm -f
"libcollectdclient.so.0" && ln -s "libcollectdclient.so.0.0.0"
"libcollectdclient.so.0")
libtool: link: (cd ".libs" && rm -f
"libcollectdclient.so" && ln -s "libcollectdclient.so.0.0.0"
"libcollectdclient.so")
libtool: link: ar cru .libs/libcollectdclient.a
client.o
libtool: link: ranlib .libs/libcollectdclient.a
libtool: link:
( cd ".libs" && rm -f "libcollectdclient.la" && ln -s
"../libcollectdclient.la" "libcollectdclient.la" )
make[4]: Leaving
directory `/root/collectd/src/libcollectdclient'
make[3]: Leaving
directory `/root/collectd/src/libcollectdclient'
Making all in
liboconfig
make[3]: Entering directory
`/root/collectd/src/liboconfig'
/bin/sh ../../libltdl/config/ylwrap
parser.y y.tab.c parser.c y.tab.h parser.h y.output parser.output --
byacc -d
byacc: e - line 69 of "/root/collectd/src/liboconfig/parser.y",
syntax error
%error-verbose
^
make[3]: *** [parser.c] Error 1
make[3]:
Leaving directory `/root/collectd/src/liboconfig'
make[2]: ***
[all-recursive] Error 1
make[2]: Leaving directory
`/root/collectd/src'
make[1]: *** [all] Error 2
make[1]: Leaving
directory `/root/collectd/src'
make: *** [all-recursive] Error 1

Have
you an idea ?

Regards,

Cyril

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120224/a4e8a396/attachment-0001.html>


More information about the collectd mailing list