Can't compile the beta 2

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Can't compile the beta 2

Post by qwerty800 »

Hi everyone.
I just tried to compile the source of the beta.
After some minor library problems during the ./configure script,  I now have a BIG trouble:
Making check in autorevision
make[2]: entrant dans le répertoire « /home/user/Desktop/warzone/trunk/build_tools/autorevision »
./autorevision +cstr -v ../.. ../../src/autorevision.h
Revision unchanged (4467). Skipping.
old = "4467"; new = "4467"
make[2]: quittant le répertoire « /home/user/Desktop/warzone/trunk/build_tools/autorevision »
make[2]: entrant dans le répertoire « /home/user/Desktop/warzone/trunk/build_tools »
make[2]: Rien à faire pour « check-am ».
make[2]: quittant le répertoire « /home/user/Desktop/warzone/trunk/build_tools »
make[1]: quittant le répertoire « /home/user/Desktop/warzone/trunk/build_tools »
Making check in win32
make[1]: entrant dans le répertoire « /home/user/Desktop/warzone/trunk/win32 »
make[1]: Rien à faire pour « check ».
make[1]: quittant le répertoire « /home/user/Desktop/warzone/trunk/win32 »
Making check in lib
make[1]: entrant dans le répertoire « /home/user/Desktop/warzone/trunk/lib »
Making check in framework
make[2]: entrant dans le répertoire « /home/user/Desktop/warzone/trunk/lib/framework »
make  check-am
make[3]: entrant dans le répertoire « /home/user/Desktop/warzone/trunk/lib/framework »
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL  -DDEBUG -DDATADIR=""/usr/local/share/warzone2100"" -DLOCALEDIR=""/usr/local/share/locale"" -I../..  -O0 -g -Wall -Werror -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers -Wcast-align -Wmissing-declarations  -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
cc1: warnings being treated as errors
resource_lexer.lex.c:1716: attention : no previous declaration for «res_get_lineno"
resource_lexer.lex.c:1725: attention : no previous declaration for «res_get_in"
resource_lexer.lex.c:1733: attention : no previous declaration for «res_get_out"
resource_lexer.lex.c:1741: attention : no previous declaration for «res_get_leng"
resource_lexer.lex.c:1750: attention : no previous declaration for «res_get_text"
resource_lexer.lex.c:1759: attention : no previous declaration for «res_set_lineno"
resource_lexer.lex.c:1771: attention : no previous declaration for «res_set_in"
resource_lexer.lex.c:1776: attention : no previous declaration for «res_set_out"
resource_lexer.lex.c:1781: attention : no previous declaration for «res_get_debug"
resource_lexer.lex.c:1786: attention : no previous declaration for «res_set_debug"
make[3]: *** [resource_lexer.lex.o] Erreur 1
make[3]: quittant le répertoire « /home/user/Desktop/warzone/trunk/lib/framework »
make[2]: *** [check] Erreur 2
make[2]: quittant le répertoire « /home/user/Desktop/warzone/trunk/lib/framework »
make[1]: *** [check-recursive] Erreur 1
make[1]: quittant le répertoire « /home/user/Desktop/warzone/trunk/lib »
make: *** [check-recursive] Erreur 1
I'm pretty good with computers but this type of errors is too dense for me.
Anyone can help?
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
Althalus
Rookie
Rookie
Posts: 26
Joined: 28 Mar 2008, 05:27
Location: Redmond, WA (GMT - 08:00)

Re: Can't compile the beta 2

Post by Althalus »

I have the same problem when I try to compile the last svn version (Actually, I already had the problem a few days ago, with svn). I'm using kubuntu gutsy, and I can provide any other information about my computer if you need it. I have tried to compile previous versions (2.1 beta 1&2) and it works fine. The file trunk/lib/script/script_lexer.lex.c has the same problem, as well as trunk/lib/gamelib/audb_lexer.lex.c and probably all the files in .lex.c. I can get rid of the errors by removing the -Werror tag, and after doing this in all the concerned folders, I can compile and play (not tested very far but I can start a skirmish and build derricks).
Qwerty, if you want to do the same, just search for -Werror in the makefiles in the following directories and remove it. The directories are :
/src /lib/gamelib /lib/script /lib/framework
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can't compile the beta 2

Post by Buginator »

I ran into this issue the other day.

It needs the newest version of flex.  I don't got my linux box booted, but I will check when I boot it up.
and it ends here.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Can't compile the beta 2

Post by DevUrandom »

You can also configure with --disable-debug... I think something shot too far with enabling warnings...
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile the beta 2

Post by qwerty800 »

DevUrandom wrote: You can also configure with --disable-debug... I think something shot too far with enabling warnings...
I just tried it.
It looks ok. I will try a Make check
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile the beta 2

Post by qwerty800 »

~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile the beta 2

Post by qwerty800 »

That was short...
Now the game is core-dumped when I try to start a Campaign, a Skirmish game or a tutorial (when I try to have fun)
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Can't compile the beta 2

Post by Per »

That will only happen if you try to compile svn trunk, not beta! The reason it happens is because you have a too old version of flex. However, since the required version of flex is rather fresh, maybe that warning should go...  :-[
"Make a man a fire, you keep him warm for a day. Set a man on fire, you keep him warm for the rest of his life."
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile the beta 2

Post by qwerty800 »

Per wrote: That will only happen if you try to compile svn trunk, not beta!
I were forced to. The archive tar.gz won't download
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: Can't compile the beta 2

Post by EvilGuru »

qwerty800 wrote: I were forced to. The archive tar.gz won't download
svn co svn://svn.gna.org/svn/warzone/tags/2.1_beta2/ warzone

Done :)

Regards, Freddie.
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile the beta 2

Post by qwerty800 »

Thats what I did to download this beta.
But anyway, I used a download accelerator and it works now.
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
User avatar
Verminus
Trained
Trained
Posts: 121
Joined: 18 Feb 2008, 19:13
Location: Peterborough, England

Re: Can't compile the beta 2

Post by Verminus »

Per wrote: That will only happen if you try to compile svn trunk, not beta! The reason it happens is because you have a too old version of flex. However, since the required version of flex is rather fresh, maybe that warning should go...  :-[
Just what is the required version of flex? autogen.sh checks for flex >= 2.5.33, which I'm using,(because thats whats in the Ubuntu repo for gutsy) , but i can't compile the trunk version without disabling debug, (although banches/2.1 compiles fine)
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile the beta 2

Post by qwerty800 »

Try do get the package *-dev packages
~~If someone asks you to sudo rm -rf anything don't do it.~~
Image
Image
[url=http://youtube.com/watch?v=ks-N4rI_1RU&feature=related]
This Guy for PRESID
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can't compile the beta 2

Post by Buginator »

Verminus wrote: Just what is the required version of flex? autogen.sh checks for flex >= 2.5.33, which I'm using,(because thats whats in the Ubuntu repo for gutsy) , but i can't compile the trunk version without disabling debug, (although banches/2.1 compiles fine)
2.5.35 I think it is.
and it ends here.
User avatar
Verminus
Trained
Trained
Posts: 121
Joined: 18 Feb 2008, 19:13
Location: Peterborough, England

Re: Can't compile the beta 2

Post by Verminus »

Just a thought, but maybe someone should update the compile scripts if they're going to ask for a later version than is actually checked for?