[Pkg-lyx-devel] Bug#505958: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Sun Nov 16 18:59:20 UTC 2008


Package: lyx
Version: 1.6.0-1
User: debian-gcc at lists.debian.org
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.

--- src/client/client.cpp~	2008-11-16 18:50:46.000000000 +0000
+++ src/client/client.cpp	2008-11-16 18:51:17.000000000 +0000
@@ -48,6 +48,7 @@
 #include <fcntl.h>
 
 #include <cerrno>
+#include <cstdio>
 #include <cstdlib>
 #include <string>
 #include <vector>
--- src/support/lstrings.cpp~	2008-11-16 18:28:09.000000000 +0000
+++ src/support/lstrings.cpp	2008-11-16 18:28:16.000000000 +0000
@@ -24,6 +24,7 @@
 #include <QString>
 #include <QVector>
 
+#include <cstdio>
 #include <algorithm>
 
 using namespace std;
--- src/frontends/qt4/GuiSymbols.cpp~	2008-11-16 18:35:58.000000000 +0000
+++ src/frontends/qt4/GuiSymbols.cpp	2008-11-16 18:36:06.000000000 +0000
@@ -31,6 +31,8 @@
 #include <QListWidgetItem>
 #include <QString>
 
+#include <cstdio>
+
 using namespace std;
 
 namespace lyx {

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





More information about the Pkg-lyx-devel mailing list