[Pkg-kde-extras] Bug#526164: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Wed Apr 29 17:20:02 UTC 2009


Package: krusader
Version: 1:2.0.0-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of krusader_1:2.0.0-1 on em64t by sbuild/amd64 0.53
...
> cd /build/tbm/krusader-2.0.0/obj-x86_64-linux-gnu/krusader/VFS && /usr/lib/gcc-snapshot/bin/g++   -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -g -O2 -g -Wall -O2 -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -DQT_NO_DEBUG -I/build/tbm/krusader-2.0.0/obj-x86_64-linux-gnu/krusader/VFS -I/build/tbm/krusader-2.0.0/krusader/VFS -I/usr/include/KDE -I/usr/include/qt4/phonon -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4   -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o CMakeFiles/VFS.dir/kiojobwrapper.o -c /build/tbm/krusader-2.0.0/krusader/VFS/kiojobwrapper.cpp
> /build/tbm/krusader-2.0.0/krusader/VFS/kiojobwrapper.cpp: In member function 'void KIOJobWrapper::createJob()':
> /build/tbm/krusader-2.0.0/krusader/VFS/kiojobwrapper.cpp:123: error: 'stderr' was not declared in this scope
> /build/tbm/krusader-2.0.0/krusader/VFS/kiojobwrapper.cpp:123: error: 'fprintf' was not declared in this scope
> make[3]: *** [krusader/VFS/CMakeFiles/VFS.dir/kiojobwrapper.o] Error 1
> make[3]: Leaving directory `/build/tbm/krusader-2.0.0/obj-x86_64-linux-gnu'

--- krusader/VFS/kiojobwrapper.cpp~	2009-04-29 17:13:43.000000000 +0000
+++ krusader/VFS/kiojobwrapper.cpp	2009-04-29 17:14:01.000000000 +0000
@@ -37,6 +37,7 @@
 #include <kio/jobuidelegate.h>
 #include <kio/job.h>
 #include <qapplication.h>
+#include <cstdio>
 #include <iostream>
 #include <klocale.h>
 #include "virtualcopyjob.h"

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the pkg-kde-extras mailing list