Package: supertux Version: 0.3.3-2 Severity: serious Tags: patch upstream Justification: fails to build from source (but built successfully in the past) User: debian-...@lists.debian.org Usertags: ftbfs-gcc-4.6
The package failed to build with gcc-4.6 in Ubuntu Oneiric environment. The error is: [ 13%] Building CXX object CMakeFiles/supertux2.dir/src/supertux/screen_manager.cpp.o /usr/bin/c++ -g -O2 -I/usr/include/SDL -I/usr/include/GL -I/usr/include/AL -I/build/buildd/supertux-0.3.3/obj-i686-linux-gnu -I/build/buildd/supertux-0.3.3/src -I/build/buildd/supertux-0.3.3/external/squirrel/include -I/build/buildd/supertux-0.3.3/external/tinygettext -I/build/buildd/supertux-0.3.3/external/findlocale -I/build/buildd/supertux-0.3.3/external/obstack -I/build/buildd/supertux-0.3.3/external/binreloc -Wall -Wextra -funit-at-a-time -fno-strict-aliasing -o CMakeFiles/supertux2.dir/src/supertux/screen_manager.cpp.o -c /build/buildd/supertux-0.3.3/src/supertux/screen_manager.cpp In file included from /build/buildd/supertux-0.3.3/src/supertux/screen_manager.cpp:17:0: /build/buildd/supertux-0.3.3/src/supertux/screen_manager.hpp:39:39: error: 'NULL' was not declared in this scope /build/buildd/supertux-0.3.3/src/supertux/screen_manager.hpp:40:32: error: 'NULL' was not declared in this scope /build/buildd/supertux-0.3.3/src/supertux/screen_manager.hpp:51:55: error: 'NULL' was not declared in this scope /build/buildd/supertux-0.3.3/src/supertux/screen_manager.cpp: In member function 'void ScreenManager::process_events()': /build/buildd/supertux-0.3.3/src/supertux/screen_manager.cpp:205:14: error: the default argument for parameter 0 of 'void ScreenManager::quit(ScreenFade*)' has not yet been parsed make[3]: *** [CMakeFiles/supertux2.dir/src/supertux/screen_manager.cpp.o] Error 1 Link to build log: https://launchpadlibrarian.net/78123246/buildlog_ubuntu-oneiric-i386.supertux_0.3.3-2_FAILEDTOBUILD.txt.gz Patch is attached. It was used in Ubuntu: https://launchpad.net/ubuntu/+source/supertux/0.3.3-2ubuntu1 -- System Information: Debian Release: wheezy/sid APT prefers oneiric APT policy: (500, 'oneiric') Architecture: i386 (i686) Kernel: Linux 2.6.38-11-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
Description: Add missing header. Fixes FTBFS with gcc 4.6. Author: Ilya Barygin <bary...@gmail.com> Bug-Ubuntu: https://launchpad.net/bugs/832874 --- supertux-0.3.3.orig/src/supertux/screen_manager.hpp +++ supertux-0.3.3/src/supertux/screen_manager.hpp @@ -18,6 +18,7 @@ #define HEADER_SUPERTUX_SUPERTUX_MAINLOOP_HPP #include <memory> +#include <cstring> #include "scripting/thread_queue.hpp"