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
make install bug in beta 4 resource_lexer.lex.c:1189
make install bug in beta 4 resource_lexer.lex.c:1189
Ubuntu 8.04 issue - fresh install from bz source
-
- New user
- Posts: 4
- Joined: 31 Jul 2008, 08:02
Re: make install bug in beta 4 resource_lexer.lex.c:1189
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?
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?
Re: make install bug in beta 4 resource_lexer.lex.c:1189
What version of Bison & flex do you guys have?
Looks like you need to upgrade them.
Looks like you need to upgrade them.
-
- New user
- Posts: 4
- Joined: 31 Jul 2008, 08:02
Re: make install bug in beta 4 resource_lexer.lex.c:1189
Version Flex: 2.5.35-2
Version: Bison 2.3
Version: Bison 2.3
-
- New user
- Posts: 4
- Joined: 31 Jul 2008, 08:02
Re: make install bug in beta 4 resource_lexer.lex.c:1189
I also upgraded bison to version: bison_2.3.dfsg-5_i386.deb
This was the exact version i got from the mint repos.
This was the exact version i got from the mint repos.
Re: make install bug in beta 4 resource_lexer.lex.c:1189
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.
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.
-
- New user
- Posts: 4
- Joined: 31 Jul 2008, 08:02
Re: make install bug in beta 4 resource_lexer.lex.c:1189
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.
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.
Re: make install bug in beta 4 resource_lexer.lex.c:1189
Without trying to sound stupid - im not sure what version patches should be applied to Flex or Bison
Re: make install bug in beta 4 resource_lexer.lex.c:1189
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:
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
Re: make install bug in beta 4 resource_lexer.lex.c:1189
OK tried it - new errors appeared.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
Re: make install bug in beta 4 resource_lexer.lex.c:1189
Care to share what the new errors are now?sjwest03 wrote:OK tried it - new errors appeared.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
Re: make install bug in beta 4 resource_lexer.lex.c:1189
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?
~/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?
Re: make install bug in beta 4 resource_lexer.lex.c:1189
What version of Bison & Flex you using?oddjobz wrote:Ok, I applied the patch and it appeared to make no difference .. here's the patch going on;
Any ideas?
Try updating them.
Re: make install bug in beta 4 resource_lexer.lex.c:1189
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
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
Re: make install bug in beta 4 resource_lexer.lex.c:1189
I believe flex 2.5.34 is the 'dodgy' version — have you tried flex flex 2.5.35 or 2.5.33?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
Regards, Freddie.