Bug#667118: blockattack: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:08:01 UTC 2012


Package: blockattack
Version: 1.4.1+ds1-2
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

source/code/physfs_stream.hpp:280:17: error: 'setp' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/blockattack_1.4.1+ds1-2_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
g++ -o source/code/ReadKeyboard.o -c -D_GNU_SOURCE=1 -D_REENTRANT -DSHAREDIR=\"/usr/share/games/blockattack\" -I/usr/include/SDL source/code/ReadKeyboard.cpp
gcc -o source/code/SFont.o -c -D_GNU_SOURCE=1 -D_REENTRANT -DSHAREDIR=\"/usr/share/games/blockattack\" -I/usr/include/SDL source/code/SFont.c
g++ -o source/code/main.o -c -D_GNU_SOURCE=1 -D_REENTRANT -DSHAREDIR=\"/usr/share/games/blockattack\" -I/usr/include/SDL source/code/main.cpp
In file included from source/code/main.cpp:70:0:
source/code/physfs_stream.hpp: In instantiation of 'PhysFS::physfs_filebuf<_CharT, _Traits>::int_type PhysFS::physfs_filebuf<_CharT, _Traits>::overflow(PhysFS::physfs_filebuf<_CharT, _Traits>::int_type) [with _CharT = char; _Traits = std::char_traits<char>; PhysFS::physfs_filebuf<_CharT, _Traits>::int_type = int]':
source/code/physfs_stream.hpp:289:51:   required from 'int PhysFS::physfs_filebuf<_CharT, _Traits>::sync() [with _CharT = char; _Traits = std::char_traits<char>]'
source/code/physfs_stream.hpp:167:17:   required from 'PhysFS::physfs_filebuf<_CharT, _Traits>::__filebuf_type* PhysFS::physfs_filebuf<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>; PhysFS::physfs_filebuf<_CharT, _Traits>::__filebuf_type = PhysFS::physfs_filebuf<char>]'
source/code/physfs_stream.hpp:103:17:   required from 'PhysFS::physfs_filebuf<_CharT, _Traits>::~physfs_filebuf() [with _CharT = char; _Traits = std::char_traits<char>]'
source/code/physfs_stream.hpp:332:36:   required from 'PhysFS::physfs_ifstream<_CharT, _Traits>::physfs_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]'
source/code/main.cpp:741:60:   required from here
source/code/physfs_stream.hpp:280:17: error: 'setp' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
source/code/physfs_stream.hpp:280:17: note: declarations in dependent base 'std::basic_streambuf<char>' are not found by unqualified lookup
source/code/physfs_stream.hpp:280:17: note: use 'this->setp' instead
In file included from source/code/main.cpp:70:0:
source/code/physfs_stream.hpp: In instantiation of 'PhysFS::physfs_filebuf<_CharT, _Traits>::pos_type PhysFS::physfs_filebuf<_CharT, _Traits>::seekpos(PhysFS::physfs_filebuf<_CharT, _Traits>::pos_type, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; PhysFS::physfs_filebuf<_CharT, _Traits>::pos_type = std::fpos<__mbstate_t>; std::ios_base::openmode = std::_Ios_Openmode]':
source/code/main.cpp:4863:1:   required from here
source/code/physfs_stream.hpp:215:17: error: 'setg' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
source/code/physfs_stream.hpp:215:17: note: declarations in dependent base 'std::basic_streambuf<char>' are not found by unqualified lookup
source/code/physfs_stream.hpp:215:17: note: use 'this->setg' instead
source/code/physfs_stream.hpp: In instantiation of 'PhysFS::physfs_filebuf<_CharT, _Traits>::int_type PhysFS::physfs_filebuf<_CharT, _Traits>::underflow() [with _CharT = char; _Traits = std::char_traits<char>; PhysFS::physfs_filebuf<_CharT, _Traits>::int_type = int]':
source/code/main.cpp:4863:1:   required from here
source/code/physfs_stream.hpp:199:17: error: 'setg' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
source/code/physfs_stream.hpp:199:17: note: declarations in dependent base 'std::basic_streambuf<char>' are not found by unqualified lookup
source/code/physfs_stream.hpp:199:17: note: use 'this->setg' instead
scons: *** [source/code/main.o] Error 1
scons: building terminated because of errors.
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/«BUILDDIR»/blockattack-1.4.1+ds1'
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the Pkg-games-devel mailing list