29267 problems compiling under Linux (lex/yacc).
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
I downloaded and started to compile version 29267 as usual:
svn checkout svn://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
./autogen.sh
./configure --enable-gnomeui --enable-memmap
make
but making process stops with:
make[4]: Entering directory `/home/flavio/vice-emu-code/vice/src/monitor'
/bin/sh ../../ylwrap mon_lex.l .c mon_lex.c -- flex
( http://pastebin.com/CYnfBVbF ).
Probably is a problem with lex and/or yacc...
Please provide your config.log.
here it is ...
Should be fixed in rev 29268, please retest.
That fix doesn't work for me because I disable the use of the
missing
script (it's pointless; I have all of the programs that it tests). The${am_missing_run}
variable is empty. Therefore, your test thinks that flex and lex can't be found, when flex was found.You should use
AC_PROG_LEX
instead ofAM_PROG_LEX
(then, test forx"$LEX"=="x:"
).==========
Ah, OK. After posting the above reply, I updated from the repository, and saw that you had done it.
However, you should use the word "and" instead of "or" in those error messages ("or" implies that only one of those programs couldn't be found, "and" says that all of them are missing).
Last edit: Greg King 2015-02-02
Now i have a problem during "config":
checking whether yytext is a pointer... yes
./configure: line 5923: syntax error near unexpected token
(' ./configure: line 5923:
$as_echo_n "(cached) " >&6'Let me know if you need more infos or files...
please try again with r29284 (or later)
I tried 29286.
There are still problems, but during -make- now:
http://pastebin.com/8fncEcFY
Yeah, this got messy/broken:
checking for byacc... byacc
checking for flex... flex --noyywrap
checking for flex... (cached) flex --noyywrap
checking lex output file root... lex.yy
checking lex library...
checking whether yytext is a pointer... yes
...
Making all in monitor
mon_lex.l:65:23: error: macro "yywrap" passed 1 arguments, but takes just 0
static int yywrap(void);
^
mon_lex.l:572:23: error: macro "yywrap" passed 1 arguments, but takes just 0
{
^
mon_lex.l:573:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
return 1;
^
mon_lex.l:65:12: warning: ‘yywrap’ defined but not used [-Wunused-variable]
static int yywrap(void);
^
Makefile:577: recipe for target 'mon_lex.o' failed
make[4]: *** [mon_lex.o] Error 1
please retest with rev 29330.
Nice! Configured and compiled just fine.
I can confirm: configured and compiled without problems! (29337)
Thanks!