[Pkg-allegro-maintainers] Bug#667347: rafkill: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:12:03 UTC 2012


Package: rafkill
Version: 1.2.2-3.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.

build/system.cpp:24:44: error: 'getuid' 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/rafkill_1.2.2-3.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.

[...]
build/raptor.cpp:96:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
build/raptor.cpp:97:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
build/raptor.cpp:98:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
build/raptor.cpp: In function 'int intro_screen(int&, SpaceObject**, DATAFILE*)':
build/raptor.cpp:418:8: warning: variable 'changed_frames' set but not used [-Wunused-but-set-variable]
build/raptor.cpp: In function 'void deathScreen()':
build/raptor.cpp:715:20: warning: deleting object of polymorphic class type 'ExplosionClass' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
build/raptor.cpp:735:17: warning: deleting object of polymorphic class type 'ExplosionClass' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
g++ -o build/rfield.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/rfield.cpp
g++ -o build/rfont.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/rfont.cpp
g++ -o build/rgbhandle.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/rgbhandle.cpp
g++ -o build/rmenu.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/rmenu.cpp
g++ -o build/rmenu_animation.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/rmenu_animation.cpp
g++ -o build/section.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/section.cpp
g++ -o build/shipobj.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/shipobj.cpp
build/shipobj.cpp: In destructor 'virtual ShipObject::~ShipObject()':
build/shipobj.cpp:100:30: warning: deleting object of polymorphic class type 'Move' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
build/shipobj.cpp: In member function 'virtual bool Money::Damage(double)':
build/shipobj.cpp:162:9: warning: deleting object of polymorphic class type 'Move' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
g++ -o build/spaceobj.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/spaceobj.cpp
g++ -o build/strings.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/strings.cpp
build/strings.cpp: In function 'void upstring(char*)':
build/strings.cpp:127:26: warning: operation on 'who' may be undefined [-Wsequence-point]
g++ -o build/system.o -c -g3 -Wall -fno-rtti -Woverloaded-virtual -O2 -DINSTALL_DIR=\"/usr/share/games\" -Ibuild build/system.cpp
build/system.cpp: In function 'std::string homeDir()':
build/system.cpp:24:44: error: 'getuid' was not declared in this scope
scons: *** [build/system.o] Error 1
scons: building terminated because of errors.
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the Pkg-allegro-maintainers mailing list