bison v2.4 solved the problem: PASS: t/yacc-bison-skeleton-cxx.sh
However I still get 2 FAILS from lex-clean-cxx and lex-depend-cxx (using flex 2.5.37 now) + cp config.status config.sav + make c++ -DPACKAGE_NAME=\"lex-clean-cxx\" -DPACKAGE_TARNAME=\"lex-clean-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-clean-c xx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lex-clean-cxx\" -DVERSION=\"1.0\" -I. -g -O2 -MT mainfoo.o -MD -MP -MF .deps/mainfoo.Tpo -c -o mainfoo.o mainfoo.cc mv -f .deps/mainfoo.Tpo .deps/mainfoo.Po /bin/sh ./ylwrap parsefoo.lxx lex.yy.c parsefoo.cxx -- lex c++ -DPACKAGE_NAME=\"lex-clean-cxx\" -DPACKAGE_TARNAME=\"lex-clean-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-clean-c xx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lex-clean-cxx\" -DVERSION=\"1.0\" -I. -g -O2 -MT parsefoo.o -MD -MP -MF .deps/parsefoo.Tpo -c -o parsefoo.o parsefoo.cxx parsefoo.lxx:3: error: previous declaration of ‘int isatty(int)’ with ‘C++’ linkage /usr/include/unistd.h:743: error: conflicts with new declaration with ‘C’ linkage /usr/include/unistd.h:743: error: declaration of ‘int isatty(int) throw ()’ throws different exceptions parsefoo.lxx:3: error: from previous declaration ‘int isatty(int)’ make: *** [parsefoo.o] Error 1 + am_exit_trap 2 + exit_status=2 + set +e + cd /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6 + test none = tap + case $am_explicit_skips in + test 2 -eq 0 + keep_testdirs=yes + am_keeping_testdirs + case $keep_testdirs in + return 0 + set +x lex-clean-cxx: exit 2 + make /bin/sh ./ylwrap joe.ll lex.yy.c joe.cc -- lex c++ -DPACKAGE_NAME=\"lex-depend-cxx\" -DPACKAGE_TARNAME=\"lex-depend-cxx\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-depen d-cxx\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE =\"lex-depend-cxx\" -DVERSION=\"1.0\" -I. -g -O2 -MT joe.o -MD -MP -MF .deps/joe.Tpo -c -o joe.o joe.cc joe.ll:3: error: previous declaration of ‘int isatty(int)’ with ‘C++’ linkage /usr/include/unistd.h:743: error: conflicts with new declaration with ‘C’ linkage /usr/include/unistd.h:743: error: declaration of ‘int isatty(int) throw ()’ throws different exceptions joe.ll:3: error: from previous declaration ‘int isatty(int)’ make: *** [joe.o] Error 1 + am_exit_trap 2 + exit_status=2 + set +e + cd /local/home/bieser/CMAQ5.0.1/automake/automake-1.12.6 + test none = tap + 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 Helmholtz-Zentrum Geesthacht Zentrum für Material- und Küstenforschung GmbH Max-Planck-Straße 1 I 21502 Geesthacht I Deutschland/Germany Geschäftsführer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Ganß Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig Wilfried Kraus Amtsgericht Lübeck HRB 285 GE (Register Court) Internet: http://www.hzg.de