Hi Adam, thanks for the report. On 04/26/2012 10:05 AM, Adam Mercer wrote: > > 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 > ====================== > > [SNIP] > > + 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 > > This is with Mac OS 10.7.3 and Xcode-4.3.2 > Does the attached patch solves the problem for you? Thanks, Stefano