<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hi all,</p>
<p>I can't compile fresh git clone of collectd : (no problem with collectd-5.0.3.tar.gz and older)</p>
<p>$ git clone https://github.com/collectd/collectd.git collectd</p>
<p>$ cd collectd</p>
<p>$ ./build.sh</p>
<pre>+ autoheader<br />+ aclocal<br />+ libtoolize --ltdl --copy --force<br />libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `libltdl/config'.<br />libtoolize: copying file `libltdl/config/compile'<br />libtoolize: copying file `libltdl/config/config.guess'<br />libtoolize: copying file `libltdl/config/config.sub'<br />libtoolize: copying file `libltdl/config/depcomp'<br />libtoolize: copying file `libltdl/config/install-sh'<br />libtoolize: copying file `libltdl/config/missing'<br />libtoolize: copying file `libltdl/config/ltmain.sh'<br />libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `libltdl/m4'.<br />libtoolize: copying file `libltdl/m4/argz.m4'<br />libtoolize: copying file `libltdl/m4/libtool.m4'<br />libtoolize: copying file `libltdl/m4/ltdl.m4'<br />libtoolize: copying file `libltdl/m4/ltoptions.m4'<br />libtoolize: copying file `libltdl/m4/ltsugar.m4'<br />libtoolize: copying file `libltdl/m4/ltversion.m4'<br />libtoolize: copying file `libltdl/m4/lt~obsolete.m4'<br />libtoolize: putting libltdl files in LT_CONFIG_LTDL_DIR, `libltdl'.<br />libtoolize: copying file `libltdl/COPYING.LIB'<br />libtoolize: copying file `libltdl/README'<br />libtoolize: copying file `libltdl/Makefile.am'<br />libtoolize: copying file `libltdl/configure.ac'<br />libtoolize: copying file `libltdl/aclocal.m4'<br />libtoolize: copying file `libltdl/Makefile.in'<br />libtoolize: copying file `libltdl/config-h.in'<br />libtoolize: copying file `libltdl/configure'<br />libtoolize: copying file `libltdl/argz_.h'<br />libtoolize: copying file `libltdl/argz.c'<br />libtoolize: copying file `libltdl/loaders/dld_link.c'<br />libtoolize: copying file `libltdl/loaders/dlopen.c'<br />libtoolize: copying file `libltdl/loaders/dyld.c'<br />libtoolize: copying file `libltdl/loaders/load_add_on.c'<br />libtoolize: copying file `libltdl/loaders/loadlibrary.c'<br />libtoolize: copying file `libltdl/loaders/shl_load.c'<br />libtoolize: copying file `libltdl/lt__dirent.c'<br />libtoolize: copying file `libltdl/lt__strl.c'<br />libtoolize: copying file `libltdl/libltdl/lt__alloc.h'<br />libtoolize: copying file `libltdl/libltdl/lt__dirent.h'<br />libtoolize: copying file `libltdl/libltdl/lt__glibc.h'<br />libtoolize: copying file `libltdl/libltdl/lt__private.h'<br />libtoolize: copying file `libltdl/libltdl/lt__strl.h'<br />libtoolize: copying file `libltdl/libltdl/lt_dlloader.h'<br />libtoolize: copying file `libltdl/libltdl/lt_error.h'<br />libtoolize: copying file `libltdl/libltdl/lt_system.h'<br />libtoolize: copying file `libltdl/libltdl/slist.h'<br />libtoolize: copying file `libltdl/loaders/preopen.c'<br />libtoolize: copying file `libltdl/lt__alloc.c'<br />libtoolize: copying file `libltdl/lt_dlloader.c'<br />libtoolize: copying file `libltdl/lt_error.c'<br />libtoolize: copying file `libltdl/ltdl.c'<br />libtoolize: copying file `libltdl/ltdl.h'<br />libtoolize: copying file `libltdl/slist.c'<br />+ automake --add-missing --copy<br />+ autoconf</pre>
<pre> </pre>
<pre>$ ./configure</pre>
<pre>checking build system type... x86_64-unknown-linux-gnu<br />checking host system type... x86_64-unknown-linux-gnu<br />checking for gcc... gcc<br />checking for C compiler default output file name... a.out<br />checking whether the C compiler works... yes</pre>
<pre>... snip ...</pre>
<pre> </pre>
<pre>... snip ...</pre>
<pre> write_graphite . . . yes<br /> write_http . . . . . yes<br /> write_redis . . . . . no<br /> write_mongodb . . . . no<br /> xmms . . . . . . . . no<br /> zfs_arc . . . . . . . no</pre>
<pre> </pre>
<pre>$ make</pre>
<pre>Making all in libltdl<br />make[1]: Entering directory `/root/collectd/libltdl'<br />make all-am<br />make[2]: Entering directory `/root/collectd/libltdl'<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=<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<br />mv -f .deps/dlopen.Tpo .deps/dlopen.Plo<br />/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -module -avoid-version -o dlopen.la dlopen.lo -ldl -ldl <br />libtool: link: ar cru .libs/dlopen.a .libs/dlopen.o <br />libtool: link: ranlib .libs/dlopen.a<br />libtool: link: ( cd ".libs" && rm -f "dlopen.la" && ln -s "../dlopen.la" "dlopen.la" )<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />mv -f .deps/libltdlc_la-preopen.Tpo .deps/libltdlc_la-preopen.Plo<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />mv -f .deps/libltdlc_la-lt__alloc.Tpo .deps/libltdlc_la-lt__alloc.Plo<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />mv -f .deps/libltdlc_la-lt_dlloader.Tpo .deps/libltdlc_la-lt_dlloader.Plo<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />mv -f .deps/libltdlc_la-lt_error.Tpo .deps/libltdlc_la-lt_error.Plo<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />mv -f .deps/libltdlc_la-ltdl.Tpo .deps/libltdlc_la-ltdl.Plo<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<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<br />mv -f .deps/libltdlc_la-slist.Tpo .deps/libltdlc_la-slist.Plo<br />/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DLT_CONFIG_H='<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=<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<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. "-DLT_CONFIG_H=<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<br />mv -f .deps/lt__strl.Tpo .deps/lt__strl.Plo<br />/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 <br />libtool: link: rm -f .libs/libltdlc.nm .libs/libltdlc.nmS .libs/libltdlc.nmT<br />libtool: link: (cd .libs && gcc -g -O2 -c -fno-builtin -fPIC -DPIC "libltdlcS.c")<br />libtool: link: rm -f ".libs/libltdlcS.c" ".libs/libltdlc.nm" ".libs/libltdlc.nmS" ".libs/libltdlc.nmT"<br />libtool: link: (cd .libs/libltdlc.lax/dlopen.a && ar x "/root/collectd/libltdl/./.libs/dlopen.a")<br />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 <br />libtool: link: ranlib .libs/libltdlc.a<br />libtool: link: rm -fr .libs/libltdlc.lax<br />libtool: link: ( cd ".libs" && rm -f "libltdlc.la" && ln -s "../libltdlc.la" "libltdlc.la" )<br />make[2]: Leaving directory `/root/collectd/libltdl'<br />make[1]: Leaving directory `/root/collectd/libltdl'<br />Making all in src<br />make[1]: Entering directory `/root/collectd/src'<br />(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh /root/collectd/libltdl/config/missing --run autoheader)<br />rm -f stamp-h1<br />touch config.h.in<br />cd .. && /bin/sh ./config.status src/config.h<br />config.status: creating src/config.h<br />make all-recursive<br />make[2]: Entering directory `/root/collectd/src'<br />Making all in libcollectdclient<br />make[3]: Entering directory `/root/collectd/src/libcollectdclient'<br />make all-am<br />make[4]: Entering directory `/root/collectd/src/libcollectdclient'<br />/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c -o client.lo client.c<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c client.c -fPIC -DPIC -o .libs/client.o<br />libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c client.c -o client.o >/dev/null 2>&1<br />/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 <br />libtool: link: gcc -shared .libs/client.o -ldl -Wl,-soname -Wl,libcollectdclient.so.0 -o .libs/libcollectdclient.so.0.0.0<br />libtool: link: (cd ".libs" && rm -f "libcollectdclient.so.0" && ln -s "libcollectdclient.so.0.0.0" "libcollectdclient.so.0")<br />libtool: link: (cd ".libs" && rm -f "libcollectdclient.so" && ln -s "libcollectdclient.so.0.0.0" "libcollectdclient.so")<br />libtool: link: ar cru .libs/libcollectdclient.a client.o<br />libtool: link: ranlib .libs/libcollectdclient.a<br />libtool: link: ( cd ".libs" && rm -f "libcollectdclient.la" && ln -s "../libcollectdclient.la" "libcollectdclient.la" )<br />make[4]: Leaving directory `/root/collectd/src/libcollectdclient'<br />make[3]: Leaving directory `/root/collectd/src/libcollectdclient'<br />Making all in liboconfig<br />make[3]: Entering directory `/root/collectd/src/liboconfig'<br />/bin/sh ../../libltdl/config/ylwrap parser.y y.tab.c parser.c y.tab.h parser.h y.output parser.output -- byacc -d<br />byacc: e - line 69 of "/root/collectd/src/liboconfig/parser.y", syntax error<br />%error-verbose<br />^<br />make[3]: *** [parser.c] Error 1<br />make[3]: Leaving directory `/root/collectd/src/liboconfig'<br />make[2]: *** [all-recursive] Error 1<br />make[2]: Leaving directory `/root/collectd/src'<br />make[1]: *** [all] Error 2<br />make[1]: Leaving directory `/root/collectd/src'<br />make: *** [all-recursive] Error 1</pre>
<pre> </pre>
<pre>Have you an idea ?</pre>
<pre> </pre>
<pre>Regards,</pre>
<pre> </pre>
<pre>Cyril<br /><br /></pre>
<div> </div>
</body></html>