Subject: Fwd: lex-depend-cxx automake-1.12 test failure on Mac OS X 10.7.3 (Xcode-4.3.2)

From: Stefano Lattarini <[email-masked]>
Date: Thu, 26 Apr 2012 10:05:51 +0200

Forwarding this to bug-automake, so that we'll have a bug number to
reference in our fix.

Original message:
<http://lists.gnu.org/archive/html/automake/2012-04/msg00061.html>

-------- Original Message --------
Subject: lex-depend-cxx automake-1.12 test failure on Mac OS X 10.7.3	(Xcode-4.3.2)
Date: Wed, 25 Apr 2012 19:25:00 -0500
From: Adam Mercer <[email-masked]>
To: [email-masked]

Hi

I've been looking at getting the version of automake in MacPorts
updated to automake-1.12 and I'm getting the following test failure:

FAIL: t/lex-depend-cxx
======================

Running from installcheck: no
Using TAP: no
PATH = /opt/local/var/macports/build/_Users_ram_macports_ports_devel_automake/automake/work/automake-1.12/t/ax:/opt/local/var/macports/build/_Users_ram_macports_ports_devel_automake/automake/work/automake-1.12/t/wrap:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ pwd
/opt/local/var/macports/build/_Users_ram_macports_ports_devel_automake/automake/work/automake-1.12/t/lex-depend-cxx.dir
+ cat
+ cat
+ cat
+ cp joe.ll moe.l++
+ cat
+ aclocal-1.12 -Werror
+ automake-1.12 --foreign -Werror -Wall -a
configure.ac: installing './ylwrap'
+ /usr/bin/grep -F joe.Po Makefile.in
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/joe.Po@am__quote@
        test -f $(DEPDIR)/joe.Po
+ /usr/bin/grep -F moe.Po Makefile.in
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/moe.Po@am__quote@
        test -f $(DEPDIR)/moe.Po
+ autoconf
+ ./configure --enable-dependency-tracking
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking for flex... lex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
+ make test-deps-exist
ls -l .deps ;: For debugging.
total 16
-rw-r--r--  1 macports  admin  8 Apr 25 17:45 joe.Po
-rw-r--r--  1 macports  admin  8 Apr 25 17:45 moe.Po
test -f .deps/joe.Po
test -f .deps/moe.Po
+ make
/bin/sh ./ylwrap joe.ll lex.yy.c joe.cc -- lex
g++ -DPACKAGE_NAME=\"lex-depend-cxx\"
-DPACKAGE_TARNAME=\"lex-depend-cxx\" -DPACKAGE_VERSION=\"1.0\"
-DPACKAGE_STRING=\"lex-depend-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"lex-depend-cxx\" -DVERSION=\"1.0\"
-DYYTEXT_POINTER=1 -I.     -g -O2 -MT joe.o -
MD -MP -MF .deps/joe.Tpo -c -o joe.o joe.cc
In file included from /usr/include/c++/4.2.1/bits/os_defines.h:61,
                 from /usr/include/c++/4.2.1/bits/c++config.h:41,
                 from /usr/include/c++/4.2.1/cstdio:50,
                 from my-hdr.hxx:2,
                 from joe.ll:10:
joe.ll:3: error: previous declaration of ‘int isatty(int)’ with ‘C++’ linkage
/usr/include/unistd.h:502: error: conflicts with new declaration with
‘C’ linkage
make: *** [joe.o] Error 1
+ exit_status=2
+ set +e
+ cd /opt/local/var/macports/build/_Users_ram_macports_ports_devel_automake/automake/work/automake-1.12
+ test no = yes
+ case $am_explicit_skips in
+ test 2 -eq 0
+ keep_testdirs=yes
+ am_keeping_testdirs
+ case $keep_testdirs in
+ return 0
+ set +x
lex-depend-cxx: exit 2

This is with Mac OS 10.7.3 and Xcode-4.3.2

Cheers

Adam