Hi there
With a ./configure --prefix=/usr/local && make, I got the following error output after a while:
g++ -DPACKAGE_NAME=\"mfGraph\" -DPACKAGE_TARNAME=\"mfgraph\" -DPACKAGE_VERSION=\"0.4.2\" "-DPACKAGE_STRING=\"mfGraph 0.4.2\"" -DPACKAGE_BUGREPORT=\"foetsch@users.sourceforge.net\" -DPACKAGE=\"mfgraph\" -DVERSION=\"0.4.2\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -O2 -MT mfg_bison.lo -MD -MP -MF .deps/mfg_bison.Tpo -c mfg_bison.cc -o mfg_bison.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"mfGraph\" -DPACKAGE_TARNAME=\"mfgraph\" -DPACKAGE_VERSION=\"0.4.2\" -DPACKAGE_STRING=\"mfGraph\ 0.4.2\" -DPACKAGE_BUGREPORT=\"foetsch@users.sourceforge.net\" -DPACKAGE=\"mfgraph\" -DVERSION=\"0.4.2\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -O2 -MT mfg_flex.lo -MD -MP -MF ".deps/mfg_flex.Tpo" -c -o mfg_flex.lo mfg_flex.cc; \
then mv -f ".deps/mfg_flex.Tpo" ".deps/mfg_flex.Plo"; else rm -f ".deps/mfg_flex.Tpo"; exit 1; fi
g++ -DPACKAGE_NAME=\"mfGraph\" -DPACKAGE_TARNAME=\"mfgraph\" -DPACKAGE_VERSION=\"0.4.2\" "-DPACKAGE_STRING=\"mfGraph 0.4.2\"" -DPACKAGE_BUGREPORT=\"foetsch@users.sourceforge.net\" -DPACKAGE=\"mfgraph\" -DVERSION=\"0.4.2\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -O2 -MT mfg_flex.lo -MD -MP -MF .deps/mfg_flex.Tpo -c mfg_flex.cc -fPIC -DPIC -o .libs/mfg_flex.o
mfg_flex.cc: In member function 'virtual int MfgLexer::yylex()':
mfg_flex.cc:590: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc:797: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc:820: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In constructor 'mfgFlexLexer::mfgFlexLexer(std::istream*, std::ostream*)':
mfg_flex.cc:937: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In destructor 'virtual mfgFlexLexer::~mfgFlexLexer()':
mfg_flex.cc:949: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'virtual void mfgFlexLexer::switch_streams(std::istream*, std::ostream*)':
mfg_flex.cc:956: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'int mfgFlexLexer::yy_get_next_buffer()':
mfg_flex.cc:1009: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'void mfgFlexLexer::yyunput(int, char*)':
mfg_flex.cc:1204: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'int mfgFlexLexer::yyinput()':
mfg_flex.cc:1246: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'virtual void mfgFlexLexer::yyrestart(std::istream*)':
mfg_flex.cc:1305: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc:1308: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'virtual void mfgFlexLexer::yy_switch_to_buffer(yy_buffer_state*)':
mfg_flex.cc:1315: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc:1318: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc:1326: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'void mfgFlexLexer::yy_load_buffer_state()':
mfg_flex.cc:1340: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'virtual void mfgFlexLexer::yy_delete_buffer(yy_buffer_state*)':
mfg_flex.cc:1377: error: 'yy_current_buffer' was not declared in this scope
mfg_flex.cc: In member function 'void mfgFlexLexer::yy_flush_buffer(yy_buffer_state*)':
mfg_flex.cc:1419: error: 'yy_current_buffer' was not declared in this scope
make[2]: *** [mfg_flex.lo] Error 1
make[2]: Leaving directory `/home/john/mfgraph-0.4.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/john/mfgraph-0.4.2/src'
make: *** [all-recursive] Error 1
john@roadwork:~/mfgraph-0.4.2$
FYI:
john@roadwork:~/mfgraph-0.4.2$ uname -mor
2.6.17-10-386 i686 GNU/Linux
john@roadwork:~/mfgraph-0.4.2$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
john@roadwork:~/mfgraph-0.4.2$ swig -version
SWIG Version 1.3.29
Compiled with g++ [i686-pc-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information
Cheers
JP
Logged In: YES
user_id=849068
Originator: YES
FYI also tried with GCC/G++ 3.4. Didn't fix the problem.
Logged In: YES
user_id=849068
Originator: YES
Tried older version of flex (2.5.4) and bison (1.35) and this seems to have fixed it. Might be worth highlighting that the code *requires* old versions of these.
Logged In: YES
user_id=1054627
Originator: NO
I got the error you report above ('yy_current_buffer' was not declared in this scope) with flex 2.5.33-4, but not with the older flex 2.5.4a-7
So you might have more luck with a different (older?) flex.