Bug#667119: blocks-of-the-undead: ftbfs with GCC-4.7

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


Package: blocks-of-the-undead
Version: 1.0-4
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.

CTetrisGame.cpp:162:14: error: 'usleep' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/blocks-of-the-undead_1.0-4_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.

[...]
Making all in snd
make[4]: Entering directory `/«PKGBUILDDIR»/TetrisAttack/assets/snd'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/«PKGBUILDDIR»/TetrisAttack/assets/snd'
make[4]: Entering directory `/«PKGBUILDDIR»/TetrisAttack/assets'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/«PKGBUILDDIR»/TetrisAttack/assets'
make[3]: Leaving directory `/«PKGBUILDDIR»/TetrisAttack/assets'
Making all in src
make[3]: Entering directory `/«PKGBUILDDIR»/TetrisAttack/src'
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CApplyGravityEvent.o CApplyGravityEvent.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CBlock.o CBlock.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CBlockLoc.o CBlockLoc.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CBLockSet.o CBLockSet.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CCursor.o CCursor.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CFieldSprite.o CFieldSprite.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CPlayingField.o CPlayingField.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CRemoveBlockEvent.o CRemoveBlockEvent.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CSoundPlayer.o CSoundPlayer.cpp
g++ -DPACKAGE_NAME=\"Blocks\ of\ the\ Undead\" -DPACKAGE_TARNAME=\"BlocksOfTheUndead\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"Blocks\ of\ the\ Undead\ 1.0\" -DPACKAGE_BUGREPORT=\"jluxenbe at andrew.cmu.edu\" -DPACKAGE=\"BlocksOfTheUndead\" -DVERSION=\"1.0\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_LIBSDL_TTF=1 -DHAVE_LIBSDL_MIXER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I.  -I../../Oodle/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DPKGDATADIR=\"/usr/share/games/BlocksOfTheUndead\"  -g -O2 -c -o CTetrisGame.o CTetrisGame.cpp
CTetrisGame.cpp: In member function 'virtual bool CTetrisGame::gameLoop(bool)':
CTetrisGame.cpp:162:14: error: 'usleep' was not declared in this scope
CTetrisGame.cpp:285:14: error: 'usleep' was not declared in this scope
make[3]: *** [CTetrisGame.o] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/TetrisAttack/src'
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
dh_auto_build: make -j1 returned exit code 2
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the Pkg-games-devel mailing list