[MonetDB-users] MonetDB 4.8.0 compile problem
Hi there, I'm trying to get MonetDB compiled on my debian (unstable) box, but I keep running into the same snag. It's probably something stupid, but I cannot seem to solve it. The full error log is in the end, but much of it seems to point to a missing yacc/bison during linking: mel.o(.text+0x6f4): In function `main': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.mx:400: undefined reference to `yyin' mel.tab.o(.text+0x126): In function `yyparse': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:53: undefined reference to `yylineno' I have bison and flex installed, and configure picks it up, but this doesn't seem to help any... Does anyone have any clue on what I am doing wrong here, and how to fix it? Regards, Martijn /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ansi -Wall -W -o mel FileInfo.o atomops.o mil.o prelude.o bat_arg.o epilogue.o var_arg.o proto.o builtin.o glue.o mel.o mel.tab.o mel.yy.o symbol.o command.o html.o module.o symtable.o any_arg.o debug.o iterator.o object.o type_arg.o atom.o depend.o operator.o use.o atom_arg.o dependency.o link.o ops.o g++ -g -O2 -ansi -Wall -W -o mel FileInfo.o atomops.o mil.o prelude.o bat_arg.o epilogue.o var_arg.o proto.o builtin.o glue.o mel.o mel.tab.o mel.yy.o symbol.o command.o html.o module.o symtable.o any_arg.o debug.o iterator.o object.o type_arg.o atom.o depend.o operator.o use.o atom_arg.o dependency.o link.o ops.o mel.yy.o(.text+0x0): In function `main': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy.cc:2: multiple definition of `main' mel.o(.text+0x670):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.mx:388: first defined here /usr/bin/ld: Warning: size of symbol `main' changed from 1247 in mel.o to 15 in mel.yy.o mel.o(.text+0x6f4): In function `main': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.mx:400: undefined reference to `yyin' mel.tab.o(.text+0x126): In function `yyparse': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:53: undefined reference to `yylineno' mel.tab.o(.text+0x138):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:54: undefined reference to `yyin' mel.tab.o(.text+0x1e0):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:61: undefined reference to `yylineno' mel.tab.o(.text+0x265):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:64: undefined reference to `close_and_change(void*, _IO_FILE*)' mel.tab.o(.text+0x621):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:124: undefined reference to `get_cur_buffer()' mel.tab.o(.text+0x637):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:125: undefined reference to `yylineno' mel.tab.o(.text+0x691):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:129: undefined reference to `new_buffer(_IO_FILE*)' mel.tab.o(.text+0x99f):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:181: undefined reference to `get_signature(char*)' mel.tab.o(.text+0x9c0):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:182: undefined reference to `script' mel.tab.o(.text+0x15dc): In function `yyparse': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/y.tab.c:1168: undefined reference to `yylex()' mel.tab.o(.text+0x176b): In function `mel_yyerror(char const*)': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:464: undefined reference to `yylineno' mel.tab.o(.text+0x178c): In function `mel_yyerror(char const*)': /usr/include/c++/3.3/ostream:193: undefined reference to `yylineno' mel.tab.o(.text+0x17da): In function `mel_yyerror(char const*)': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:468: undefined reference to `yytext' mel.tab.o(.text+0x17f3):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:472: undefined reference to `yytext' mel.tab.o(.text+0x1876): In function `mel_yyerror(char const*)': /usr/include/c++/3.3/ostream:193: undefined reference to `yytext' mel.tab.o(.text+0x195b): In function `semerror()': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:494: undefined reference to `yylineno' mel.tab.o(.text+0x197c): In function `semerror()': /usr/include/c++/3.3/ostream:193: undefined reference to `yylineno' collect2: ld returned 1 exit status make[4]: *** [mel] Error 1 make[4]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0/src/mel' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0/src/mel' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0' make: *** [all] Error 2
On Fri, Jun 03, 2005 at 12:11:05PM +0200, Martijn Faassen wrote:
Hi there,
Martijn We also need to investigate the furture to see what the problems. Could you therfore send us the bison version (bison --version). And possibly the mel.tab.cc and mel.yy.cc files. Niels
I'm trying to get MonetDB compiled on my debian (unstable) box, but I keep running into the same snag. It's probably something stupid, but I cannot seem to solve it. The full error log is in the end, but much of it seems to point to a missing yacc/bison during linking:
mel.o(.text+0x6f4): In function `main': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.mx:400: undefined reference to `yyin' mel.tab.o(.text+0x126): In function `yyparse': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:53: undefined reference to `yylineno'
I have bison and flex installed, and configure picks it up, but this doesn't seem to help any... Does anyone have any clue on what I am doing wrong here, and how to fix it?
Regards,
Martijn
/bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -ansi -Wall -W -o mel FileInfo.o atomops.o mil.o prelude.o bat_arg.o epilogue.o var_arg.o proto.o builtin.o glue.o mel.o mel.tab.o mel.yy.o symbol.o command.o html.o module.o symtable.o any_arg.o debug.o iterator.o object.o type_arg.o atom.o depend.o operator.o use.o atom_arg.o dependency.o link.o ops.o g++ -g -O2 -ansi -Wall -W -o mel FileInfo.o atomops.o mil.o prelude.o bat_arg.o epilogue.o var_arg.o proto.o builtin.o glue.o mel.o mel.tab.o mel.yy.o symbol.o command.o html.o module.o symtable.o any_arg.o debug.o iterator.o object.o type_arg.o atom.o depend.o operator.o use.o atom_arg.o dependency.o link.o ops.o mel.yy.o(.text+0x0): In function `main': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy.cc:2: multiple definition of `main' mel.o(.text+0x670):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.mx:388: first defined here /usr/bin/ld: Warning: size of symbol `main' changed from 1247 in mel.o to 15 in mel.yy.o mel.o(.text+0x6f4): In function `main': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.mx:400: undefined reference to `yyin' mel.tab.o(.text+0x126): In function `yyparse': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:53: undefined reference to `yylineno' mel.tab.o(.text+0x138):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:54: undefined reference to `yyin' mel.tab.o(.text+0x1e0):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:61: undefined reference to `yylineno' mel.tab.o(.text+0x265):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:64: undefined reference to `close_and_change(void*, _IO_FILE*)' mel.tab.o(.text+0x621):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:124: undefined reference to `get_cur_buffer()' mel.tab.o(.text+0x637):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:125: undefined reference to `yylineno' mel.tab.o(.text+0x691):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:129: undefined reference to `new_buffer(_IO_FILE*)' mel.tab.o(.text+0x99f):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:181: undefined reference to `get_signature(char*)' mel.tab.o(.text+0x9c0):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:182: undefined reference to `script' mel.tab.o(.text+0x15dc): In function `yyparse': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/y.tab.c:1168: undefined reference to `yylex()' mel.tab.o(.text+0x176b): In function `mel_yyerror(char const*)': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:464: undefined reference to `yylineno' mel.tab.o(.text+0x178c): In function `mel_yyerror(char const*)': /usr/include/c++/3.3/ostream:193: undefined reference to `yylineno' mel.tab.o(.text+0x17da): In function `mel_yyerror(char const*)': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:468: undefined reference to `yytext' mel.tab.o(.text+0x17f3):/home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:472: undefined reference to `yytext' mel.tab.o(.text+0x1876): In function `mel_yyerror(char const*)': /usr/include/c++/3.3/ostream:193: undefined reference to `yytext' mel.tab.o(.text+0x195b): In function `semerror()': /home/faassen/working/monet/MonetDB-4.8.0/src/mel/mel.yy:494: undefined reference to `yylineno' mel.tab.o(.text+0x197c): In function `semerror()': /usr/include/c++/3.3/ostream:193: undefined reference to `yylineno' collect2: ld returned 1 exit status make[4]: *** [mel] Error 1 make[4]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0/src/mel' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0/src/mel' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/faassen/working/monet/MonetDB-4.8.0' make: *** [all] Error 2
------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- Niels Nes, Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands room C0.02, phone ++31 20 592-4098, fax ++31 20 592-4312 url: http://www.cwi.nl/~niels e-mail: Niels.Nes@cwi.nl
Niels Nes wrote:
We also need to investigate the furture to see what the problems. Could you therfore send us the bison version (bison --version). And possibly the mel.tab.cc and mel.yy.cc files.
bison (GNU Bison) 1.875d I've attached mel.yy.cc. I'll send mel.tab.cc privately as it's probably too large for the mailing list. Regards, Martijn
On Fri, Jun 03, 2005 at 01:39:18PM +0200, Martijn Faassen wrote:
Niels Nes wrote:
We also need to investigate the furture to see what the problems. Could you therfore send us the bison version (bison --version). And possibly the mel.tab.cc and mel.yy.cc files.
bison (GNU Bison) 1.875d
I've attached mel.yy.cc. I'll send mel.tab.cc privately as it's probably too large for the mailing list.
Regards,
Martijn
So a bad mel.yy.cc is related to flex. Which version of flex do you have? Could you simply try removing the generated mel.yy.cc and start the compilation process again? Niels -- Niels Nes, Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands room C0.02, phone ++31 20 592-4098, fax ++31 20 592-4312 url: http://www.cwi.nl/~niels e-mail: Niels.Nes@cwi.nl
participants (2)
-
Martijn Faassen
-
Niels Nes