Subject: Re: bug#11336: automake-1.11 test fail

From: Stefano Lattarini <[email-masked]>
Date: Wed, 25 Apr 2012 10:31:22 +0200

On 04/24/2012 09:31 PM, Fred wrote:
> Hello,
Hi Fred, thanks for the report.

> I compiled automake-1.11 on Debian-6.0.
>
Consider that Automake 1.11 is pretty old, and suffers of a known
security vulnerability; I suggest you install the latest maintenance
release instead (1.11.5), or wait a couple of days and try out the
new major 1.12 version that I'm about to release.

> When make test finished there was a message that one test had failed
> and should be reported to bug-automake.
> 
> Here is part of the test/test-suite.log:
> 
> FAIL: specflg10.test (exit: 2)
> ==============================
> 
> /opt/automake-1.11/tests:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
> === Running test ./specflg10.test
> + pwd
> /opt/automake-1.11/tests/specflg10.dir
> + set -e
> + cat
> + mkdir sub sub2
> + cat
> + cat
> + cat
> + cat
> + cp foo.c sub/bar.cpp
> + cp foo.c sub/baz.cpp
> + cp foo.c sub2/bla.foo
> + aclocal-1.11 -Werror
> + autoconf
> + AUTOMAKE_fails --add-missing
> + AUTOMAKE_run 1 --add-missing
> + expected_exitcode=1
> + shift
> + exitcode=0
> + automake-1.11 --foreign -Werror -Wall --add-missing
> + exitcode=1
> + cat stderr
> sub2/Makefile.am:3: automake does not support AM_DEFAULT_SOURCE_EXT being defined conditionally
> + cat stdout
> + test 1 = 1
> + grep defined conditionally stderr
> sub2/Makefile.am:3: automake does not support AM_DEFAULT_SOURCE_EXT being defined conditionally
> + sed /^if/d; /^endif/d sub2/Makefile.am
> + mv -f t sub2/Makefile.am
> + AUTOMAKE_fails --add-missing
> + AUTOMAKE_run 1 --add-missing
> + expected_exitcode=1
> + shift
> + exitcode=0
> + automake-1.11 --foreign -Werror -Wall --add-missing
> + exitcode=1
> + cat stderr
> sub2/Makefile.am:2: AM_DEFAULT_SOURCE_EXT can assume at most one value
> + cat stdout
> + test 1 = 1
> + grep at most one value stderr
> sub2/Makefile.am:2: AM_DEFAULT_SOURCE_EXT can assume at most one value
> + sed s/ \.quux// sub2/Makefile.am
> + mv -f t sub2/Makefile.am
> + automake-1.11 --foreign -Werror -Wall --add-missing
> + ./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... /bin/mkdir -p
> checking for gawk... no
> checking for mawk... mawk
> 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... gcc3
> checking for g++... no
> checking for c++... no
> checking for gpp... no
> checking for aCC... no
> checking for CC... no
> checking for cxx... no
> checking for cc++... no
> checking for cl.exe... no
> checking for FCC... no
> checking for KCC... no
> checking for RCC... no
> checking for xlC_r... no
> checking for xlC... no
> checking whether we are using the GNU C++ compiler... no
> checking whether g++ accepts -g... no
> checking dependency style of g++... none
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating sub/Makefile
> config.status: creating sub2/Makefile
> config.status: executing depfiles commands
> + make
> Making all in sub
> make[1]: Entering directory `/opt/automake-1.11/tests/specflg10.dir/sub'
> source='bar.cpp' object='bar.o' libtool=no \
>     DEPDIR=.deps depmode=none /bin/bash ../depcomp \
>     g++ -DPACKAGE_NAME=\"specflg10\" -DPACKAGE_TARNAME=\"specflg10\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"specflg10\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"specflg10\" -DVERSION=\"1.0\" -I.      -c -o bar.o bar.cpp
> ../depcomp: line 611: exec: g++: not found
> make[1]: *** [bar.o] Error 127
> make[1]: Leaving directory `/opt/automake-1.11/tests/specflg10.dir/sub'
> make: *** [all-recursive] Error 1
> + exit_status=2
> + cd /opt/automake-1.11/tests
> + test 0 != 0
> + echo : exit 2
> : exit 2
> + exit 2
> 
This failure was already known, and has already is fixed in the more
recent Automake releases:
<http://lists.gnu.org/archive/html/bug-automake/2009-05/msg00048.html>

I'm thus closing this bug report.

Thanks,
  Stefano