0.9.0 does not compile with g++-2.95; it does with g++-3.3.5

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Guest

0.9.0 does not compile with g++-2.95; it does with g++-3.3.5

Post by Guest »

I noticed this on my Debian testing box (x86).
There were problems with USE_ZIPIOS
I suggest to test this in the configure file.
silene
Posts: 1109
Joined: August 28th, 2004, 10:02 pm

Post by silene »

To test what in the configure file? Sorry, I'm not sure to understand what you are suggesting. Disabling zipios support when the compiler is g++ 2.95? Disallowing compiling with g++ 2.95? Or another suggestion?
Guest

new test in the configure script

Post by Guest »

Testing the version of g++ would be enough I guess.
This may not be a minimum requirement though.
The problem was in line 504 ... of filesystem.cpp:

doing again ./configure --prefix=... ; make
with g++-2.95 first in my path yields:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I ./sdl_ttf -I../intl -I../intl -I/usr/include/SDL -D_REENTRANT -DWESNOTH_PATH=\"/home/sbi/prog/wesnoth-0.9.0-g++-2.95/share/wesnoth\" -DLOCALEDIR=\"translations\" -DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/home/sbi/prog/wesnoth-0.9.0-g++-2.95/var/run/wesnothd\" -g -O2 -D_X11 -I/usr/X11R6/include -c -o filesystem.o filesystem.cpp
filesystem.cpp: In function `class istream * istream_file(const string &)':
filesystem.cpp:504: `::ios_base' undeclared (first use here)
filesystem.cpp:504: parse error before `::'
filesystem.cpp:513: parse error before `::'
filesystem.cpp: In function `class ostream * ostream_file(const string &)':
filesystem.cpp:519: parse error before `::'
filesystem.cpp: In function `bool file_exists(const string &)':
filesystem.cpp:608: parse error before `::'
filesystem.cpp:609: request for member `rdstate' in `file', which is of non-aggregate type `ifstream ()(...)'
filesystem.cpp:611: request for member `close' in `file', which is of non-aggregate type `ifstream ()(...)'
make[2]: *** [filesystem.o] Error 1
make[2]: Leaving directory `/tmp/wesnoth-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/wesnoth-0.9.0'
make: *** [all] Error 2
Guest

automake dependency

Post by Guest »

To compile the CVS code, my previous automake
(Debian stable version) failed.

I installed automake-1.9 (Debian testing) and it
worked.

It could be useful to mention the minimal version
required, or to test for it.
silene
Posts: 1109
Joined: August 28th, 2004, 10:02 pm

Re: automake dependency

Post by silene »

Anonymous wrote:To compile the CVS code, my previous automake (Debian stable version) failed.
I installed automake-1.9 (Debian testing) and it worked.
It could be useful to mention the minimal version required, or to test for it.
The INSTALL file wrote:The .tar.gz file is distributed with a working set of configure files. They are not in the CVS repository though. Consequently, if you are building from CVS, you will need autoconf (>= 2.59) and automake (>= 1.9).
Sithrandel
Posts: 537
Joined: September 15th, 2003, 2:54 pm
Location: Sheffield (UK)
Contact:

Post by Sithrandel »

Some time ago Wesnoth moved from 2.95 to later versions. There were a whole raft of problems at the time for me until the Mac GCC was updated. So this discrepancy has been known for a while.
Post Reply