[collectd] Collection4: ylwrap fails on scanner.c

Cyril Bouthors cyril.bouthors at isvtec.com
Thu Dec 27 12:16:22 CET 2012


Hi,

Ylwrap seems unable to compile latest collection4 from Git:

$ make
Making all in share
make[1]: Entering directory `/tmp/collection4/share'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/collection4/share'
Making all in src
make[1]: Entering directory `/tmp/collection4/src'
make  all-am
make[2]: Entering directory `/tmp/collection4/src'
/bin/bash ../ylwrap scanner.l .c scanner.c -- :  
make[2]: *** [scanner.c] Error 1
make[2]: Leaving directory `/tmp/collection4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/collection4/src'
make: *** [all-recursive] Error 1

ylwrap returns 1 without providing any error message.

I've cloned latest collection4 from git://git.verplant.org/collection4.git and
tried to compile it with the following commands:

autoreconf -fi
./configure
make

autoreconf and configure did not report anything special.

I tried compilation both on latest Debian/squeeze and latest Debian/sid but it
fails with the same error.

If I try the latest command and add 'bash -x' to debug, it provides more
information but I'm unable to find anything helpful.

+ scriptversion=2009-04-28.21
+ case "$1" in
+ input=scanner.l
+ shift
+ case "$input" in
++ pwd
+ input=/tmp/collection4/src/scanner.l
+ pairlist=
+ test 4 -ne 0
+ test .c = --
+ pairlist=' .c'
+ shift
+ test 3 -ne 0
+ test scanner.c = --
+ pairlist=' .c scanner.c'
+ shift
+ test 2 -ne 0
+ test -- = --
+ shift
+ break
+ prog=:
+ shift
+ case "$prog" in
+ dirname=ylwrap16678
++ pwd
+ trap 'cd '\''/tmp/collection4/src'\''; rm -rf ylwrap16678 > /dev/null 2>&1' 1 2 3 15
+ mkdir ylwrap16678
+ cd ylwrap16678
+ case $# in
+ : /tmp/collection4/src/scanner.l
+ ret=0
+ test 0 -eq 0
+ set X .c scanner.c
+ shift
+ first=yes
+ y_tab_nodot=no
+ test -f y_tab.c
+ test -f y_tab.h
++ sed -e 's,\([\/]\)[^\/]*$,\1,'
++ echo /tmp/collection4/src/scanner.l
+ input_dir=/tmp/collection4/src/
++ sed 's,\\,\\\\,g;s,\.,\\.,g'
++ echo /tmp/collection4/src/
+ input_rx=/tmp/collection4/src/
+ test 2 -ne 0
+ from=.c
+ test no = yes
+ test -f .c
+ test yes = yes
+ ret=1
+ shift
+ shift
+ first=no
+ test 0 -ne 0
+ cd ..
+ rm -rf ylwrap16678
+ exit 1

Does someone have any idea about how I could get collection4 compiled?

Thanks
-- 
Cyril Bouthors - Administration Système, Infogérance
ISVTEC SARL, 14 avenue de l'Opéra, 75001 Paris
1 rue Émile Zola, 69002 Lyon
Tél : 01 84 16 16 17 - Fax : 01 77 72 57 24
Ligne directe : 0x7B9EE3B0E



More information about the collectd mailing list