svn build fails

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
maacruz
Greenhorn
Posts: 12
Joined: 05 Dec 2006, 17:19

svn build fails

Post by maacruz » 17 Jul 2008, 19:42

Hi,
Already posted this in the "Beta-testers for campaign needed" thread.
I'm trying to build svn (rev 5570 as of today) on opensuse 10.3, but it fails. Any help?

stdout dump:
make[4]: se ingresa al directorio `/usr/src/packages/BUILD/warzone/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 -Wwrite-strings -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -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:1737: warning: no previous declaration for ‘res_get_lineno’
resource_lexer.lex.c:1746: warning: no previous declaration for ‘res_get_in’
resource_lexer.lex.c:1754: warning: no previous declaration for ‘res_get_out’
resource_lexer.lex.c:1762: warning: no previous declaration for ‘res_get_leng’
resource_lexer.lex.c:1771: warning: no previous declaration for ‘res_get_text’
resource_lexer.lex.c:1780: warning: no previous declaration for ‘res_set_lineno’
resource_lexer.lex.c:1792: warning: no previous declaration for ‘res_set_in’
resource_lexer.lex.c:1797: warning: no previous declaration for ‘res_set_out’
resource_lexer.lex.c:1802: warning: no previous declaration for ‘res_get_debug’
resource_lexer.lex.c:1807: warning: no previous declaration for ‘res_set_debug’
make[4]: *** [resource_lexer.lex.o] Error 1
make[4]: se sale del directorio `/usr/src/packages/BUILD/warzone/lib/framework'
make[3]: *** [all] Error 2
make[3]: se sale del directorio `/usr/src/packages/BUILD/warzone/lib/framework'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/usr/src/packages/BUILD/warzone/lib'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/usr/src/packages/BUILD/warzone'
make: *** [all] Error 2

User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: svn build fails

Post by lav_coyote25 » 18 Jul 2008, 04:57

please do not spread posts over the forums... one is usually sufficient... i would say that your problem has been noted and that it may be a while due to the coders being busy with R/L stuff... thanks. :)

Chojun
Regular
Regular
Posts: 518
Joined: 25 Nov 2006, 17:49
Contact:

Re: svn build fails

Post by Chojun » 18 Jul 2008, 07:12

was dieses Ding ist, sagen Sie "svn". Ist das ein Baum? Ein Pfannkuchen? :ninja:

Sie stellen poopoo in meinem Kopf! Ihre ganze Basis ist gehören uns!

User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: svn build fails

Post by lav_coyote25 » 18 Jul 2008, 08:33

what?? O_o

is german - i recognize some of the words... but... O_o



O_O Translation: German » English
was dieses Ding ist, sagen Sie "svn". Ist das ein Baum? Ein Pfannkuchen? :ninja: Sie stellen poopoo in meinem Kopf! Ihre ganze Basis ist gehören uns!


what this thing is, say "svn". Is it a tree? A pancake? : ninja:

They poopoo in my head! Your whole basis include us! :stare:

cybersphinx
Inactive
Inactive
Posts: 1691
Joined: 01 Sep 2006, 19:17

Re: svn build fails

Post by cybersphinx » 18 Jul 2008, 13:52

Machine translated german. The last is obviously "All your base are belong to us". The rest is something like "What is this thing you call "svn"? Is it a tree? A pancake? They/You put poopoo in my head!", but I don't know what it alludes to, so I'm just going by the words.

As to the actual topic of this thread, when you run ./configure with "--enable-debug=relaxed" (or "no"), it should compile.

Chojun
Regular
Regular
Posts: 518
Joined: 25 Nov 2006, 17:49
Contact:

Re: svn build fails

Post by Chojun » 18 Jul 2008, 16:09

Hehe :P

Really bad english + Online Translator = Even worse german. xD

Ok now I feel really bad for hijacking the thread...

Carry on.. ;)

Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: svn build fails

Post by Giel » 21 Jul 2008, 16:05

maacruz wrote:stdout dump:
resource_lexer.lex.c:1737: warning: no previous declaration for ‘res_get_lineno’
Actually that's ^^ a dump of stderr :P . Anyway, which version of Flex do you use? ("flex --version" will tell you). As Flex 2.5.33+ is required and Flex 2.5.34 is known to cause exactly this kind of problem. Thus you really should have either Flex 2.5.33 or 2.5.35+

maacruz
Greenhorn
Posts: 12
Joined: 05 Dec 2006, 17:19

Re: svn build fails

Post by maacruz » 22 Jul 2008, 02:00

Giel wrote:
maacruz wrote:stdout dump:
resource_lexer.lex.c:1737: warning: no previous declaration for ‘res_get_lineno’
Actually that's ^^ a dump of stderr :P .
It is worse than that, it's just a mouse copy of a console dump :P
Giel wrote: Anyway, which version of Flex do you use? ("flex --version" will tell you). As Flex 2.5.33+ is required and Flex 2.5.34 is known to cause exactly this kind of problem. Thus you really should have either Flex 2.5.33 or 2.5.35+
Yes, I noticed that somewhere in the build instructions. I have Flex 2.5.33, so it should work.
Those are the last entries in the flex rpm changelog:

Distribution: openSUSE 10.3 (i586)
* lun mar 26 2007 - rguenther@suse.de
- Add bison BuildRequires.

* mié may 17 2006 - mmarek@suse.cz
- update to 2.5.33
* bugfix release
* obsoleted patches:
- YY_DECL.patch
- array-yymore.patch
- double-free.patch
- keep-macros.patch
- overflow.patch
* kept fPIC.patch, yylineno.patch and doc-fix.diff

It seems a stable package, nothing strange here.

maacruz
Greenhorn
Posts: 12
Joined: 05 Dec 2006, 17:19

Problem solved

Post by maacruz » 23 Jul 2008, 02:18

So it was flex the culprit. I updated flex to 2.5.35 and the problem was gone.
Thanks for pointing it out :-)

BadCatWillum
New user
Posts: 3
Joined: 27 Jul 2008, 13:10

Re: svn build fails

Post by BadCatWillum » 27 Jul 2008, 13:44

I've just packaged wx2100 for openSUSE, including 10.3. It says it built, but I don't have a real 10.3 install to test it on - viewtopic.php?f=19&t=1955&p=18403&hilit=openSUSE#p18403 has the details if you want to try it out.

Post Reply