Package: qantenna
Version: 0.2.1-1
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.
GCC 4.4 cleaned up some more C++ headers. You always have to #include
headers directly and cannot rely for things to be included indirectly.
You can reproduce this problem with gcc-snapshot from unstable.
> Automatic build of qantenna_0.2.1-1 on em64t by sbuild/amd64 0.53
...
> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQANTENNA_VERSION=\"0.2.1\"
> -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
> -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4
> -I/usr/X11R6/include -I../qt/moc -I../qt/uic -o ../qt/obj/vec3.o vec3.cpp
> vec3.cpp: In member function 'void Vec3::print()':
> vec3.cpp:157: error: 'printf' was not declared in this scope
> make[2]: *** [../qt/obj/vec3.o] Error 1
> make[2]: Leaving directory `/build/tbm/qantenna-0.2.1/src'
A patch is attached.
--
Martin Michlmayr
http://www.cyrius.com/
--- src/vec3.cpp~ 2008-11-07 19:18:42.000000000 +0000
+++ src/vec3.cpp 2008-11-07 19:19:17.000000000 +0000
@@ -20,6 +20,8 @@
#include "vec3.h"
+#include <cstdio>
+
// Constructores
Vec3::Vec3(void) {
set(0, 0, 0);