Page 1 of 1

[SOLVED] Compile error, "magic-interpreter-lexer.c"?

Posted: 23 Jul 2010, 22:17
by Thatjoshguy
Tried to compile eAthena on Centos 5.1 by following this tutorial: http://wiki.themanaworld.org/index.php/ ... a_on_Linux

Got some help on IRC, but still couldn't get around this issue:

Code: Select all

make[1]: Entering directory `/root/eathena/src/map'
flex -o magic-interpreter-lexer.c magic-interpreter.l
flex: can't open magic-interpreter-lexer.c
make[1]: *** [magic-interpreter-lexer.c] Error 1
make[1]: Leaving directory `/root/eathena/src/map'
I checked in src/map and sure enough "magic-interpreter-lexer.c" isn't there though I'm not sure if it is supposed to be or not.

The end result is that everything except the map-server seems to compile just fine. I can run "eathena start" and I can even create an account and character.

Am I missing something simple here?

MAKE logs: http://pastebin.ca/1907184
MAKE TOOLS logs: http://pastebin.ca/1907185


Thanks is advance!

Re: Compile error, no map-server, "magic-interpreter-lexer.c

Posted: 24 Jul 2010, 02:39
by Thatjoshguy
OK, quick note to all those running CentOS 5.2

do NOT use the version of Flex found via Yum (2.5.4) it will not work! build 2.5.35 from source!

Re: Compile error, no map-server, "magic-interpreter-lexer.c

Posted: 25 Jul 2010, 21:58
by AnonDuck
install flex and bison

Re: Compile error, no map-server, "magic-interpreter-lexer.c

Posted: 25 Jul 2010, 23:01
by Thatjoshguy
MadCamel wrote:install flex and bison
Thanks, by I had already done so. Some kind folks helped me out via IRC, and they were quite patient with me, however we got nowhere when it came to this specific error.

The problem was the version of Flex I was using, hence my second post. Guess I should have made it clearer that downgrading flex solved the issue.

Re: [SOLVED] Compile error, "magic-interpreter-lexer.c"?

Posted: 26 Jul 2010, 01:03
by AnonDuck
Out of curiosity, what version of flex didn't like to work? I may take a poke at fixing that as there is no reason old build tools should be required to build the server.

Re: [SOLVED] Compile error, "magic-interpreter-lexer.c"?

Posted: 26 Jul 2010, 01:44
by Freeyorp101
He had an unusual build of flex that did not support --bison-bridge or %option bison-bridge, for whatever reason.

Since that's fairly core functionality I'm not sure that this is something that can be easily worked around.


---Freeyorp

Re: [SOLVED] Compile error, "magic-interpreter-lexer.c"?

Posted: 26 Jul 2010, 02:51
by Thatjoshguy
MadCamel wrote:Out of curiosity, what version of flex didn't like to work? I may take a poke at fixing that as there is no reason old build tools should be required to build the server.
I'll check again tomorrow, but it was the version available to CentOS via YUM. 2.5.4 I believe, possibl 2.5.4a

Re: [SOLVED] Compile error, "magic-interpreter-lexer.c"?

Posted: 26 Jul 2010, 10:16
by Thatjoshguy
It was indeed 2.5.4a that I tried. However, I just read that 2.5.35 is actually the newer build? Guess that would explain it?