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

Warzone 2.1.x series. (Unsupported--read only!)
sjwest03
Greenhorn
Posts: 9
Joined: 29 Jul 2008, 20:32

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

Post by sjwest03 »

Ubuntu 8.04 issue - fresh install from bz source
resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1189: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1189: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:129: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1189: error: previous implicit declaration of ‘res_get_extra’ was here
make[3]: *** [resource_lexer.lex.o] Error 1
bertjevisser
New user
Posts: 4
Joined: 31 Jul 2008, 08:02

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

Post by bertjevisser »

Hi,

I am getting the same error.

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1189: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1189: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:129: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1189: error: previous implicit declaration of ‘res_get_extra’ was here
make[4]: *** [resource_lexer.lex.o] Error 1
make[4]: Leaving directory `/home/bas/warzone2100-2.1_beta4/lib/framework'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bas/warzone2100-2.1_beta4/lib/framework'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bas/warzone2100-2.1_beta4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bas/warzone2100-2.1_beta4'
make: *** [all] Error 2

I can also no longer play warzone2001 v.2.0.1 (deian) because
i get: warzone2100: symbol lookup error: /usr/local/lib/libGLC.so.0: undefined symbol: FcInit
after i installed the libs for compiling warzone2001 v.2.1 beta 4.

Anybody have any ideas about this?
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

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

Post by Buginator »

What version of Bison & flex do you guys have?

Looks like you need to upgrade them.
bertjevisser
New user
Posts: 4
Joined: 31 Jul 2008, 08:02

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

Post by bertjevisser »

Version Flex: 2.5.35-2
Version: Bison 2.3
bertjevisser
New user
Posts: 4
Joined: 31 Jul 2008, 08:02

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

Post by bertjevisser »

I also upgraded bison to version: bison_2.3.dfsg-5_i386.deb

This was the exact version i got from the mint repos.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

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

Post by Buginator »

Come to think of it, there was a patch for the bison/flex files not to long ago. I dunno if it made it into beta 4 or not. (I guess not?)

I would check, but I am not on my debian box.

You may also want to try trunk, while your waiting for more solid info.
bertjevisser
New user
Posts: 4
Joined: 31 Jul 2008, 08:02

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

Post by bertjevisser »

Thanks for your reply.

In the meantime i installed the Windows version undr Wine and it plays
without any errors or problems. Sound, Grapics etc.
Everythings works fie.

Ah.the breez of using a Windows install file for the beta.
Can this not be done for the Linux version as well (for betas i mean)?

Anyway great game, thans to everybody who made this possible.
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 »

Without trying to sound stupid - im not sure what version patches should be applied to Flex or Bison
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

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

Post by Giel »

The patch I provided in this topic should fix it.

You can apply it with this command (use it in the same directory where you find the "configure" script), it'll automatically download the patch:

Code: Select all

curl http://forums.wz2100.net/download/file.php?id=2115 | patch -p0
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 »

Giel wrote:The patch I provided in this topic should fix it.

Code: Select all

curl http://forums.wz2100.net/download/file.php?id=2115 | patch -p0
OK tried it - new errors appeared.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

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

Post by Buginator »

sjwest03 wrote:
Giel wrote:The patch I provided in this topic should fix it.

Code: Select all

curl http://forums.wz2100.net/download/file.php?id=2115 | patch -p0
OK tried it - new errors appeared.
Care to share what the new errors are now?
oddjobz
New user
Posts: 2
Joined: 19 Aug 2008, 22:19

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

Post by oddjobz »

Ok, I applied the patch and it appeared to make no difference .. here's the patch going on;

~/Desktop/warzone2100-2.1_beta4$ curl download/file.php?id=2115 | patch -p0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5620 100 5620 0 0 9777 0 --:--:-- --:--:-- --:--:-- 12048
patching file lib/framework/resource_lexer.l
patching file lib/framework/strres_lexer.l
patching file lib/gamelib/audp_lexer.l
patching file lib/script/chat_lexer.l
patching file lib/script/script_lexer.l
patching file src/level_lexer.l
patching file src/scriptvals_lexer.l

./configure, completes Ok.

Here's the error;

mv -f .deps/printf_ext.Tpo .deps/printf_ext.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -g -Wall -Wwrite-strings -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1199: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1199: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:139: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1199: error: previous implicit declaration of ‘res_get_extra’ was here
make[4]: *** [resource_lexer.lex.o] Error 1
make[4]: Leaving directory `/home/gareth/Desktop/warzone2100-2.1_beta4/lib/framework'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/gareth/Desktop/warzone2100-2.1_beta4/lib/framework'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gareth/Desktop/warzone2100-2.1_beta4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gareth/Desktop/warzone2100-2.1_beta4'
make: *** [all] Error 2

Any ideas?
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

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

Post by Buginator »

oddjobz wrote:Ok, I applied the patch and it appeared to make no difference .. here's the patch going on;

Any ideas?
What version of Bison & Flex you using?

Try updating them.
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 »

Just to confirm, I am getting the same errors. I applied the patch, and am still getting errors.

Versions
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
flex 2.5.34
bison (GNU Bison) 2.3
warzone: warzone2100-2.1_beta4

Code: Select all

resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1199: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1199: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:139: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1199: error: previous implicit declaration of ‘res_get_extra’ was here
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

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

Post by EvilGuru »

borisj wrote:Versions
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
flex 2.5.34
bison (GNU Bison) 2.3
warzone: warzone2100-2.1_beta4
I believe flex 2.5.34 is the 'dodgy' version — have you tried flex flex 2.5.35 or 2.5.33?

Regards, Freddie.
Locked