Can't compile beta 4

Do you need help? Ask here!

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

Can't compile beta 4

Post by qwerty800 »

Hi!

Seems there is music and videos in the beta 4?

Well, I don't know, I can't compile.

See:

Code: Select all

user@ubuntu-nico:~/Desktop/warzone2100-2.1_beta4$ ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build NSIS installer... no
checking whether to compile in debug mode... no
checking for SDL... yes
checking for OPENAL... yes
checking for PNG... yes
checking for OGGVORBIS... yes
checking popt.h usability... yes
checking popt.h presence... yes
checking for popt.h... yes
checking for poptGetContext in -lpopt... yes
checking physfs.h usability... yes
checking physfs.h presence... yes
checking for physfs.h... yes
checking for PHYSFS_init in -lphysfs... yes
checking SDL/SDL_net.h usability... yes
checking SDL/SDL_net.h presence... yes
checking for SDL/SDL_net.h... yes
checking for SDLNet_Init in -lSDL_net... yes
checking SDL/SDL_opengl.h usability... yes
checking SDL/SDL_opengl.h presence... yes
checking for SDL/SDL_opengl.h... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking GL/glc.h usability... yes
checking GL/glc.h presence... yes
checking for GL/glc.h... yes
checking for main in -lGLC... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating build_tools/Makefile
config.status: creating build_tools/autorevision/Makefile
config.status: creating icons/Makefile
config.status: creating data/Makefile
config.status: creating data/mods/Makefile
config.status: creating data/mods/global/Makefile
config.status: creating data/mods/global/aivolution/multiplay/skirmish/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/nsis/Makefile
config.status: creating win32/Makefile
config.status: creating lib/Makefile
config.status: creating lib/framework/Makefile
config.status: creating lib/exceptionhandler/Makefile
config.status: creating lib/gamelib/Makefile
config.status: creating lib/ivis_opengl/Makefile
config.status: creating lib/ivis_common/Makefile
config.status: creating lib/netplay/Makefile
config.status: creating lib/script/Makefile
config.status: creating lib/sequence/Makefile
config.status: creating lib/sound/Makefile
config.status: creating lib/widget/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure: 
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution

user@ubuntu-nico:~/Desktop/warzone2100-2.1_beta4$ make

make  all-recursive
make[1]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4 »
Making all in build_tools
make[2]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/build_tools »
Making all in autorevision
make[3]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/build_tools/autorevision »
./autorevision +cstr -v ../.. ../../src/autorevision.h
svn: Path '../..' ends in '..', which is unsupported for this operation
sh: git-svn: not found
fatal: Not a git repository
Warning: could not open input file.
         This does not seem to be a revision controlled project.
Warning: could not open input file.
         This does not seem to be a revision controlled project.
Error: failed retrieving version information.
Warning: using 0 as revision.
Revision unchanged (0). Skipping.
old = "0"; new = "0"
make[3]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/build_tools/autorevision »
make[3]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/build_tools »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/build_tools »
make[2]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/build_tools »
Making all in win32
make[2]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/win32 »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/win32 »
Making all in lib
make[2]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/lib »[/color]
[color=#FF0000]Making all in framework
make[3]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/lib/framework »
make  all-am
make[4]: entrant dans le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/lib/framework »
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: Dans la fonction «yy_get_next_buffer» :
resource_lexer.lex.c:1189: attention : déclaration implicite de la fonction « «res_get_extra» »
resource_lexer.lex.c:1189: attention : passing argument 1 of «lexer_input» makes pointer from integer without a cast
resource_lexer.l: Hors de toute fonction :
resource_lexer.l:129: erreur: conflicting types for «res_get_extra»
resource_lexer.lex.c:1189: erreur: previous implicit declaration of «res_get_extra» was here
make[4]: *** [resource_lexer.lex.o] Erreur 1
make[4]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/lib/framework »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/lib/framework »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4/lib »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/user/Desktop/warzone2100-2.1_beta4 »
make: *** [all] Erreur 2
Last edited by Kamaze on 30 Jul 2008, 20:22, edited 1 time in total.
Reason: Replaced Quote with Code tags.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can't compile beta 4

Post by Buginator »

Well, music, yes, videos, no, not yet.

As for your errors, what version of bison & flex do you got?

Code: Select all

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: Dans la fonction «yy_get_next_buffer» :
resource_lexer.lex.c:1189: attention : déclaration implicite de la fonction « «res_get_extra» »
resource_lexer.lex.c:1189: attention : passing argument 1 of «lexer_input» makes pointer from integer without a cast
resource_lexer.l: Hors de toute fonction :
resource_lexer.l:129: erreur: conflicting types for «res_get_extra»
That is you main problem, you need to update bison & flex.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Can't compile beta 4

Post by Giel »

Buginator wrote:That is you main problem, you need to update bison & flex.
That's not necessary, Flex 2.5.33 will work fine if you apply this patch. Note, btw, that this patch is already included in the 2.1 source tree and will thus be included in a next release.
Attachments
allow-warning-less-compilation-with-flex-2.5.33.patch
Patch to allow Flex 2.5.33
(5.49 KiB) Downloaded 597 times
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile beta 4

Post by qwerty800 »

Flex: 2.5.34-2.1 (last version)
Bison: 1:2.3.dfsg-5 (The version 1.35-4.1 is also aviable but in another package, it must be unstable) Do I need to upgrade it?
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile beta 4

Post by qwerty800 »

qwerty800 wrote:Flex: 2.5.34-2.1 (last version)
Bison: 1:2.3.dfsg-5 (The version 1.35-4.1 is also aviable but in another package, it must be unstable) Do I need to upgrade it?
EDIT: I tried to install bison 1.35-4.1... nothing change...
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Can't compile beta 4

Post by Giel »

qwerty800 wrote:
qwerty800 wrote:Flex: 2.5.34-2.1 (last version)
Bison: 1:2.3.dfsg-5 (The version 1.35-4.1 is also aviable but in another package, it must be unstable) Do I need to upgrade it?
EDIT: I tried to install bison 1.35-4.1... nothing change...
Did you try using the above 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
qwerty800
Trained
Trained
Posts: 183
Joined: 07 Mar 2008, 21:23

Re: Can't compile beta 4

Post by qwerty800 »

Giel wrote: Did you try using the above 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
Don't change anything...
oddjobz
New user
Posts: 2
Joined: 19 Aug 2008, 22:19

Re: Can't compile beta 4

Post by oddjobz »

Mmm, so can anyone compile / run Beta 4 ???
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Can't compile beta 4

Post by Buginator »

oddjobz wrote:Mmm, so can anyone compile / run Beta 4 ???
Yep.

Have you tried 2.1 branch, or trunk?
Perhaps you will have better luck with those.
Post Reply