make install bug in beta 4 resource_lexer.lex.c:1189

Warzone 2.1.x series. (Unsupported--read only!)
borisj
New user
Posts: 2
Joined: 13 Sep 2008, 16:30

Re: make install bug in beta 4 resource_lexer.lex.c:1189

Post by borisj »

It seems that the code to include the forward definitions of these functions is only included if the FLEX subminor version is exactly 33. so newer versions of Flex, i.e. .34 or .35 will not get these.

Without any practical knowledge of lex, the method I found to get it to compile was:
open the file, search for "== 33", replace with ">= 33"

other files that need changing, in various directories, to get the thing to compile:
resource_lexer.lex.c
strres_lexer.lex.c
audp_lexer.lex.c
scriptvals_lexer.lex.c
level_lexer.lex.c

Alternately, change the corresponding .l files in the same way, and then regenerate the lexer by running flex.
sjwest03
Greenhorn
Posts: 9
Joined: 29 Jul 2008, 20:32

Re: make install bug in beta 4 resource_lexer.lex.c:1189

Post by sjwest03 »

I returned with beta 5 and used 2.5.35-2

ubuntu. -> http://packages.ubuntu.com/intrepid/flex

version and that compiled ok without patches when i did a very quick and dirty compile.
Locked